Skip to content

feat(monitoring): build service dashboards from one SRE template - #5280

Merged
dan-petty merged 3 commits into
mainfrom
feat/5184-service-dashboard-template
Nov 12, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/5184-service-dashboard-template

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

A template builds the Kubernetes service dashboards with the Grafana Foundation SDK 0.0.22 (dev dependency group, not runtime): the SLO tiles, the burn rate and budget, the golden signals in the order of the book, then collapsed capacity, logs and profiles rows. Colors come from the token build. make dashboards writes devops-roadmap-service.json and devops-sre-service.json from services.toml; the second replaces sre-service.json and keeps its uid. The Design Tokens job fails when a committed dashboard is not the build. promtool cases check the SLI, budget and burn rate (1,000 requests, 2 failed, SLO 99 %: 0.998, 80 %, 0.2x).

Closes #5184

Change: openspec/changes/archive/2026-11-12-5184-build-service-dashboards-from-one-sre/

@dan-petty dan-petty added type/feature Type feature: a new function scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Screenshots of the generated devops-roadmap-service.json in Grafana 13.3.1, with the live data of the last 24 h (render of 2026-11-12, about 23:25 UTC).

The method: a preview copy of the build (uid devops-roadmap-service-preview, title suffix " (preview)") went to Grafana through /api/dashboards/db. The image renderer drew it with get_panel_image in the theme light and the theme dark. Then the copy was deleted. No provisioned dashboard changed. The copy of devops-sre-service.json saved and drew the same way.

Light theme

Roadmap Service dashboard, light theme

Dark theme

Roadmap Service dashboard, dark theme

What the data shows: SLI 99.984 % over 30 days, 84.5 % of the error budget left, and one 502 near 03:00 UTC that put the 1 h burn rate at about 9x (under its 14.4x page line). The renders of the collapsed rows (memory and CPU use, request and limit; the warnings log panel; the CPU flame graph) also showed data.

A question for the owner: both specs in k8s/monitoring/dashboards/services.toml use the SLO of 99.9 % of the requests over 30 days (docs/DESIGN.md, C12). Please confirm this target, or give the target for each service. A change is one line in services.toml and make dashboards.

The Grafana Foundation SDK 0.0.22 (dependency group `dashboards`) builds
the dashboard of a Kubernetes service from a spec of
k8s/monitoring/dashboards/services.toml: the SLO tiles, the burn rate and
the budget left, the golden signals in the order of the book, then the
collapsed rows of capacity, logs and profiles. Series 1 and 2 take the
token hex of color.data.cat.1 and cat.2; other colors are the Grafana
names text, semi-dark-orange and red.

`make dashboards` writes devops-roadmap-service.json and
devops-sre-service.json, which replaces sre-service.json and keeps its
uid. The Design Tokens job fails when a committed dashboard is not the
build. The query harness evaluates the SLI, budget and burn-rate queries
of a spec with promtool.
The Service image and the runner image install only the dev group, so
the suite in the Service image failed on the import of the SDK, and the
type check of a runner step reads all of src/.
@dan-petty
dan-petty force-pushed the feat/5184-service-dashboard-template branch from 9175f8e to da9695b Compare November 12, 2026 23:41
@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 23:50
@dan-petty
dan-petty merged commit 0fe31a6 into main Nov 12, 2026
36 checks passed
@dan-petty
dan-petty deleted the feat/5184-service-dashboard-template branch November 12, 2026 23:51
dan-petty-release Bot added a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.125.0](v0.124.0...v0.125.0)
(2026-11-12)


### Features

* **monitoring:** build service dashboards from one SRE template
([#5280](#5280))
([0fe31a6](0fe31a6))


### Bug Fixes

* **roadmap:** fix-plan records the true result of each attempt
([#5279](#5279))
([4a5a118](4a5a118))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(grafana): build service dashboards from one SRE template

1 participant