Services
The Services view lists every Wolverine service that has registered with CritterWatch. From here you drill into a single service's detail page, which is the operational hub for one logical Wolverine application — its nodes, its agents, its message handlers, its endpoints, its tenants, its DDL, and the rest.

Services List
The list page renders both as a card grid (default) and as a sortable table. Use the cards/table toggle in the toolbar to switch.
The toolbar leads with count pills (28 services · 26 healthy · 2 critical — the health pills double as status filters) followed by the name-search box, and a second Capabilities row of filter chips (transport/broker icons plus Http, gRPC, Messages, Event stores, Multi-tenant, DLQ, …) that narrow the list to services exposing that capability.
Each card shows the service name with a pin-to-top star and a health badge, a compact table (Version, Wolverine, Nodes, Agents, HTTP, DLQ/hr), and the service's capability chips with counts (RabbitMQ 46, Messages 19, Event stores 1, …). The HTTP row is a badge with the route count (HTTP 12) that opens the HTTP explorer scoped to the service, or — when it exposes no routes. The table view's sortable columns are Label, Version, Wolverine, Nodes, Agents, Endpoints, DLQ/hr, HTTP (the same badge), and Messages. A metrics switch (off by default) adds Msgs/hr, Sent/hr, Rcvd/hr, Avg Exec, Avg Eff (average effective time) and Exc/hr (exceptions per hour) as table columns and as card rows, and a column picker chooses which show.
Beside a service's name, the list can also show:
- an alert badge counting its active alerts, which opens its Health tab;
- a red snapshot age badge when the console has not applied telemetry from the service for five minutes; a service whose every node has gone silent reads Offline and raises
ServiceOffline(Alerts); - Not monitored — license limit when the service is parked beyond the license's service cap (see Keeping a service monitored);
- External metrics — no provider when the service reports metrics to an external provider and none is bound on Settings › Metrics Data Sources.
The health pill reflects alerts the console raised, such as ServiceOffline, as well as those the services report.
Clicking a service opens its detail page. The detail page binds the active tab to the URL via ?tab=<name> so deep links and back-button navigation always land on the right pane.
Service Detail
The detail page is organised into five always-on tabs plus one conditional tab:
Overview · Durability · Cluster · Health · Metrics · [Tenants]- Tenants appears for any multi-tenancy mode.
Where did the old tabs go? The per-service surface has steadily collapsed into the fleet-wide explorers, each reachable from the Overview capability cards (below):
- Messaging and Documents tabs → the Messaging Explorer and Document Store Explorer.
- The Event Store (né Storage) tab → the Event Store Explorer (streams, projections, and store configuration) and the EF Core Explorer (the DbContexts cards); its message-store table lives on Durability and brokers on the Overview Brokers card. The Event Model moved on again and is now its own Event Model screen.
- The Sagas tab → the Saga Explorer.
- The HTTP tab → the HTTP / gRPC explorers.
- Health (the alerts) and Metrics (the per-message-type table) were one tab for a while and are two again, side by side.
URL backward compatibility
The reorganisations keep old URLs working so saved bookmarks don't 404:
Old ?tab= | Lands on |
|---|---|
?tab=messages / ?tab=messaging | Overview (the Messaging tab is retired) |
?tab=documents | Overview (the Documents tab is retired) |
?tab=storage | Overview (the Event Store tab is retired) |
?tab=sagas | Overview (the Sagas tab is retired) |
?tab=http | Overview (the HTTP tab is retired) |
?tab=nodes | Cluster tab, Nodes view |
?tab=agents | Cluster tab, Agents view |
Any other unknown ?tab= value also falls back to Overview rather than rendering a blank pane.
A plain navigation to a service always lands on Overview, whatever alerts are active. The alert badge on the Services page is the explicit link to ?tab=health.
Overview Tab
The Overview pane is the at-a-glance identity card for the service. It is the only tab that always opens, and it is the home for editable service-level configuration.
Mini metrics dashboard
Five compact cards across the top:
| Card | Source |
|---|---|
| Msgs/hr | Total messages handled per hour (sent + received) |
| Avg Exec Time | Average handler execution time, milliseconds (excludes middleware) |
| Avg Effective Time | Average end-to-end processing time including middleware, serialization, and transport |
| DLQ/hr | Messages moved to the dead-letter queue per hour |
| Exceptions/hr | Handler exceptions per hour (includes retried + dead-lettered) |
Identity
A two-column descriptions table with:
Service ID — Wolverine
ServiceNameLabel — editable inline via the pencil-affordance
EditableLabelCell. Click the label, type a new value, press Return or click away to commit. The change emitsUpdateLabelNameand is reflected immediately across every page that shows this service.Version — the deployed application's assembly version (the Wolverine version is on the Services list)
Communication URI — the control endpoint the service listens on for CritterWatch commands: the
systemControlUripassed toAddCritterWatchMonitoring, e.g.rabbitmq://queue/ordersTenancy — the service's tenancy cardinality, e.g.
Single,StaticMultiple, orDynamicMultiple. The Tenants tab is shown for any multi-tenant mode; the per-row actions (Add / Disable / Enable / Remove / Hard delete) are only enabled when at least one event-store isDynamicMultiple.Tenant ID Style — surfaces Marten's
StoreOptions.TenantIdStylewhen the service has any tenancy. One of:CaseSensitive— tenant IDs stored exactly as supplied; case must match at session-open time.ForceLowerCase— tenant IDs silently lowercased on every reference.ForceUpperCase— tenant IDs silently uppercased on every reference.
When multiple document stores disagree the tag shows the first value with a
(mixed)suffix and a warning tooltip. Hidden when the service has no tenancy.
Health checks
A card on the Overview tab confirms whether this service is wired up to ASP.NET Core health checks. Two states:
- Registered (green) — the service is exposing its Wolverine state to anything that asks via the standard
/healthzendpoint, with the registered check names and tags listed as chips. This is what Kubernetes liveness and readiness probes consume. - Not registered (amber) — the service has no Wolverine-aware health check registered. Without one, k8s and load balancers can't tell whether the runtime is up or jammed.
The card is hidden entirely when the monitored service is running an older Wolverine.CritterWatch build that doesn't ship the registration descriptor.
For the why and how, see Health Checks. The "Operator docs" link in the card goes there directly.
Trace provider binding
A card on the Overview tab lets the operator pick which configured OTel store CritterWatch queries when looking up traces for this service's saga instances and handler runs. The dropdown lists every provider configured globally (Settings → Trace providers); leaving it empty falls back to the default. The "Manage providers" link opens Settings.
Capabilities at a glance
Below the identity table, a Capabilities panel renders one card per capability this service exposes — the launch pad from the service into the fleet-wide explorers, scoped to this service:
- HTTP / gRPC → the HTTP / gRPC explorer (
?service=) — where the retired HTTP tab now lives - Event store → the Event Store Explorer — where the retired Event Store tab now lives
- Documents → the Document Store Explorer (
/documents?service=) — this is where the retired per-service Documents tab now lives - Messaging → the Messaging Explorer (
/messaging?service=) — the retired Messaging tab's replacement - Brokers → the Messaging Explorer's Brokers view (
/messaging?service=&tab=brokers) — where the old Storage-tab Brokers section moved - EF Core → the EF Core Explorer — the DbContext cards that used to sit on the Event Store tab
- Sagas → the Saga Explorer — the retired Sagas tab's replacement
- Schedules → the Schedule Explorer (
?service=) — shown when the service registers recurring cron schedules
On-page capabilities (Durability, Cluster, Tenants, and a single Health & Metrics card) switch the active tab instead of navigating away; Health & Metrics lands on Health, and its stat line reads across both tabs (active alerts, exceptions/hr, DLQ/hr).
Workflow neighborhood
Below the capability cards, a Workflow neighborhood — service boundary panel lists the message-flow edges crossing this service's boundary — each message type tagged with its relationship (routes-to, handled-by, appends, cascades), with runtime-observed edges marked ◆. The Open in Workflow button jumps to the Workflow screen for the full interactive graph.
Keeping a service monitored under the license limit
On a license with a service limit, the page header also carries Keep monitored (or Release license slot once it is kept). When more services are registered than the license permits, kept services take the licensed slots first and the rest are filled in the order services registered. A service beyond the limit is parked: its data stays, it is marked Not monitored — license limit on the Services page and here, new telemetry from it is not applied, and actions on it are refused. See Licensing → Service cap.
Evicting a service
The page header carries a danger-styled Evict button. Use it to remove a service that has been decommissioned (or is stuck registered) from CritterWatch — it clears the service's summary, alerts, metrics, and timeline and drops you back to the Dashboard. Eviction is "clear until it speaks again": if the service is in fact still alive, it re-registers on its next heartbeat, so this is safe to use on a service you think is gone. The button confirms via dialog and is disabled (with a tooltip) without an operations license.
Event Store Tab (retired)
The per-service Event Store tab is retired; ?tab=storage deep links land on Overview. Its content moved to the fleet-wide explorers:
- The Event Model swim-lane → the Event Model screen. The Event Store Explorer's Configuration tab carried it for a while and no longer does; its How do these fit into the system? → link now opens that screen.
- The Event Stores cards (registered projections) → the Event Store Explorer. Document DDL now renders only in the Document Store Explorer's Configuration tab (see DDL viewer).
- The DbContexts cards → the EF Core Explorer (sidebar → Explore), scoped to a service via its Overview EF Core capability card.
- The Message Stores persistence-count table and the Wolverine Configuration snapshot → the Durability tab (below). Brokers → the Overview Brokers capability card → Messaging Explorer.
DbContexts (now in the EF Core Explorer)
One card per EF Core DbContext registered in the service. Picked up automatically: contexts wired through AddDbContextWithWolverineIntegration get the full Wolverine-integrated picture, and any plain AddDbContext<>() registration is detected by the implicit-discovery hook in UseEntityFrameworkCoreTransactions, so untracked contexts still show up — just with the integration badges off.
Each card's title row carries a strip of badges. Read them in order:
- Wolverine — green when the model has been mapped through
MapWolverineEnvelopeStorage. This is the single most important badge to triage missing-publish issues. When green, your domain events publish atomically withSaveChangesAsyncbecause the envelope tables share the context's connection. When grey ("Plain"), Wolverine isn't driving this context's transaction at all — any messaging happens on a separate connection, which is correct but won't give you transactional outbox guarantees. - Tenancy —
Singlefor a single-database context (info color),ConnectionStringorDbDataSourcefor multi-tenant (warning color). Multi-tenant cards expand to show the per-tenant database list (server + database + tenantId only — never the raw connection string). - Tx —
Eager(green) when transactional middleware opens an explicit database transaction up front;Lightweight(amber) when atomicity is delegated toSaveChangesAsync. Absent when Wolverine isn't wrapping this handler in transactional middleware. - Domain events —
OutgoingDomainEvents(the per-handlerOutgoingDomainEventscollection is the source) orPerEntityType(one or more entity-level domain-event scrapers are registered). When PerEntityType, expand the card to see exactly which entity publishes which event type. - Outbox —
Mapped(green-path) means the envelope tables share this context's connection.ExternalConnectionmeans Wolverine's outbox factory is registered but the envelope tables live on a different connection — correct, but slower under load. Absent for plain contexts. - Wolverine-managed — present when the application is using
UseEntityFrameworkCoreWolverineManagedMigrations. Wolverine's resource-startup pipeline will create or migrate this context's database on its own. Without the badge, schema management is your responsibility (dotnet ef database updateor equivalent).
Below the badges, the Pending migrations field starts at "—" until you click Check pending migrations. The action is on-demand — clicking it runs IMigrator.GetPendingMigrationsAsync on the target service, opening a connection to the database and reading the __EFMigrationsHistory table. That's a synchronous round-trip per click, which is why we don't bake it into the regular capabilities snapshot. Inline error text appears under the field if the probe couldn't reach the database (transient connection failure, missing permissions, or a provider that doesn't support migrations).
Cards expand to a per-entity table — table name, primary-key columns, index count, foreign-key count, plus chips for sagas, owned types, and view-mapped entities. Saga rows cross-link to the Sagas tab so you can jump straight from "what does this context manage" to "what does this saga handle". Drill into an entity row for its full index and foreign-key detail.
Brokers
Moved. Brokers are no longer on the service detail page. Reach them from the Overview Brokers capability card, which deep-links to the Messaging Explorer → Brokers view (
/messaging?service=&tab=brokers). The broker-health columns described below render there.
The Brokers view lists one row per broker (RabbitMQ, Kafka, Azure Service Bus, etc.) with its Protocol and the number of Services using it; expand a row to see the consuming services.
Broker health columns
Next to those, each row carries health columns that surface the connection's actual condition rather than the configuration alone. They are hidden until some transport has reported a probe.
- Status — a text tag: Healthy (green), Degraded (amber — the connection recently dropped and recovered), Unhealthy (red — currently down), or Unknown. Hover the tag for the probe's last description, typically the close reason for an unhealthy connection.
- Last probe — when the most recent good probe ran. If the row says Healthy but this time stops moving, something started failing in the background.
- Cert expiry — the TLS certificate's expiry date when TLS is configured. It turns amber within 14 days of expiry; rotate the cert before the broker starts refusing new connections.
- Reconnects — how many times this transport has lost and re-established the broker connection since the host started. A single bump is harmless transient weather; sustained climbing means something is actually broken — typically a misbehaving network path, an undersized broker, or expired credentials retrying.
Probing is transport-specific and today only RabbitMQ reports probes. Other brokers read not probed in Status and Last probe, and a note under the table counts them: the console has no reading, which is not a claim that the broker is unreachable. Their traffic still shows on the Topology and Endpoints tabs. A probed broker reading Unknown has not connected yet, which is normal during a cold start; if it stays Unknown, check the host's startup logs.
Click a service in an expanded row to open that service's broker detail page: Broker Info, a Broker Health card with the probe description, reporting node and last-probed time (useful when several nodes probe the same broker), the broker's Configuration, and the Endpoints it carries.
Durability Tab
Live operator surface for the inbox/outbox tables backing this service. The tab was renamed from Reliability → Durability and is now the home of the Message Stores table and the Wolverine Configuration snapshot that used to sit on the old Storage tab.
The Message Stores table carries a row per store with live persistence counts. A Filter by database or URI… box above it narrows the rows, with a count beside it (3 of 640 stores). When a service has more than 15 tenant stores the table pages them 15 at a time, with Main and other non-tenant stores pinned above every page.
| Column | Meaning |
|---|---|
| Icon | Postgres / SqlServer / RabbitMQ / etc. |
| URI | Database / store URI — click to drill in (see below) |
| Role | Main (durability tables) or Ancillary (DLQ-only or per-tenant overflow) |
| Incoming | Persisted incoming envelopes (inbox) |
| Outgoing | Persisted outgoing envelopes (outbox) |
| Scheduled | Persisted scheduled-send envelopes awaiting their delivery time |
| Handled | Successfully handled envelopes retained for idempotency (KeepAfterMessageHandling) |
| Dead Letter | DLQ count for this store. Click a non-zero count to drill into Dead Letters, pre-filtered to this store + service. |
The URI cell drills into a dedicated per-message-store detail page at /service/:id/message-store/:storeUri — the store's identity, persistence counts, and configuration.
The Wolverine Configuration snapshot below the table is reference data captured on each VersionDetected (once per deploy): Service Settings, Durability — Operational, Durability — Polling & Cadence, and Durability — Retention. Each field carries a tooltip pulled from the upstream Wolverine XML docs.
Use this tab when:
- A persistence count looks wrong and you need a per-store drill-in
- You want to see how Wolverine's durability is configured on this service
- You need the per-store DLQ count without leaving the service page
Clicking a durability (wolverinedb) agent on the Cluster tab's Nodes view switches to this tab and highlights that store's row in light blue for about four seconds, so you can see what you jumped to.
Cluster Tab
The Cluster tab collapses the node-instance and agent-assignment lenses into a single tab with a segmented view-mode toggle. Both views are full operational surfaces — switching used to lose scroll, filter, and selection state, so they now sit side-by-side under one parent.
Cluster view toggle
A radio group at the top of the tab switches between:
- Nodes — process-instance lens
- Agents — agent-assignment lens
The active view is URL-bound via ?view=nodes|agents so deep links and operator bookmarks survive remounts.
Nodes view
Cluster-wide actions
| Action | Effect |
|---|---|
| Trigger Election | Force a new leader election. Disabled while OperationsEnabled is false. Confirmation popconfirm. |
| Clear Node History (overflow menu) | Trim the node-history table; retains the 10 most recent records |
The destructive Trigger Election is the primary action; Clear Node History is demoted to an overflow kebab so an operator can't fat-finger it next to the election button.
Node view-mode toggle
A second toggle inside the Nodes view switches between:
- Cards — one el-card per node with a Leader pill, alert badge, last health check, version, agents-assigned count, and Eject button
- List — dense table with the same surface area for big clusters
Heuristic auto-flips to List at 6+ nodes; an explicit operator override is URL-bound via ?nodeView=cards|list for share-and-restore.
Per-node columns / fields
| Field | Meaning |
|---|---|
| Heartbeat dot | Liveness pill — green / amber / red / grey. See Heartbeat dot below |
| Node # | Wolverine node number; clickable — drills into the per-node detail page |
| Role | Leader pill if this node holds the leadership lease |
| Alerts | Per-node active-alert badge — click to focus the alerts list filtered to that node |
| Version | Wolverine version on this node |
| Uptime | Time since started; tooltip shows the wall-clock start time |
| Last health check | Relative-time short-form; tooltip shows the absolute timestamp |
| Agents | Count of agents currently assigned to this node |
| Actions → Eject | EjectNode(nodeNumber) — danger popconfirm, redistributes assigned agents |
Heartbeat dot
Each running service sends a quick liveness ping to CritterWatch every 30 seconds. The dot beside every node number reads the newest thing the console has heard from that node on any channel — a heartbeat or one of the node's own telemetry pushes — and shows one of five states:
| Colour | State | Meaning | What to do |
|---|---|---|---|
| Green | Live | Heard from within the last 60 s. | Nothing — the node is healthy. |
| Amber | Stale | 60–150 s since anything was heard; at least one heartbeat missed. | Watch for a few more seconds — a single missed beat usually means a slow GC or a brief network blip. |
| Red | Silent | The node was being heard, and nothing has arrived on any channel for over 150 s. The node reads Unreachable. | Open the per-node detail page. The node has likely hung, lost its broker connection, or been killed without graceful shutdown. Check that the service process is up, the broker is reachable, and the network between them isn't partitioned. |
| Amber | Not reporting | Nothing has ever reached the console from this node — no heartbeat and no telemetry push — although it has been registered longer than the silent threshold. Its liveness is unknown, not bad. | If its sibling nodes are being heard, this is likely a stale registry row from an earlier fleet: Eject removes it. Otherwise the transport may not be delivering, or the service runs a Wolverine.CritterWatch build that predates per-node heartbeats. |
| Grey | Unknown | The node started so recently that no heartbeat is due yet, or heartbeats are not enabled on the service. | Usually fine. |
Hovering the dot shows a one-sentence description of the state plus the Last heartbeat time, and the Last observed (via telemetry push) time when that is more recent.
The thresholds are sized against the default 30 s cadence (two missed beats turns the dot amber; five turns a previously heard node red). Services that ship a slower or faster cadence — supplied via the heartbeatInterval parameter on AddCritterWatchMonitoring — still use the same wall-clock thresholds today; we'll revisit per-service scaling when a real deployment asks for it.
Runtime pressure: CPU and heap
The node detail page shows two readings the node samples about itself and reports every 30 seconds:
| Reading | What it is |
|---|---|
| Process CPU | CPU time the service process used over the last sampling window, as a percentage of all cores (a fully busy 4-core host reads 100%, one busy core reads 25%). A node's first report has no CPU yet, because a percentage needs a window to measure. |
| Managed heap | The .NET managed heap size, and when the runtime knows its memory limit (a container limit, otherwise physical memory) the heap as a percentage of it. |
These are the latest values only, a reading and not a history. The console keeps the last sample per node, so a page reload shows it at once. For a time series, bind a metrics data source. A node whose CPU or heap stays at or above 90% for five minutes raises the NodeRuntimePressure alert; BackPressure and NodeOverloaded remain the other capacity alerts.
Three numbers per node per sample is the whole cost on the wire. Change the cadence with RuntimeMetricsInterval (see configuration); TimeSpan.Zero stops the reports.
Agents view
Agent-assignment lens — every registered agent (projection shards, subscriptions, leadership, durability, scheduled-message agents, etc.) with its current node and status:
| Column | Meaning |
|---|---|
| Agent | The agent URI (e.g. wolverine://leader/, marten://projection/TripSummary:All), with its status and any Paused, Pinned or unplaced pill |
| Node | Which node currently owns this agent |
| Context | What the agent is doing: a pause and its reason, health, or why it could not be placed |
| Actions | Per-row actions, below |
Per-row actions:
| Action | Effect |
|---|---|
| Pause / Restart | Pause or restart the agent, after a confirmation. Pause Selected / Restart Selected act on the ticked rows |
| Pin… | PinAgentToNode — pick a node to keep this agent on across rebalances |
| Unpin | UnpinAgent — drop the assignment override |
Paused and Pinned agents carry a pill beside their status, and the Paused / Pinned filter chips count them. A paused agent keeps the node it was assigned to but does no work there, so its status reads Assigned, not Active. Lifting the restriction — resuming, unpinning, or resuming the schedule a wolverine-recurring-timer:// agent runs — returns it to Active with the next assignment report.
If a deep link supplies ?scheme=<scheme> (e.g. from the Topology page), the agent table is pre-filtered to that scheme regardless of which view the URL landed on.
Health and Metrics Tabs
- Health (
?tab=health) — the service's active alerts as cards, with their remediation actions, plus a focus chip when you arrive from a node's or an endpoint's alert badge. The tab label carries a badge counting the alert groups it lists, red when any is critical; a per-tenant alert counts once per projection and condition. See Where alerts appear. - Metrics (
?tab=metrics) — the per-message-type metrics table (throughput, average execution + effective time, DLQ/hr, exceptions/hr), sortable for finding the hot path. Purge old metrics permanently deletes this service's persisted metrics samples older than 7, 30 or 90 days, after a confirmation; it needs the operations license. For a service whose metrics come from a bound external source, a Read live from external source switch stops CritterWatch persisting that service's metrics: history and baselines then come straight from the external store, and the live tiles refresh on each scrape.
Retired tabs. The per-service Messaging tab (the handler / message-type catalog) and the Endpoints tab (the listener + sender lifecycle grid) were removed from this page. Both now live in the fleet-wide Messaging Explorer, reachable from the Overview Messaging capability card:
- the message catalog → the Messaging Explorer's Messages tab (see Message Routing); clicking a message type opens its message-type detail page;
- the listener/sender grid with its Pause / Drain / Restart and Edit controls → Endpoints.
Tenants Tab (conditional)
Visible whenever the service has any tenancy mode beyond Single / None. The tab renders one of two layouts depending on cardinality:
Dynamic case (DynamicMultiple)
Editable list — operators add / disable / enable / remove / hard-delete tenants at runtime via the relay commands. Top toolbar:
- Refresh — re-issues
RequestTenantListto the service - Add Tenant — opens the tenant-creation drawer (
AddTenantcommand)
Per-tenant columns:
| Column | Meaning |
|---|---|
| Tenant ID | Tenant identifier as the application sees it |
| Database URI | Per-tenant database connection string |
| Executions (1h) | How many handler executions this tenant generated in the last hour. Quick read on traffic volume per tenant. |
| Failures (1h) | How many handler failures (transient exceptions) this tenant hit in the last hour. Renders red when non-zero. |
| DLQ depth | How deep this tenant's dead-letter queue is right now. Renders red when non-zero. |
| Status | Active / Disabled |
| Actions | Disable / Enable (mutually exclusive) · Remove · Hard delete |
The three traffic columns only appear once at least one tenant is publishing per-tenant metrics. If you don't see them, your monitored service is either single-tenant or its Prometheus scrape isn't emitting tenant_id labels yet (turn that on in the service's Wolverine + OpenTelemetry config). The columns disappear again the moment no tenant has data — they don't sit there showing dashes.
When to drill in
Click any tenant row to expand it. The expand panel shows two cards:
- Top message types — the top five message types this tenant is processing, ranked by execution count, with per-type failure and DLQ counts. Use this to answer "which handler is the noisy tenant hammering?" before paging the team that owns it.
- Durable counters — the full breakdown of this tenant's durable-store depth: incoming, scheduled, outgoing, handled, and dead-letter counts. Reach for this when the service-level Durability tab numbers look high and you want to know which tenant is parked in the inbox.
What "normal" looks like:
- Failures (1h) > 0 — single failures from a transient outage are normal; sustained non-zero across refreshes means the tenant is hitting a real bug or running with bad config.
- DLQ depth > 0 — anything above zero means messages are stuck. A tenant whose DLQ depth is climbing while the rest are flat is a classic noisy-neighbour signal.
- Executions (1h) far above the rest — usually fine on its own, but combine it with rising failures and you have a tenant that's about to start affecting the rest of the system.
Lifecycle
The full lifecycle a tenant goes through, from creation through permanent destruction:
- Register — the monitored service starts up with
MultiTenantedDatabasesWithMasterDatabaseTable(Marten) configured. CritterWatch sees theDynamicMultiplecardinality and renders the Tenants tab. - Add — operator clicks Add Tenant, supplies a tenant id + connection string. CritterWatch dispatches
AddTenant; the service writes a master-table row and (best-effort) creates the per-tenant database if it doesn't already exist. - Use — application code opens sessions against the new tenant id and reads/writes per-tenant data.
- Disable / Enable — soft toggles via
DisableTenantandEnableTenant. Disabled tenants stay in the master table but session-open against them throwsUnknownTenantIdExceptionuntil re-enabled. Useful for incident-time isolation without data loss. - Remove (
RemoveTenant) — drops only the master-table row. The per-tenant database is left intact for forensic recovery / backup. Reversible by re-runningAddTenantwith the same id + connection string. - Hard delete (
HardDeleteTenant) — drops the per-tenant database and removes the master row. Permanent; not reversible.
The end-to-end lifecycle is pinned by the multi_tenancy_lifecycle_end_to_end integration test so any UX change is forced to keep the underlying behaviour stable.
Tenant-id normalization (TenantIdStyle)
When the host sets StoreOptions.TenantIdStyle to ForceLowerCase or ForceUpperCase, both AddTenant and session-open run the supplied tenant id through MaybeCorrectTenantId before doing anything with it. Concrete consequence:
| Configured | AddTenant("Acme-Corp", …) writes | martenStore.LightweightSession("Acme-Corp") resolves to |
|---|---|---|
CaseSensitive (default) | Acme-Corp | the Acme-Corp tenant DB (or fails if you only added acme-corp) |
ForceLowerCase | acme-corp | the acme-corp tenant DB |
ForceUpperCase | ACME-CORP | the ACME-CORP tenant DB |
The normalization is silent — the operator's typed id is rewritten without a warning. The UI uses this contract to inline-warn before the command leaves the browser. Under ForceLowerCase / ForceUpperCase, you cannot have two tenants whose ids differ only in case (the second AddTenant collides with the first).
Actions
| Action | Effect |
|---|---|
| Disable | DisableTenant(tenantId) — soft-disables; messages routed to the tenant queue without dropping data |
| Enable | EnableTenant(tenantId) — re-enables a disabled tenant |
| Remove | RemoveTenant(tenantId) — drops the master-table record only; the per-tenant database itself is not deleted |
| Hard delete | HardDeleteTenant(tenantId) — drops the tenant database and removes the master record. Permanent. |
- Hard delete refuses a disabled tenant, on purpose, so a mistaken Disable cannot turn into data loss. The service answers "Nothing was hard-deleted"; enable the tenant first, then hard-delete it.
- Conjoined tenancy (every tenant in one shared database): the Add Tenant dialog has no connection-string field, and Hard delete removes the registry record and drops the tenant's data partition in the shared database. The shared database itself is never dropped.
- Licensing: Add, Disable, Enable and Remove need a license that enables both operations and multi-tenancy; the button tooltip names whichever is missing. Hard delete needs the operations license.
See Wolverine.CritterWatch / Inbound commands for the full command reference.
Static / sharded case (StaticMultiple) — read-only
Tenant lists configured at startup show as a read-only table. The Add Tenant button is absent and per-row actions render as a "Read-only" hint with the tooltip "This service uses static tenancy; tenants are configured at startup, not at runtime." Source: eventStores[*].database.databases[*].tenantIds, flattened and de-duplicated by tenant id; each row carries the DatabaseDescriptor.identifier (or databaseName) so operators see which DB the tenant routes to.
Add Tenant dialog — TenantIdStyle validation
The Tenant ID input runs through the resolved TenantIdStyle policy client-side (mirroring JasperFx.MultiTenancy.TenantIdStyleExtensions.MaybeCorrectTenantId):
- Empty / whitespace-only input is rejected (the Add button stays disabled).
- When the input would be silently rewritten under
ForceLowerCase/ForceUpperCase(e.g.Acme-Corp→acme-corpunderForceLowerCase), an inline warning appears under the input. The Add button stays enabled — the operator can knowingly proceed; the warning surfaces the policy rather than enforcing a different one. - Under
CaseSensitiveno warning is shown; the id is stored exactly as supplied.
Hard-delete typed-id confirmation
Hard delete is gated behind a typed-tenant-id confirmation modal:
The standard "are you sure?" double-confirm is not enough friction for a database-drop. The operator must type the exact tenant id; only then does the dialog's primary action button enable. Audit log records every hard delete with the operator's identity (see Audit Log).
HTTP Tab (retired; now the HTTP explorer)
The per-service HTTP tab is retired; ?tab=http deep links land on Overview. The same surface now lives in the fleet-wide HTTP explorer (sidebar → Explore), reached scoped to one service via the Overview HTTP capability card. A service surfaces the capability when it has any HTTP endpoint — either a Wolverine HTTP graph (Wolverine.HTTP is referenced), or non-Wolverine ASP.NET Core endpoints when the host opts in via services.AddCritterWatchHttp().
The explorer is one merged surface — Wolverine HTTP chains and non-Wolverine endpoints share the same table with a Source chip per row.
All Endpoints
| Column | Meaning |
|---|---|
| Source | Wolverine / MinimalApi / Mvc / RazorPages / SignalR / Other — color-coded chip |
| Method | GET / POST / PUT / DELETE / PATCH / OPTIONS — color-coded tag |
| Route | Route pattern. Multi-version Wolverine chains show one row with a chip per declared version (v1 / v2 / 2024-01-01) |
| Handler | Generated handler endpoint or display name (monospace) |
Click any row to drill into the per-endpoint detail page. Wolverine chains route to the HTTP chain detail page; non-Wolverine endpoints route to the ASP.NET endpoint detail page.
Above the table, a Group by select (None, Method, Endpoint name prefix) groups the rows, an All sources multi-select dropdown narrows them to the sources you pick (leave it empty for every source), and a search box matches the route or handler.
A configuration block follows with the Wolverine HTTP graph's settings — global route prefix, antiforgery defaults, applied policies, middleware types, tenant-detection strategies. Tooltip per field, sourced from XML doc comments.
Coming soon: when a route fires a downstream message, you'll see chips on the row pointing at the Messaging-tab page for that message type. The Wolverine HTTP graph surfaces cascading messages on the chain detail page today; the row-level chip is the next step.
Detail-page drill-ins
Several tabs feed into dedicated detail pages with their own routes. Each is breadcrumb-anchored back to the parent service.
Per-node detail page
Route: /service/:id/node/:nodeNumber
Drilled into from the Cluster tab → Nodes view (clicking the node number cell in either Cards or List view). Surfaces:
- Identity — the node number with its heartbeat dot (and an Unreachable or Never observed tag when it applies), Version, Started, and Uptime
- Persistence Counts (In, Out, Scheduled, DLQ) — only when this node hosts the durability agent
- Agents on this node — a read-only, paged list of each agent's URI and start time; pin and pause agents from the Cluster tab's Agents view
- Recent lifecycle events for the node
- Eject in the header, plus Trigger Election when the node is the leader; both need the operations license
Per-message-store detail page
Route: /service/:id/message-store/:storeUri
Drilled into from the Durability tab → message-store row click. Surfaces:
- Identity — the store's URI, Role, and Scheme
- Persistence Counts — Incoming, Outgoing, Scheduled, Handled, and Dead Letters; the Dead Letters tile opens Dead Letters filtered to this store and service
- Configuration — the store's configuration, with per-field tooltips, when the service reports one
Endpoint detail page
Route: /service/:id/endpoint/:endpointUri
Drilled into from an endpoint link in the Messaging Explorer's Messages catalog, the message-type detail page's Handlers table, or a broker detail page's Endpoints table. Surfaces:
- Endpoint Info — URI (and name), transport, mode, listener flag, title, subject, and tags
- Configuration — the endpoint's full configuration, with per-field tooltips
- Metrics — Msgs/hr, Sent/hr, Rcvd/hr, average execution and effective time, exceptions/hr
- Routed Messages — the message types routed to this endpoint, each linking to its message-type detail page
The page is read-only. Change buffering limits or the circuit breaker from the Endpoints grid's row kebab → Edit.
Message type detail page
Route: /service/:id/message/:messageType
Drilled into by clicking a message type in the Messaging Explorer's Messages catalog. Surfaces:
- Message Type Info — name, full name, namespace, assembly
- Execution Metrics — throughput, average execution and effective time, exceptions/hr
- Handlers and Subscriptions — the endpoints that handle this type and the outgoing subscriptions that send it
- Generated Source Code for its handlers
- Its Event Model slices and Workflow neighborhood, plus a View in Workflow button
- Route Sources and the on-demand Routing Explanation — see Message Routing
Handler chain detail page
Route: /service/:id/handler/:messageType
One handler chain's code, reached from View Handler Details in the Topology drawer, a saga's message table, an Event Model handler card, or a Workflow node. Surfaces:
- The message type's short name and namespace, with a View message type → link to the page above
- A variant picker when the message has more than one handler chain (sticky handlers)
- Handler steps — each step's type and method, in order, with a Transactional badge when the chain is wrapped in transactional middleware and the chain's sticky endpoints
- Source code — the generated handler, syntax-highlighted
- The chain's Event Model slices and Workflow neighborhood
It carries no metrics; those are on the message-type detail page.
Saga detail page
Route: /service/:id/saga/:stateType
Reached from the Saga Explorer. Surfaces a Workflow card (a sequence diagram of the saga's messages), a Messages table (Role, Message, Saga-id member, Cascades — click a message for its handler chain), and a Recent instances → link to the page below.
Saga instances page
Route: /service/:id/saga/:stateType/instances
Recent traces for this saga, read from the trace provider bound to the service: Trace id, Root operation, Start, Duration, and Spans. Click a trace to open its spans. With no provider bound, the page says so and links to Settings → Trace Providers.
Subscription / Projection / Broker detail pages
Subscription detail: /service/:id/subscription/:name Projection detail: /projections/:serviceId/:shardName Broker detail: /service/:id/broker/:brokerIndex
- Projection detail carries the lifecycle controls (Pause, Restart, Rebuild, Rewind, Eject) — see Projections.
- Subscription detail is read-only: Subscription Info, Configuration, Shards, per-tenant progression, Event Types, and Agent URIs. Pause or restart a subscription's agent from the Cluster tab → Agents view.
- Broker detail is read-only: Broker Info, Broker Health, Configuration, and Endpoints. Reach it from the Messaging Explorer's Brokers view (above).
DDL viewer
DDL renders in one place: the Document Store Explorer's Configuration tab, where each document mapping's DDL is fetched on demand and shown through the shared DdlBlock component, syntax-highlighted with highlight.js (the PostgreSQL grammar for Marten stores, generic SQL for Polecat and Fisher). The Event Store Explorer and the message-store detail page show no DDL.
Operations gating
Every action on the detail page that mutates state — Evict service, Pin / Unpin, Eject Node, Add / Remove / Hard-delete Tenant, Trigger Election, projection rewind / rebuild / restart, and edits — is gated by the license: it needs one that enables operations. (Listener Pause / Drain / Restart moved to the Endpoints grid in the Messaging Explorer and is gated there.) Without one, the buttons render disabled with the tooltip "This operation requires a CritterWatch license". There is no separate setting that switches the console to read-only; see Settings › Operations and the license. With RBAC wired, each action also needs its capability (RBAC).
