Skip to content

feat(dashboards): ship Grafana dashboard JSON for agent obs signals (RIG-2826) - #670

Open
rigel-mintaka wants to merge 2 commits into
mainfrom
compass-obs/rig-2826-dashboards
Open

feat(dashboards): ship Grafana dashboard JSON for agent obs signals (RIG-2826)#670
rigel-mintaka wants to merge 2 commits into
mainfrom
compass-obs/rig-2826-dashboards

Conversation

@rigel-mintaka

Copy link
Copy Markdown
Contributor

Task T5 of the frozen observability architecture record (docs/designs/platform/compass-observability-architecture/design.md, #656): ship prebuilt Grafana dashboards in-repo so an operator's Grafana — and Rigel's managed Grafana, "just like a user" — import them. Near-universal peer practice (GitLab/Temporal/Supabase/Coder all ship dashboard JSON).

Two dashboards, bound only to signals the shipped compass-agent emits today:

  • dashboards/compass-agent-transport.json — 10 panels over the transport metrics (publish spine, frame sink, control source), Prometheus datasource. PromQL targets the OTel-Prometheus-mangled names of the verified constants in packages/compass-agent/src/transport/otel-metrics.ts (._, monotonic counters get _total; gauges keep the dotless name).
  • dashboards/compass-agent-loop-traces.json — 2 panels (invoke_agent root spans + execute_tool spans), Tempo datasource, TraceQL filtered to service.name = compass-agent (GenAI-semconv loop spans).

Both declare their datasource as a templating variable (${DS_PROMETHEUS}/${DS_TEMPO}), never a hard-coded uid, so the JSON imports into any Grafana. No provisioning automation — import is the operator's one step (D3/T5). dashboards/README.md documents the rendered signals + import steps; server/runner panels are a noted follow-up (T4b).

Spec-impact: none. Refs RIG-2826, #656

Co-authored-by: Matt Wilkinson matt@rigel.build

…RIG-2826)

Task T5 of the frozen observability architecture record (`docs/designs/platform/compass-observability-architecture/design.md`, #656): ship prebuilt Grafana dashboards in-repo so an operator's Grafana — and Rigel's managed Grafana, "just like a user" — import them. Near-universal peer practice (GitLab/Temporal/Supabase/Coder all ship dashboard JSON).

Two dashboards, bound only to signals the shipped `compass-agent` emits today:

- `dashboards/compass-agent-transport.json` — 10 panels over the transport metrics (publish spine, frame sink, control source), Prometheus datasource. PromQL targets the OTel-Prometheus-mangled names of the verified constants in `packages/compass-agent/src/transport/otel-metrics.ts` (`.`→`_`, monotonic counters get `_total`; gauges keep the dotless name).
- `dashboards/compass-agent-loop-traces.json` — 2 panels (invoke_agent root spans + execute_tool spans), Tempo datasource, TraceQL filtered to `service.name = compass-agent` (GenAI-semconv loop spans).

Both declare their datasource as a templating variable (`${DS_PROMETHEUS}`/`${DS_TEMPO}`), never a hard-coded uid, so the JSON imports into any Grafana. No provisioning automation — import is the operator's one step (D3/T5). `dashboards/README.md` documents the rendered signals + import steps; server/runner panels are a noted follow-up (T4b).

Spec-impact: none. Refs RIG-2826, #656

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Aug 27, 2026

Copy link
Copy Markdown

RIG-2826

@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-obs-rig-2826-dashboa.compass-eng-docs.pages.dev

Deployed from compass-obs/rig-2826-dashboards at c2d77ce.

Changed pages:

Review low: the two frame-loss panels (`publish.trace_frames_lost`,
`publish.priority_frames_lost`) used Grafana's built-in `fps` unit, which
renders as `f/s` framerate and reads oddly for a dropped-frames-per-second
rate. Switch both to `short` to match the sibling rate panels and avoid an
axis-label misread. Query and data unchanged.

Refs RIG-2826
Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka
rigel-mintaka marked this pull request as ready for review August 27, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant