Alerts
CritterWatch implements a fully event-sourced alert lifecycle. Every alert transition — raised, elevated, reduced, resolved, cleared, plus the operator annotations acknowledged and snoozed — is stored as an immutable event in the console's event store, providing a complete audit trail of system health over time.
⚠️ The console reads that trail back only as a flat feed. Each transition appears as its own Timeline entry; nothing groups them per alert, and the metric value that triggered a transition is not displayed. See What an alert card does not do.
Alert Lifecycle
Acknowledge and Snooze are not states. They are annotations recorded against an alert that is still in whichever state it was already in — acknowledging an alert does not resolve or clear it, and neither event touches the active flag. The console nonetheless hides an acknowledged alert immediately, which is the one place its display and the stored record disagree.
States
| State | Description |
|---|---|
| Raised | Threshold first exceeded. Initial alert created. |
| Elevated | Condition persists beyond the escalation period. Severity increased. |
| Reduced | Condition is improving but not yet resolved. |
| Resolved | Condition has cleared automatically. |
| Cleared | Closed by an operator. Terminal. |
Annotations
| Annotation | Description |
|---|---|
| Acknowledged | An operator has seen it. The alert stays in its current state; the console stops showing it. |
| Snoozed | Suppressed until a wall-clock time. The alert stays in its current state and resurfaces when the snooze expires. |
Alerts auto-resolve when the underlying condition clears; each type's section below says what clears it. Six types can also be closed by hand with Clear — see Operator actions for which.
Alert Types
The complete vocabulary is the AlertId.Types enum in Wolverine.CritterWatch: AgentDown, AgentHealth, AgentReassignmentStorm, AgentUnplaced, BackPressure, CircuitBreaker, DocumentFilterWatch, DocumentFilterWatchUnmeasurable, HighWaterAgentRestarted, HighWaterMarkFrozen, HighWaterStale, MetricsDlqRate, MetricsExecTime, MetricsFailureRate, MetricsThroughput, NodeFlapping, NodeOverloaded, NodeRuntimePressure, NoIngestRecord, ProjectionAgentUnassigned, ProjectionDeadLetters, ProjectionLag, ProjectionLagUnmeasurable, ProjectionPaused, ProjectionStale, SelfIngestFailure, ServiceOffline, ShardOwnershipConflict, StaleListener, TransportDegraded, TransportUnhealthy. Each is described below.
High-water mark frozen (HighWaterMarkFrozen)
Raised when a database's high-water mark is still being polled but has not advanced while events are committed above it. That is a mark held by a gap, and every async projection on the database waits behind it. Three things must all be true:
- the mark has not advanced for 2 minutes (Warning) or 10 minutes (Critical);
- a node reports events committed above the mark;
- some node's high-water loop for that database is still polling.
A quiet database, with nothing above its mark, never raises it.
It is the counterpart of HighWaterStale, which judges the loop's poll heartbeat and so covers a loop that stopped polling. The remedies differ:
HighWaterStale | HighWaterMarkFrozen | |
|---|---|---|
| what is wrong | the loop stopped polling | the loop polls, but a gap holds the mark |
| remedy | Restart high water detection (safe) | Advance high water mark (skips events) |
The alert only navigates. Advancing a mark skips events, so preview it on the Operations tab, read what would be skipped, and confirm. It resolves when the mark advances, or when a fresh reading shows nothing committed above it.
High-water agent alerts (HighWaterStale, HighWaterAgentRestarted)
HighWaterStale is raised when a database's high-water agent has neither advanced nor sent a heartbeat for 5 minutes (Warning) or 30 minutes (Critical), set by HighWaterStaleWarningThreshold / HighWaterStaleCriticalThreshold on the projection defaults. Every projection-lag figure on that database is then measured against a mark that is not moving. It resolves when the agent advances or heartbeats again.
HighWaterAgentRestarted is a Warning raised when the high-water agent reports a restart, or its mark moves backwards between two checks. It resolves on the next check that shows neither.
Dead Letter Alerts
Two distinct alert types, and they measure different things:
MetricsDlqRate is a rate, not a standing count — it fires on how fast dead letters are arriving, so a large old backlog that has stopped growing does not keep shouting:
- Warning —
DlqRateWarningPerHour(default 10 per hour) - Critical —
DlqRateCriticalPerHour(default 50 per hour)
Both are MetricsAlertDefaults settings, overridable per service through the alert-configuration API; the Alert Configuration page has no field for them. The rate is measured per service. It resolves through the same pass-count hysteresis as the other metrics alerts.
ProjectionDeadLetters covers a projection shard's own dead letters, and its two severities are asymmetric on purpose:
- Critical — a standing backlog at or above
DeadLetterCriticalThreshold(default 10), raised immediately and independent of the Warning throttle below - Warning — a recency signal, raised whenever the count goes up between two checks (the first check after the console starts only records the count). It is raised at most once an hour, so a flapping shard cannot flood the feed
It resolves once the count falls below DeadLetterWarningThreshold (default 1). That threshold is the resolve floor, not a raise trigger.
Execution time, throughput and failure rate alerts
All three are evaluated per service, and on a multi-tenant service per tenant as well, every 30 seconds. Each raises, changes severity and resolves only after consecutive passes agree (two by default; see How metrics-based alerts are determined).
MetricsExecTimecompares the average execution time over the last 30 minutes with the service's baseline: Warning atExecTimeWarningPercentabove it (default 50%), Critical atExecTimeCriticalPercent(default 200%).MetricsThroughputcompares executions per hour over the last 15 minutes with the baseline, which is built from executions too: Warning atThroughputWarningMultipliertimes it (default 3), Critical atThroughputCriticalMultiplier(default 10). It fires on a spike, not on a drop. A message counts once when it is handled, however many it sends. Every metrics source reads it this way as of 1.2. Before 1.2, Prometheus and VictoriaMetrics read the sent rate against an execution baseline, so a service that fans out could read as a spike and a consume-only service read near zero. Expect this alert to fire differently on those two sources after upgrading.MetricsFailureRateis the share of executions that failed or dead-lettered withinFailureRateWindow(default 30 minutes): Warning at 5%, Critical at 20%. It needs no baseline.
With no usable baseline, MetricsExecTime and MetricsThroughput raise nothing and resolve any standing alert.
Projection Stall Alerts
Also two types, measuring lag two different ways:
ProjectionLag counts events behind the high-water mark, not seconds:
- Warning —
BehindWarningThreshold(default 1,000 events) - Critical —
BehindCriticalThreshold(default 10,000 events)
ProjectionStale is the wall-clock interval since the shard last advanced:
- Warning —
StaleWarningThreshold(default 5 minutes) - Critical —
StaleCriticalThreshold(default 30 minutes)
Both are ProjectionAlertDefaults settings, overridable per service and per shard. When AutoRestartOnStale is enabled, tripping the Critical stale threshold sends RestartProjection to the affected service — once per stale episode. Both auto-resolve when the projection advances again.
Unmeasurable Lag Alerts
ProjectionLagUnmeasurable fires when an Async shard reports no high water mark for its scope, so its lag cannot be computed at all.
This is a separate alert type from ProjectionLag on purpose. A gap that could not be computed is not a gap of zero, and the console must not put a number on it — but it must not stay silent either, which is what it used to do.
⚠️ An earlier revision of this page credited the 24 August production incident — a rollout that left 76 of 512 shards with no agent assigned — to this alert type. That holds only if those shards reported no mark. The field report's own wording is that a frozen high water mark subtracted to zero, and a frozen mark is present, so this alert would not have fired on it. The condition that incident describes is covered by
ProjectionAgentUnassignedbelow.
- Warning — some eligible tenants on the projection cannot be measured. We genuinely do not know whether any of them is behind.
- Critical — every eligible tenant cannot be measured. That is no longer an unknown: the projection's high water mark is not being reported at all, and the console is blind to it.
Orphaned shards, rebuilding shards, and Inline/Live projections never raise it — none of those has a gap to measure in the first place, which is a different thing from a gap we failed to measure. It resolves as soon as a mark is reported again.
Unassigned Agent Alerts
ProjectionAgentUnassigned fires when a projection is registered and nothing is running it — one or more of its shards has no agent assigned at all.
This is the 24 August production incident: a rollout left 76 of 512 shards unassigned, every frozen high water mark subtracted to zero, the screen was entirely green, and no alert fired. Both halves of the console agreed nothing was wrong.
Two separate mechanisms produced that silence, and both are fixed:
The per-shard evaluators skip an
Action == "Idle"baseline wholesale, on the sound reasoning that a shard which is not running cannot be behind, stale, paused or agent-down. What that reasoning assumes is that not running is fine.AgentDowncould not have caught it either. That rule returns early when a shard has no heartbeat at all, so the alert built to detect a dead agent is structurally silent for an agent that was never alive.Warning — some of the projection's shards have no agent.
Critical — no agent is running any shard of the projection.
Deliberately quiet in four cases: orphaned shards (a tombstone for an agent that will never run again), rebuilding shards (busy by definition), paused agents (expected state, and ProjectionPaused carries the reason), and Inline/Live projections (no async agent to be missing). It is also suppressed for the first five minutes after a node starts, because a rollout is exactly when shards are legitimately unassigned and an alert on every deploy is how an alert type gets trained away. Standing alerts still resolve during that window; only raising waits.
⚠️ It is scoped to the projection, not the shard: 76 unassigned shards produce one alert naming the tenants, not 76 alerts.
Unplaced Agent Alerts
AgentUnplaced fires when the service's Wolverine leader could not place agents on any node, and says why, using Wolverine's own reason (requires the monitored service on WolverineFx 6.52 or later):
AwaitingCapacity— capacity-aware assignment is on and no serving node is accepting new agents. Add nodes or reduce load.NoCapableNode— no running node can run the agent, for example during a blue/green rollout when only the version that knows about it is stopped. Deploy or start a version that declares it.
It is Critical, one alert per (service, reason) naming every affected agent, and its only remediation is the service's Agents tab. Neither reason is healed by a restart, and the alert says so.
It is raised only after an agent has stayed unplaced for the same reason for five minutes, because rollouts and leader changes legitimately leave agents briefly unplaced. It does not raise for agents an operator paused, for a new leader's bounded take-over hold, for superseded agents, or when Wolverine cannot tell why.
It resolves on positive evidence only: the leader's next snapshot no longer lists the agent, the agent is seen starting on a node, or an operator pauses it (the resolution says which). Silence, a service going offline, or the reason becoming unknown does not resolve it.
⚠️ A projection shard that AgentUnplaced reports is not also reported by ProjectionAgentUnassigned, whose remedy is a restart. Without a snapshot from the leader (an older client), ProjectionAgentUnassigned behaves exactly as before.
NodeOverloaded fires when a node advertises load at or above the service's DurabilitySettings.NodeOverloadThreshold (90% by default) under capacity-aware agent assignment. Wolverine's leader then moves agents off that node and places none on it. It is a Warning, one per node, raised once the node has stayed overloaded for two minutes, because load crosses the line harmlessly during a rolling deploy or a burst. It resolves when the leader's next report shows the node below the threshold or no longer in the cluster. A service without capacity-aware assignment never raises it, because its nodes do not advertise load.
NodeRuntimePressure fires when a node's process CPU (percent of all cores) or managed heap (percent of the memory limit, only where the runtime reports one) has stayed at or above 90% for five minutes, from the samples each node reports (see the node page). It is a Warning, one per node and resource. It resolves when a fresh sample shows the resource back below the threshold, or when the node has not reported for an hour. A node that simply goes quiet neither raises nor resolves it: silence is unknown, not healthy. The thresholds are fixed for now.
DocumentFilterWatch and DocumentFilterWatchUnmeasurable are the business-level alerts: you watch a saved Document Explorer filter and the console raises DocumentFilterWatch at the severity you chose while the count of matching documents is above, below, or different from what you asked, and resolves it on the next count that is not. The subject is the watch's id. When the count cannot be taken, because the service did not answer, its store now refuses the filter (a property was renamed), or its client is too old to apply a filter, the console raises DocumentFilterWatchUnmeasurable (a Warning) instead. It never resolves DocumentFilterWatch, and never reads as a count of zero: an unknown is not a clear.
It is the early warning; the incident is AgentUnplaced with reason AwaitingCapacity, raised when no node has headroom left for an agent. Add capacity or reduce load; a restart is not the remedy for either.
Agent Health Alerts
AgentDown is raised when a projection agent's last heartbeat is older than 60 seconds, or 2.5 × the heartbeat interval the console has observed for the service, whichever is longer. It describes an agent that stopped; an agent that never started raises ProjectionAgentUnassigned instead.
- It is Critical only — there is no Warning tier and no consecutive-check counter.
- Neither the 60-second floor nor the 2.5× factor is configurable.
- It is deliberately suppressed in two cases where silence is the expected state: an orphaned shard (a projection version bump or removal leaves an agent that will never heartbeat again), and an agent an operator has paused — which raises
ProjectionPausedinstead, carrying the reason.
Auto-resolves on the next fresh heartbeat.
AgentHealth carries the health a service reports for each of its running agents: Critical while an agent reports Unhealthy, Warning while it reports Degraded, with the agent's own description. It resolves when the agent reports Healthy again, or when the leader removes the agent from the cluster.
Paused Projection Alerts
ProjectionPaused is raised while a projection shard reports itself paused, carrying the reason. It is a Warning when an operator paused the shard and Critical when the daemon paused it after a failure. It resolves when the shard is no longer paused. A paused shard raises this rather than AgentDown.
Agent Churn Alerts
Both count changes over a sliding 5-minute window, and neither limit is configurable:
AgentReassignmentStorm(Warning) — one agent was reassigned more than 6 times: the leader may be re-issuing assignments in a loop.NodeFlapping(Critical) — one node number was ejected more than 3 times: the node is likely being ejected and resurrected in a loop.
Each resolves on the next reassignment of that agent (or ejection of that node) that finds the window's count back within the limit. If no further change arrives, it stays active.
Service Offline Alerts
ServiceOffline is raised when no telemetry from a service has reached the console for five minutes. Heartbeats travel with the rest of a service's telemetry, so this means every node of the service has gone silent. On the Services page the service's pill then reads Offline, not Healthy.
- It is Critical. The five-minute window matches the "snapshot N min old" badge on the same page, and it is not configurable.
- It is raised only while the console can show that it is itself ingesting: at least one other service's telemetry is current, and the console's own ingest alarm (
SelfIngestFailure) is not active. Otherwise a console that has just restarted, or whose ingest has failed, would declare the whole fleet offline at once. On a console that monitors a single service, it cannot fire, because a silent service leaves nothing to compare against. The per-node heartbeat dots and the stale-snapshot badge still show the silence. - A service the console has never received telemetry from raises
NoIngestRecordinstead. That is a different finding.
Auto-resolves as soon as the service reports again. It is never cleared merely because the console stopped being able to judge. If a service was retired on purpose, evict it.
Console Ingest Alerts
NoIngestRecord is a Warning raised when the console holds no record of having applied any telemetry for a service. Every timestamp on that service's snapshot is then of unknown age, so its liveness alerts (AgentDown, ProjectionStale, HighWaterStale) are held back. After an upgrade it appears briefly across the fleet and clears with each service's first applied batch; if it stays, the console cannot apply what the service sends. It resolves as soon as a batch is applied.
SelfIngestFailure is the console's alarm about itself, raised as Critical under the service name CritterWatch and shown as a banner across the console. It covers repeated failures to ingest telemetry (3 within 2 minutes), one of its own ingest listeners not receiving for 60 seconds or faulted, a cluster that does not match the declared deployment shape, and event streams whose recorded version is behind their own events. Each resolves when its condition clears; the ingest-failure one needs a fully quiet window first. The fix is in the console host's logs and deployment, so the alert carries no remediation button.
Shard Ownership Alerts
ShardOwnershipConflict is raised when more than one node is running the same projection shard. That is the condition a ProgressionProgressOutOfOrderException reports after the fact, and restarting the shard while both owners are still running cannot fix it.
- CritterWatch sees it from the node each shard report comes from. Every node reports the shards it runs, so two owners show up as the reporting node alternating: three or more changes within two minutes. An ordinary rebalance changes the reporting node once (twice, if a last report from the old node arrives late), so it never raises this.
- It is Critical, and it triggers no recovery. Find the node that should not be running the shard on the service's Nodes view, stop or eject it, and only then restart the shard.
- It resolves once reports have kept arriving for ten minutes without alternating. A shard that has simply stopped reporting keeps the alert.
- It does not check the reporting node against the node Wolverine assigned. A single owner running on the wrong node is not reported.
Circuit Breaker Alerts
Triggered immediately when a circuit breaker trips on any endpoint. Severity is always Critical. Auto-resolves when the circuit breaker resets.
Back Pressure Alerts
BackPressure is raised as a Warning when Wolverine's back pressure pauses a listener because its local queue is over the buffer limit. If back pressure is still on after one minute (BackPressureEscalationTimeout on the metrics defaults), it is elevated to Critical. It resolves when back pressure lifts.
Listener and Transport Alerts
StaleListener (Warning) is raised when a listener reads Accepting but is not consuming: its transport channel is Disconnected, its receive loop is Stopped or Faulted, or messages are waiting (in the broker or locally) and it has had no activity for 2 minutes. It resolves when the listener is active again or stops reading Accepting, as after an operator pause. The opt-in auto-restart is on Alert Configuration › Listeners Tab.
TransportUnhealthy (Critical) and TransportDegraded (Warning) follow the health a service reports for each of its transports, one alert per transport, with the transport's own message. Both resolve when the transport reports healthy again.
Where alerts appear
There is no dedicated Alerts page. Alerts surface in two places an operator can act on, plus a set of counts and indicators that link into them.
Service Details → Health tab — the alert list
/service/{serviceName}?tab=health is the only per-alert card list, and it is scoped to one service. The tab is labelled Health (with a badge count); the heading inside the pane is Alerts. Each card carries severity, category, title, message, an optional "raised N days ago" tag, and the action buttons described below.
You arrive here from the per-service alert badge on the Services page, or from a node's alert badge on the Cluster tab. Arriving from a node badge or an endpoint's "Latched" pill sets a read-only focus chip ("endpoint {uri}" / "Node {n}", optionally a severity) that narrows the list; the only control on it is ✕ Clear filter. There is no way to set that focus from the Health tab itself, and no other filter on this surface.
Timeline — the alert history
/timeline is a mixed event feed, not an alert list: alert transitions are one of eight categories. Its filter bar is a free-text search, a single-select Severity (Critical / Warning / Info), category chips (Alert, Service, Node, Projection, Listener, Agent, Tenant, Compaction), and an "Agent & node lifecycle" checkbox that is off by default. The layout's global service selector applies on top.
There is no Status filter and no alert-Type filter on any surface, and no Active / History tab split anywhere. The Health tab shows only active alerts; the Timeline shows every transition including resolutions and clears, but as feed entries rather than as alert rows you can act on.
Counts and indicators
| Surface | What it shows | Where it goes |
|---|---|---|
| Header bell | a count badge, no dropdown | /timeline, with no pre-filter |
| Dashboard Active Alerts tile | count + critical/warning pills | /timeline?severity=… |
| Dashboard Recent Events | last 10 timeline entries | a raised or elevated alert: /timeline filtered to alerts at that severity, for that service; a projection entry: its projection detail page; a service entry: Service Details; anything else: /timeline |
| Services page, per service | badge count | that service's Health tab |
| Cluster tab, per node | badge count | Health tab, focused on that node |
| Endpoints / Projections / Topology | a warning icon or coloured dot | — (indicator only) |
⚠️ Three alert counts legitimately disagree, by design. The bell counts active non-DLQ alerts, coalesced so a per-tenant alert counts once per projection + condition rather than once per tenant. The dashboard's Active Alerts tile includes DLQ alerts. The API returns raw records. So the bell is normally lower than the dashboard tile. Both tooltips explain this in place.
What an alert card does not do
Clicking an alert opens nothing. There is no detail panel, drawer, dialog, expandable row, or detail route — only the card's own buttons act. In particular there is no State Timeline on the card: nothing groups an alert's transitions together, and the metric value that triggered a transition is not displayed anywhere.
The transitions themselves are not lost — each one lands on the Timeline as its own entry (raised, elevated, reduced, resolved, cleared), and operator actions additionally land in the Audit Log with an actor. Reconstructing one alert's history means filtering the Timeline to it by hand.
Operator actions
Acknowledge / Snooze / Clear / Dismiss
| Action | Where | Effect |
|---|---|---|
| Acknowledge | Health tab, Timeline | Records AlertAcknowledged and removes the alert from the console immediately. |
| Snooze | Health tab, Timeline | Suppresses the alert for one hour. |
| Clear | Health tab only | Records AlertCleared and closes the alert. |
| Dismiss | Health tab only | Hides the card in this browser only. Nothing is sent to the server. |
⚠️ Snooze offers no duration picker. Every call site is hardcoded to one hour and the toast reads "Alert snoozed for 1 hour". The wire message accepts an arbitrary duration, but no UI ever sends anything else.
⚠️ Acknowledge is one-way in the UI. The alert is dropped from the client store the moment it is acknowledged, and no surface can show it again. The record itself stays active — acknowledging does not resolve or close an alert — so the console and the event store disagree about it from that point on.
⚠️ Clear takes no note. ClearAlert carries only the stream id and an actor. The actor recorded is the signed-in user when the console has one; the browser sends UI User, which is used only on an anonymous connection (RBAC off). There is no note field and no confirmation prompt. The same is true of Acknowledge and Snooze. Each of the three is written to the Audit Log with its channel, and one taken by an agent over MCP names its caller.
Clear and Dismiss appear only on six types — MetricsExecTime, MetricsThroughput, MetricsFailureRate, MetricsDlqRate, BackPressure, AgentHealth. These auto-resolve too; Clear lets an operator close one sooner. Every other type shows "Will auto-resolve when conditions improve" in place of the Clear button.
On a coalesced per-tenant card, Acknowledge and Snooze apply to every member of the group (the toast says "Acknowledged across N tenants"); Clear and Dismiss act only on the representative alert.
Remediation actions
Each card offers context buttons for its alert type. The buttons are navigation, with two exceptions — Restart projection and Restart listener, which dispatch a command behind a confirmation prompt.
What needs an operations license differs by surface. On the Health tab every remediation button, navigation included, and Acknowledge, Snooze, Clear and Dismiss are disabled without one. On the Timeline only Acknowledge, Snooze and the two restarts are; its navigation buttons stay enabled.
| Alert type | Buttons |
|---|---|
MetricsExecTime | View slow message types |
MetricsDlqRate, MetricsFailureRate | View dead letters |
MetricsThroughput | View health & metrics |
HighWaterStale, HighWaterAgentRestarted, ProjectionLagUnmeasurable | View projections (the Event Store Explorer's Operations tab) |
HighWaterMarkFrozen | View projections (the Operations tab, where Advance high water mark is previewed and confirmed) |
ProjectionLag, ProjectionStale, AgentDown, ProjectionAgentUnassigned | View projection, Restart projection |
ProjectionPaused | Restart projection |
ProjectionDeadLetters | View projection |
BackPressure | View listener |
CircuitBreaker, StaleListener | View listener, Restart listener |
AgentHealth, AgentUnplaced, NodeOverloaded, AgentReassignmentStorm | View agents |
NodeRuntimePressure | View nodes |
DocumentFilterWatch, DocumentFilterWatchUnmeasurable | View filter (opens the Document Explorer on the filter being counted) |
NodeFlapping | View cluster |
TransportDegraded, TransportUnhealthy | View infrastructure |
ShardOwnershipConflict, ServiceOffline | View nodes |
NoIngestRecord | Check ingest health |
SelfIngestFailure | none: the fix is in the console host's logs and deployment |
The catalog is served by the console (GET /api/critterwatch/alerts/remediation), so every surface shows the same buttons. A card also carries a separate View link for the dead-letter, projection, high-water and listener families, and for AgentUnplaced.
When LLM alert triage is on and has assessed an alert, the card shows the model's narrative, labelled as model output, and marks any button it suggests as Suggested by AI triage. A suggestion only marks a button the card already has; pressing it goes through the ordinary confirmation and permission check.
⚠️ There is no Replay All, Discard All, Rebuild Projection, Eject Node, or View Service button on an alert. Bulk DLQ replay and discard live on the Dead Letters surface; rebuild lives on the projection pages; eject lives on the Cluster tab. Reaching them from an alert means following its View button and acting there.
The Timeline's alert rows carry the same remediation buttons plus Acknowledge and Snooze, but not Clear, Dismiss, or the View CTA.
How Metrics-Based Alerts Are Determined
Some alerts (DLQ count, projection lag, agent health, circuit breaker) are driven by direct counts and trigger as soon as a configured threshold is crossed. Metrics-based alerts — throughput abnormal and execution time abnormal — are different. They compare a current reading against a baseline and only raise when the deviation is large enough and has persisted long enough.
The baseline cascade
For each service (and, on a multi-tenant service, each tenant) the evaluator picks the effective baseline in this order. It is service-wide, except for a message type with thresholds of its own: its execution-time check uses that type's own history and declaration.
Observed history — the service's average for the same hour of the day and day of the week, computed from its metrics samples. Only used when it is mature:
- the oldest sample is at least
BaselineMinimumDaysold (default 10), - there are at least
BaselineMinimumSamplesbuckets (default 100), and - for throughput, the observed value is above
BaselineMinimumThroughputPerHour(default 1.0/hr) — this stops a single fractional sample from triggering huge multipliers.
- the oldest sample is at least
Declared baseline — a value supplied by an operator. Comes from one of two sources:
configureBaselinesonAddCritterWatchMonitoringin the monitored application — see Registration › Declared Baselines.- An operator edit through
PUT /api/critterwatch/alerts/config/metrics/services/{serviceName}/baselines(declaredThroughputPerHour,declaredAvgExecTimeMs, and an optionalmessageType). The console has no screen for this yet.
A per-message-type declaration, from either source, is used only by that type's own execution-time check (below). Throughput is service-wide, so a per-message-type throughput declaration is stored but not applied.
None → no alert. The dimension raises nothing, and an alert still active from an earlier pass resolves. This is the state of any newly-monitored service that hasn't shipped a declared baseline.
SuppressThroughputAlertsDuringWarmup/SuppressExecTimeAlertsDuringWarmupdo not change that: setting them tofalseonly changes the reason recorded on the resolve.
Each baseline change is recorded as a ThroughputBaselineChanged / ExecTimeBaselineChanged event so the audit trail makes the provenance clear: Source = ServiceCapabilities for values advertised by the monitored app at startup, Source = Operator for values set by an operator edit.
Threshold multipliers
Once an effective baseline exists, the evaluator compares current readings against multipliers / percentages:
| Setting | Default | Meaning |
|---|---|---|
ThroughputWarningMultiplier | 3 | Warn when current rate is ≥ 3× baseline |
ThroughputCriticalMultiplier | 10 | Critical when current rate is ≥ 10× baseline |
ExecTimeWarningPercent | 50 | Warn when avg exec time is ≥ baseline + 50% |
ExecTimeCriticalPercent | 200 | Critical when avg exec time is ≥ baseline + 200% |
FailureRateWarningPercent | 5 | Warn when failures are ≥ 5% of executions |
FailureRateCriticalPercent | 20 | Critical when failures are ≥ 20% of executions |
DlqRateWarningPerHour | 10 | Warn when DLQ rate ≥ 10/hr |
DlqRateCriticalPerHour | 50 | Critical when DLQ rate ≥ 50/hr |
Hysteresis (K-of-N) — noise suppression
A single noisy evaluation never raises or resolves an alert by itself. Instead the evaluator tracks consecutive passes:
| Setting | Default | Meaning |
|---|---|---|
HysteresisRaisePasses | 2 | A breach must be observed in this many consecutive passes before the alert is raised (or its severity changed). |
HysteresisResolvePasses | 2 | A below-threshold reading must be observed in this many consecutive passes before an active alert auto-resolves. |
With the default 30-second evaluator cadence this means ~60 seconds of confirmation either way before any state change reaches the user. Increase the values to be more conservative; setting either to 1 disables that side of the hysteresis.
Cascade order
Every metrics-based threshold and every baseline-policy knob is resolved most-specific-first:
- Per-message-type thresholds (
MessageTypeAlertThresholds), for that type's own alerts only - Per-service override (
ServiceMetricsAlertOverrides) - Global default (
MetricsAlertDefaults)
That includes the multipliers, the failure-rate / DLQ thresholds, the hysteresis pass counts, the warmup-suppression flags, and the declared baselines themselves.
A message type with an entry in MessageTypeAlertThresholds (from the Alert Configuration page, the API, or a For<T>() declared baseline) gets its own MetricsExecTime and MetricsFailureRate alerts, whose subject is the message type, evaluated against that type's numbers. The service-wide alerts are unchanged. Throughput and the dead-letter rate stay service-wide. Removing a type's entry resolves its alerts. Per-message-type alerts are not split by tenant.
⚠️ Only some metrics sources can answer for one message type. They are the console's own metrics (the default) and Application Insights. Prometheus, VictoriaMetrics and Datadog cannot narrow a query to one message type, so on those sources the thresholds are not evaluated, and the console logs that once. Before 1.2 these thresholds were saved and applied nowhere.
Editing Thresholds
There are two ways to change any of the settings above.
From the CritterWatch UI
The Alert Configuration page (/alerts/config, sidebar Alert Config) has Metrics, Projections, Listeners and History tabs. Each configuration tab carries the cascade for its area: global defaults, a per-service override form (pick a service; leave a field blank to inherit), and the most specific layer — per-message-type thresholds on Metrics, per-shard overrides on Projections.
Not every setting above has a field there. The baseline-policy knobs (BaselineMinimum*), the warmup suppression flags, the hysteresis pass counts and the DLQ-rate thresholds are set through the alert-configuration HTTP API (/api/critterwatch/alerts/config/...) rather than on the page.
Edits are stored as documents in the CritterWatch event store and take effect on the next evaluator pass (≤30s). Each save made on the page records the fields it changed on the page's History tab; a change made directly through the API is not recorded there. Edits to declared baselines additionally emit ThroughputBaselineChanged / ExecTimeBaselineChanged events with Source = Operator.
Programmatically — configureBaselines
For declared baselines specifically, the cleanest way to seed values for a fresh service is at the monitored side:
opts.AddCritterWatchMonitoring(
critterWatchUri,
systemControlUri,
configureBaselines: baselines => baselines
.ForService(throughputPerHour: 200, avgExecTimeMs: 25)
.For<TripBooked>(throughputPerHour: 50, avgExecTimeMs: 40)
);These flow over whenever the service sends its capabilities, which it does every time it starts. A declared value that differs from the stored one replaces it, and that includes a value an operator set through the baselines endpoint: the operator's edit lasts only until the service next sends a declaration that does not match it. To keep an operator's value, change or remove the declaration in the service. As above, the per-message-type declaration (For<TripBooked>) is used by that type's own execution-time check; its throughput value is stored but not applied.
Preset profiles
Two convenience presets are available from the profile dropdown at the top of the Alert Configuration page. Choosing one fills in the metrics and projection global defaults on the page; nothing changes until you save them:
- Production Profile — strict thresholds, suitable for production environments
- Development Profile — relaxed thresholds, reduces noise during development
See Configuration Reference for the full programmatic API.
Paging
Alerts can page people through PagerDuty and email notification channels, configured under Settings. A PagerDuty incident is opened per alert, updated when the alert is elevated, acknowledged when you acknowledge it, and resolved when the alert resolves or is cleared.
