Operational History
This page is about the history CritterWatch keeps — the timeline you scroll through after an incident, the audit log of every operator click, the alert lifecycle from raised to cleared. The mechanism behind it is event sourcing in the console's own store — Marten, Polecat or Fisher, depending on which console package you run — but as an operator the parts you actually care about are: what's persisted, how long, and how to query it.
What's kept
| Surface | What it records | Retention |
|---|---|---|
| Activity Timeline | Every notable event from every monitored service — node added, leader elected, agent reassigned, projection rebuilt, DLQ replay, alert raised, compaction run. Reverse-chronological feed. | CritterWatch:Timeline; default 30 days, and at most 250,000 rows per service. |
| Audit Log | Every operator action that mutated a service, and every read of business data (documents, SQL). Includes who, when, what, the parameters, the channel it arrived on (Console, MCP or System) and, where the service reports one, the outcome. | Kept indefinitely — there is no audit-log pruner or retention setting. |
| Alert lifecycle | Each alert's full transition history — raised, elevated, reduced, resolved, cleared, with timestamps and the metric value at each transition. | Kept with the alert's event stream. |
| Dead-letter operations | Each replay, discard and edit-and-replay as a job: the databases it ran against, which answered, how many dead letters it affected, and where it failed. Shown on the Dead Letters page's Operations tab. | The most recent operations are listed. |
| Metric samples | Per-service per-message-type throughput / exec-time / failure-rate samples. Drives the trend charts on the Metrics tab. | CritterWatch:Metrics; samples kept 45 days by default. |
| Live service state | Current snapshot of every service — nodes, agents, endpoints, tenants, configuration. | Always current; reconstructable from telemetry on first contact after a wipe. |
Retention is set in the console host's configuration and needs a restart to change. The Settings → Data Retention card shows the effective values, read-only, with the section each one binds from.
What you can do with it
Reconstruct an incident
The Timeline + Audit Log together let you answer "what happened, in what order, and who was involved" for any past incident inside the retention window. Filter by service, severity, and time range. There is no CSV export: GET /api/critterwatch/audit-log returns the rows as JSON for a write-up.
A couple of patterns:
- "When did this start?" — open the Timeline, set the severity to Warning + Critical, look for the first transition near the reported start time.
- "Who changed the threshold?" — Alert Configuration → History tab; that's a separate, narrower history of just configuration edits.
- "What did the alert look like before someone cleared it?" — open the alert detail in the Alerts page. The state timeline shows every transition with the metric values that triggered them; the operator's note (if any) is on the Cleared transition.
Query historical state
Because every change is a fact in time, the console's own history is browsable after the fact: the Activity Timeline shows what happened to each service — nodes, agents, projections, listeners, alerts, tenants — and when, and the Audit Log shows what operators did about it. This is mostly useful during post-mortems — "what was happening to trip-service in the two hours before the outage?" (The Event Store Explorer is a different tool: it reads a monitored service's event store, not the console's history.)
Trust the audit log
Every state-changing operator action (commands list) records an entry with the operator's identity (when authentication is configured), the channel it arrived on, the parameters that were sent, and a timestamp. The entry is recorded before the command leaves the console, so even if the target service rejects the command or the transport is down, you still see it in the audit log. A command the console itself refused — no license for operations, or a missing capability — is not recorded, because it was never sent.
Dead-letter replays, discards, edits, archives and restores are recorded as ReplayDlq, DiscardDlq, EditAndReplayDlq, ArchiveDlq or RestoreDlq, one row per service, with the messages they targeted and the operator's reason when one was given. Cancelling a running operation is recorded as CancelDlq. An edit records the body's length, never the body. See Audit Log › Dead-letter actions.
Sensitive actions (hard-delete tenant) record extra parameters at the moment of confirmation — the typed tenant id, the database URI, the wall-clock confirmation time. See Audit Log → HardDeleteTenant Entries.
What CritterWatch does not keep
- Message bodies are not persisted by default. Bodies are fetched on demand when an operator opens a specific dead-letter or scheduled message. The DLQ data lives in your service's database, not CritterWatch's.
- Connection strings for tenant databases are not persisted. The console knows the database URI (host + database name) for identification only; the connection string travels through the transport at the moment a tenant is added and is never written to CritterWatch's own database.
- Application data (your domain events, aggregates, read models) lives in your services' databases. CritterWatch reports on the operational events that affect message processing — your business data is untouched.
When the database fills up
The two surfaces that grow with operator activity are the Timeline and the Audit Log. If your CritterWatch database is ballooning, the most likely cause is a high event-rate service generating many timeline entries. Two levers:
- Drop timeline retention. Set
CritterWatch:Timeline:RetentionPeriod(or the per-service row cap,MaxEntriesPerService) in the console's configuration. 30 days is conservative — many teams run with 7 or 14. - Reduce metric-sample retention. Set
CritterWatch:Metrics:SampleRetentionPeriod. Metrics charts are nice-to-have for trend analysis; if you don't reach for them, shorten it. Under heavy load, an external metrics stack removes most of this traffic altogether.
The audit log is intentionally cheap to retain — operator actions are infrequent — and is never pruned.
Recovery
Because service state is reconstructable from live telemetry, you can drop and recreate the CritterWatch database without losing the current picture. What you'd lose is history — timeline, audit log, alert lifecycle, metrics buckets. There's no built-in backup/restore today; back up the console's database the way you back up any other app database (for the SQLite flavour, the file).
