Skip to content

Store Inspector ​

The Store Inspector (/raw) gives you direct read access to CritterWatch's live frontend state — a fixed set of panels over the SPA's main Pinia stores, plus a rolling log of every SignalR message the page has received. It is a debugging surface, not a production dashboard.

Three similarly-named surfaces — don't conflate them

  • Store Inspector (/raw) — the console's own frontend state (Pinia stores + the live SignalR message log). You are here. It reflects what the SPA has received, not any database.
  • Event Store Explorer (/explorer) — a monitored service's event store (domain streams, events, projections).
  • Timeline / Audit Log — CritterWatch's own system events and operator actions.

Reach for it when something looks wrong on a regular page and you want to verify the underlying state, or when a SignalR message isn't producing the expected UI update and you need to see whether the message arrived at all.

When to use it ​

  • A service shows stale metrics and you want to confirm whether the metrics store has the new bucket
  • An alert isn't appearing in the dashboard and you want to check the alert store
  • A SignalR message you expected isn't producing a UI update — the message log shows whether it arrived
  • A specific filter selection looks wrong and you want to see what filtersStore.selectedServiceId actually holds

Page layout ​

The page is one accordion: the SignalR message log first, then one panel for each store in the table below.

Recent SignalR Messages ​

A bounded log of recent messages, both received from the BFF and sent back. It holds the newest 500, and at most 50 of any one message type, so one loud broadcast cannot evict everything else. The header badge reads filtered / total while a type filter is applied, so narrowing never reads as message loss. Each row:

ColumnMeaning
TimeWall-clock time the message hit the page
DirectionReceived (green) or Sent (orange)
TypeThe CloudEvents type discriminator (alert_raised, node_added, etc.)
Payload"View" button — opens a dialog with the formatted JSON, and Copy full payload

Controls, shown while the log is expanded:

  • Filter by type… narrows the rows to matching types. Capture only matching applies the filter at capture time too, so a rare message is not evicted by unrelated traffic while you wait for it.
  • Pause stops logging (messages are dropped, not buffered) so the list can be read without it moving; Resume starts again.
  • Clear empties the log.

Full payloads are kept only for the newest 25 entries, within 16 MB; older entries keep their type, their size and the first 2 KB as a preview, and the dialog says when it is showing a preview. Large broadcasts are several megabytes each on a big fleet, so keeping every payload would hold hundreds of megabytes in the tab. The log is in-memory only; reloading the page resets it.

Stores ​

Below the message log, a panel for each of the ten stores below; other stores the SPA holds are not shown. Each panel's title carries a count of what the store holds (0 is shown, not omitted, so an empty store is distinguishable from one that did not render); Filters and Connection have no count. Expanding a panel shows the formatted JSON of the store's exposed state:

StoreWhat it holds
ServicesAll ServiceSummary documents pushed via AllServiceSummaries and incremental events
MetricsPer-service per-message-type metric buckets
Dead LettersDLQ summaries and total count
AlertsActive alert list
EventsStream events, stream state, and recent query results
Scheduled MessagesScheduled message summaries and detail rows
FiltersSelected service id and other global filters
DurabilityFiltered durability views
ProjectionsFiltered projection list
ConnectionSignalR connection status

The JSON is a snapshot taken when you expand the panel, not a live view: the stores change on every push, and a live view would re-render (and lose its scroll position) constantly. Refresh on an open panel takes a new snapshot. Closing a panel drops its snapshot.

The top-right search box filters the stores list to those whose JSON contains the search text. Useful for "which store has my service id?" or "which store still references this stale tenant?"

The search is a substring match against the formatted JSON; case-insensitive. It does not filter individual rows within a store — the smallest unit of filtering is a whole store panel.

Important notes ​

  • This is the frontend state, not the database. The stores reflect what the SPA has received. To inspect CritterWatch's persisted Marten documents, run a SQL query against the database directly or use the Marten dev tools.
  • The state is read-only here. This page does not let you edit Pinia state. To change behaviour, use the dedicated control surface (the action buttons on a service detail page, the Alert Configuration page, the Settings page, etc.).
  • The message log is per-page-load. Closing the page or reloading clears it.
  • A panel can be out of date. The Metrics store updates on every metric bucket and the Events store on every event-store query, so an open panel falls behind quickly while the system is busy. Press Refresh before reading it.

Tip ​

For deeper debugging, the Store Inspector pairs well with the browser devtools' Vue panel — the Pinia state is also exposed there with a richer time-travel UI. The Store Inspector is the right call when you want a quick read without leaving the SPA.