Repository navigation
Description
Problem
The service dashboard template (#4743) draws the burn rate and the error budget charts from Prometheus recording rules. For a spec with variables, burn_rate_rules returns the rules with the text $namespace and $workload, which Prometheus does not fill in. The two charts also query one record, so they do not follow the selected namespace and workload.
Measured on the dan-petty/homelab cluster on 2026-11-30: the request selector of such a rule matches 0 series, and the same selector with devops and roadmap-service matches 1. Thus the generator output of v0.265.4 gives empty charts, and homelab cannot commit it (dan-petty/homelab#713).
Proposed change
For a spec with variables, record the requests and the failed requests of each window, summed by the labels that the variable matchers name, with only the other matchers. Each chart computes its ratio from the records with the variable matchers. A spec with no variables keeps its rules.
A spec with variables and with good_events is refused, because the template cannot sum its expressions by label.
Owner decision (2026-11-30): keep both charts on recording rules that the selectable dashboard can filter.
Acceptance criteria
- No rule of a spec holds a Grafana variable.
- A promtool test shows that the burn rate and the budget of a selected service come from the rules, for a spec with variables.
- Each chart query of a spec with variables names
$namespaceand$workloadand no fixed window. - A spec with
variablesandgood_eventsfails with a message that names both. - The rules and the dashboard of a spec with no variables do not change.
Existing tool considered
Prometheus recording rules and promtool test rules, in use. Sloth (#7504) writes rules per service and has no form for a variable dashboard. No new dependency.
Related
#4743, #7504, dan-petty/homelab#713.
Activity
dan-petty commentedon Nov 30, 2026
Empty SLO charts on a live cluster degrade monitoring visibility for service operators.Both work on service SLO dashboards, but #5475 creates the specs and dashboards while the candidate fixes rule generation for variable specs.chore(main): release 0.268.1 (#7994)
devops-cli-service commentedon Dec 1, 2026
Released in v0.268.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.268.1
devops-cli-service commentedon Dec 1, 2026
Live since 2026-12-01 02:48 UTC