Observability Dashboard
What this is for
The Observability Dashboard (/spine-framework/admin/observability, also /observability/dashboard) is the account's health console: event volume, error rate, latency percentiles, per-pipeline run stats, top actors, and recent threshold-alert breaches — all computed from the logs table and refreshed on an interval.
Why it exists
You need stored numeric/business metrics (event volume, error rates, latency percentiles) that can be charted and alerted on, separate from the free-text logs table.
Why it exists (5-whys):
logsanswers "what happened"; metrics answer "how much/how fast" — you can't chartmetric_valueout of a message string.metric_name/metric_value/metric_unitmake metrics queryable series — named, numeric, unit-tagged, the shape charts and threshold checks need.- Metrics live in the governed schema because they're account-scoped tenant data — error rates and latencies differ per tenant; external-only metrics lose the account dimension.
context/metadatacarry dimensions — a metric without which-function/which-span is a number with no debugging value.- Root: "is the system healthy" is a data question —
observabilitykeeps measurable signals queryable where the rest of the governed data lives. (confirmed 2026-11-13)
Fields and settings
- Time range — Last Hour / Last 24 Hours / Last 7 Days (
from/tosent to every query; the volume chart buckets by minute/hour/day respectively). - Refresh interval — auto-refetch every 10s / 30s / 1m, plus a manual Refresh Now button.
- Stats cards — Total Events, Error Rate (%), P95 Latency (ms, red above 2000ms), Pipelines with runs.
- Charts — Event Volume line chart (bucketed counts), error rate, latency percentiles (p50/p95/p99), per-pipeline success/failure/avg-duration, Top Actors (limit 5).
- Recent alerts — last 5
threshold.breachedlog events in the window (metric, threshold, actual value, time).
Downstream effects
- Everything derives from
public.logsrows written byemitLog/emitAudit/emitSpan— if log levels drop a category (system_settings.logging.levels), it disappears from these charts too. - Queries are account-scoped for normal users;
system_adminprincipals get cross-account reads (adminDb). - The metrics here are exactly what threshold alerts compare against (
error_rate,latency_percentiles,pipeline_statsactions). - This page is read-only — it writes nothing.
Minimal configuration
Open the page — defaults (24h range, 30s refresh) are sane for monitoring. There is nothing to configure.
Full configuration
The backing API exposes more than the charts use:
GET /api/observability?action=event_volume&from=&to=&bucket=minute|hour|dayaction=error_rate·action=latency_percentiles·action=pipeline_stats·action=top_actors&limit=·action=ai_support_metrics·action=cleanup(POST)
Example
After deploying a new pipeline, set the range to Last Hour and refresh to 10s: Event Volume climbs with each run, the pipeline stats panel shows success vs failure counts and average duration, and a spike in the error-rate card correlates to the error-level rows you can drill into under Logs.
Core files
.framework/src/pages/admin/ObservabilityDashboard.tsx— this page (recharts).framework/functions/observability.ts— metrics API (allaction=queries above).framework/functions/logs.ts— thethreshold.breachedalert feed (action=account&event=).framework/functions/_shared/logging.ts— the emit path and level gating that decides what reacheslogs- Table:
public.logs(source of all charts)
Agent notes
- Flat charts with healthy traffic = log-level filtering, not broken metrics — the dashboard can only chart what
system_settings.logging.levelsallowed to be written. system_adminsees cross-account aggregates here; account members see only their own account.- The 10s refresh is client-side polling — each tick re-runs all five metric queries; don't leave it open on a metered connection.
- Breach alerts shown here are read from
logsrows withevent = 'threshold.breached'— but nothing currently emits that event (the threshold evaluator was a dead path, removed; seealerts.md), so the feed is empty until threshold alerting is implemented.