Skip to content

Settings ​

The Settings page (/settings) is the control surface for everything that's about CritterWatch itself rather than about a specific monitored service — notification channels, trace providers, metrics data sources, retention and license.

CritterWatch Settings — notification channels, registered trace providers and metrics data sources, and the per-service bindings that override which catalog entry serves each monitored service

The page is laid out as a vertical stack of cards. Each card owns one setting area and has its own Save semantics; nothing on this page mutates a monitored service.

Notification Channels
Trace Providers
Metrics Data Sources
Data Retention
License Info

Removed cards

Earlier versions of this page showed Auto-Refresh Intervals and Connection Settings cards (a global refresh interval, reconnection interval, connection timeout and auto-reconnect). Their values were saved in the browser and nothing in the console ever read them, so the cards were removed rather than left to look as if they configured something. Pages that poll have their own refresh controls (the Dead Letters, Scheduled Messages and Audit Log pages, for example).


Theme / dark mode: the dark-mode toggle is still hidden in 1.1 (the dark theme isn't polished yet). The plumbing (localStorage cw-dark-mode, global theme provider, highlight.js dual themes) is in place and the card returns when the theme ships.


Notification Channels ​

External delivery destinations for alerts. Each channel has a name, a type, a webhook URL, an enabled flag, and an alert-severity allowlist (which severities should fan out to this channel).

Channel types ​

TypeDelivery
SlackSlack Incoming Webhook URL
DiscordDiscord Webhook URL
MS TeamsMicrosoft Teams Incoming Webhook URL
PagerDutyA PagerDuty Events API v2 integration (routing) key
EmailOne or more recipient addresses

A generic webhook channel is planned but not currently implemented.

Paging: PagerDuty and email ​

These two are delivered by the console itself, off the alert path, so a slow PagerDuty or mail server never delays an alert. A failing destination shows its last error in the Last delivery column, because a page that silently failed is the worst outcome.

PagerDuty opens one incident per alert, keyed by the alert's id, so a repeat or an elevation updates the incident and cannot open a second. A resolved or cleared alert resolves it, and acknowledging the alert in the console acknowledges the incident. critical, warning and info map to the PagerDuty severities of the same names; the allowlist decides which alerts page. An alert that is reduced below the allowlist resolves its incident. The AI triage narrative is not sent to PagerDuty. Test opens a test incident and resolves it at once. To use the EU service region, set CritterWatch:PagerDuty:EventsUrl.

The routing key is write-only: it is stored in the console's database, never returned by the channels API, and leaving it blank on an edit keeps the stored one.

Email sends one mail per batch of alert changes to every address on the channel, with a link back to the console, and a follow-up when the AI triage narrative arrives. A resolve is mailed only for an alert whose raise was mailed. The mail server is configuration, not part of the channel, because the credentials are secrets:

json
{
  "CritterWatch": {
    "Email": {
      "Host": "smtp.example.com", "Port": 587, "EnableSsl": true,
      "Username": "...", "Password": "...",
      "From": "critterwatch@example.com",
      "ConsoleUrl": "https://critterwatch.example.com"
    }
  }
}

It sends through System.Net.Mail.SmtpClient. To use a provider's API or MailKit instead, register your own IAlertEmailSender after AddCritterWatch.

Per-channel actions ​

ActionEffect
TestSends a synthetic alert through the channel. Result (Sent / error) appears below the row.
EditOpens the channel form for editing
DeleteRemoves the channel (no confirmation popconfirm — the side effect is recoverable)
Add Channel (header)Opens the channel form for a new channel

The channel form takes the name, type, webhook URL (rendered as a password field — webhook URLs are secrets), enabled toggle, and a checkbox group of alert severities (critical / warning / info). Only severities in the allowlist trigger a delivery.

What a channel receives ​

PostWhenContent
AlertEach alert lifecycle change (raised, elevated, reduced, resolved, cleared, acknowledged, snoozed) whose severity is in the allowlist, at most once a minute per channel and alertA header CritterWatch Alert: {alert type}, the severity, the alert's message and the service
AI triageWhen LLM alert triage stores a narrative, and the most severe alert it covers is in the allowlistA header CritterWatch AI triage, the label "AI assessment — suggestion only, not a diagnosis", the summary and assessment, the suggested console actions by name (not run), and one line per alert it covers: severity, type, service and subject

Each is shaped for its channel type: Slack Block Kit blocks, a Discord embeds entry, or a Teams Adaptive Card attachment. Neither carries a button or any other action. Webhook posts are flat: for alert follow-ups and triage threaded under the original alert, use the Slack package.


Trace Providers ​

External OpenTelemetry trace stores that CritterWatch queries when surfacing trace data on per-instance saga replay, handler-source-code views, and the Topology page. Nothing is stored locally — every render fetches.

Provider types ​

TypeStatus
JaegerAvailable now
DatadogAvailable now
AppInsightsAvailable now — see Application Insights Tracing

Multiple instances of the same type are supported (e.g. one Jaeger for dev, one for prod). Each provider has a stable runtime id used as the foreign key for per-service bindings.

How the catalog gets populated ​

Providers are declared at host startup through DI, not from the UI. The Settings page surfaces what's wired up; it cannot add or edit a provider on its own.

cs
services.AddCritterWatchTraceProvider<JaegerTraceProvider, JaegerTraceProviderOptions>(
    "jaeger-dev",
    opts => opts.BaseUrl = "http://localhost:16686");

services.AddCritterWatchTraceProvider<DataDogTraceProvider, DataDogTraceProviderOptions>(
    "datadog",
    opts =>
    {
        opts.ApiKey = configuration["Datadog:ApiKey"]!;
        opts.AppKey = configuration["Datadog:AppKey"]!;
        opts.Site = "us1";
    });

services.SetDefaultCritterWatchTraceProvider("jaeger-dev");

This pattern moves endpoint URLs + credentials into strongly-typed options classes that bind from configuration / secret stores — the operator UI never sees the secrets. To add or remove a provider, edit the host startup and redeploy; the Settings page picks up the change on next load.

Registered providers (read-only) ​

ColumnMeaning
IdStable runtime id (e.g. jaeger-dev)
TypeProvider type (Jaeger, Datadog, …)
Default"default" tag if this provider serves services without an explicit binding
StatusOne-shot reachability probe — Reachable, Unreachable, Not yet tested

The Test button per row calls GET /api/critterwatch/tracing/providers/{id}/health and updates the status in place.

Per-service bindings ​

The bindings table below the catalog is the routing layer — one row per monitored service that has either pushed a preferred provider (via the Wolverine.CritterWatch push API on the service side) or been overridden by the operator from this page.

ColumnMeaning
ServiceService id (matches what shows up on the Services page)
PushedThe provider id the service declared in its CritterWatch wire-up; — if the service has never declared one
ActiveDropdown of registered providers — what CritterWatch actually uses for this service
StatusSingle chip rolling up the four cases below
Actions"Use pushed value" button — only visible when the row is overridden

Status chips ​

ChipColourWhen
Matches requestgreenActive provider == pushed provider; the operator has not overridden
Overridden by operatoramberActive provider ≠ pushed provider; tooltip shows both ids
Provider not registeredredActive provider id is not in the DI catalog; either the service is asking for a provider that nobody registered, or the operator picked one then removed the registration
No bindinggreyNo provider id on the row (rare — only happens on bindings whose id was blanked out manually)

Operator override flow ​

To route a service's traces to a different provider than the one it declared:

  1. Pick the new provider from the Active dropdown — PUT /bindings/{serviceId} fires immediately, no save button.
  2. The chip flips to amber "Overridden by operator". The dropdown stays editable so further changes overwrite the active value.
  3. To clear the override, click Use pushed value — DELETE /bindings/{serviceId} resets Active = Pushed. If the service has never pushed (row was operator-only), the entire row disappears.

The service-side push value is preserved across operator edits, so a service redeploying and re-declaring its preferred provider does not clobber the operator's pick.

The same Active dropdown is available on each service's Overview tab (Services → pick service → Overview → Trace provider). The Settings page is the cross-service view; the per-service tab is the single-service view. Either one writes to the same backend.


Metrics Data Sources ​

Metrics-data-source bindings mirror the trace-provider section: the catalog is declarative at host startup, and the Settings page surfaces a read-only listing plus a mutable per-service routing table.

Source types ​

TypeStatus
PostgreSQLBuilt-in (always available)
PrometheusAvailable now
VictoriaMetricsAvailable now
DatadogAvailable now
AppInsightsAvailable now — see Application Insights Metrics

The built-in PostgreSQL source has a real storage cost under load

The default source persists one MetricsSample row per (service, message type, destination, tenant, minute) in the console's own database — a production fleet measured ~1 GB/hour from that table alone. The same multiplication drives the console's telemetry ingest volume: the samples arrive inside each service's ServiceUpdates batches, scaling with message types × destinations × tenants, and on high-tenant fleets they are the dominant share of what the console has to ingest at all. For any system with meaningful throughput, switch the service to WolverineMetricsMode.SystemDiagnosticsMeter — which stops the samples being produced and published at the source — and bind it to an external source (Prometheus, VictoriaMetrics, Datadog, Application Insights) here instead. See Metrics storage and sizing for the numbers and the knobs, and Use an external metrics stack under load for the recommended posture.

The PostgreSQL source is registered automatically by AddCritterWatchServices — services with no binding and no operator-declared default land on it. Additional sources are declared in host startup the same way trace providers are:

cs
services.AddCritterWatchMetricsDataSource<PrometheusMetricsDataSource, PrometheusMetricsDataSourceOptions>(
    "prometheus",
    opts => opts.BaseUrl = "http://prometheus:9090");

services.SetDefaultCritterWatchMetricsDataSource("prometheus");

Registered data sources (read-only) ​

ColumnMeaning
IdStable runtime id
TypeSource type discriminator
Default"default" tag if this source serves services without an explicit binding

Per-service bindings ​

Same shape as the trace bindings table:

ColumnMeaning
ServiceService id
PushedThe data-source id the service declared, or —
ActiveDropdown of registered data sources
StatusOne of the four chips (same semantics as trace bindings: match / overridden / not registered / no binding)
Actions"Use pushed value" reset, visible on overrides only

Status chip rules and operator override flow are identical to trace providers — see above. The wire endpoints are GET/PUT/DELETE /api/critterwatch/metrics/data-source-bindings/{serviceId}.


License Info ​

Read-only. Pulled from GET /api/critterwatch/license.

FieldMeaning
TierThe license's plan (for example Professional or Enterprise), colour-coded; Free when no valid license is present
OrganizationLicense-bearing organization
ExpiresExpiry date; "EXPIRED" tag in red if past due
Max ServicesCap on monitored services; "Unlimited" if effectively uncapped

Below the descriptions block, a Feature Availability table lists four license-gated features — Alerts, Audit Log, Multi-Tenancy and Custom Thresholds — each with a Yes / No tag derived from the license. Whether action buttons are enabled is covered below.

If license info is unavailable (no license endpoint, network error), the card renders an empty state.


Checking for updates ​

When a newer CritterWatch is published on NuGet, a small dot appears on the About (ⓘ) icon in the header, whose tooltip reads "About CritterWatch — X is available". The About dialog then shows X available with a What's new link to the release notes. Nothing is shown when the console is current. The console checks once a day, from the host rather than the browser; turn it off with CritterWatch:UpdateCheck:Enabled=false (see Update check).


Operations and the license ​

Whether action buttons are enabled comes from the license alone: operationsEnabled on GET /api/critterwatch/license. There is no separate "Operations Enabled" setting in configuration or in the Aspire host. Without a license that enables operations, every action button (replay, discard, pause, restart, rebuild and the rest) renders disabled with the tooltip "This operation requires a CritterWatch license", and the console refuses the command if it is sent anyway. With RBAC wired, a capability check applies on top of that (RBAC).


Data Retention ​

How long CritterWatch keeps its own bookkeeping data.

This card is read-only. It reports the effective values the pruners actually run with — the defaults overlaid with whatever the host's appsettings supplies — together with the configuration section each one binds from, so "where do I change this" has an answer. It is deliberately not editable: runtime retention edits interact with partitioning and with the pruners' batching, and would have to travel the SignalR command path. Change them in the console host's configuration and restart.

GroupBinds fromNotable values
TimelineCritterWatch:Timelineretention period (default 30 days), prune interval, per-service row cap (default 250,000), compaction of redundant entries, delete batch sizes
MetricsCritterWatch:Metricssample retention period, hot window, bucket width, per-tenant sample ceiling, prune interval
Conversationsmax stored hops
CapabilitiesCritterWatch:Capabilitieshistory versions kept per service

There is no audit-log retention

AuditLogEntry has no pruner and no retention setting — audit entries are kept indefinitely. An earlier revision of this page listed an "Audit Log Retention (days)" field; it has never existed.


Roadmap ​

Currently planned settings additions:

  • OAuth / SSO — single-sign-on for the CritterWatch console
  • Per-environment colour-banding — visual differentiation between dev / staging / prod CritterWatch instances
  • Webhook channel — generic webhook delivery for alerts
  • Backup + restore — export/import of CritterWatch's own configuration (thresholds, channels, providers) for environment promotion