Skip to content

fix(monitoring): make the SLO rules of a variable service dashboard work - #7979

Merged
dan-petty merged 1 commit into
mainfrom
fix/7977-variable-slo-rules
Dec 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7977-variable-slo-rules

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

For a spec with variables, the recording rules held $namespace and $workload, which Prometheus does not fill in, and both SLO charts read one record. The charts were empty.

The rules now sum the requests and the failed requests of each window by the labels of the variable matchers, and each chart filters them by the selection. A spec with variables and good_events is refused. A spec with no variables does not change. Owner decision (2026-11-30): keep both charts on filterable rules.

Verification: devops ci test of the 4 template test files (118 passed, promtool evaluates the new rules), devops ci fail-to-pass --base origin/main (5 fail on base), devops ci --check --only docs. On the dan-petty/homelab cluster each new rule expression gives series (dan-petty/homelab#713).

Closes #7977

Change: openspec/changes/archive/2026-12-01-7977-variable-slo-rules/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards labels Dec 1, 2026
@dan-petty
dan-petty marked this pull request as ready for review December 1, 2026 01:25
@dan-petty
dan-petty merged commit 51d1e36 into main Dec 1, 2026
36 checks passed
@dan-petty
dan-petty deleted the fix/7977-variable-slo-rules branch December 1, 2026 01:25
dan-petty-release Bot added a commit that referenced this pull request Dec 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.268.1](v0.268.0...v0.268.1)
(2026-12-01)


### Bug Fixes

* **deps:** update dan-petty/devtools Docker tag to v1.6.4
([#7991](#7991))
([f52fc83](f52fc83))
* **monitoring:** make the SLO rules of a variable service dashboard
work ([#7979](#7979))
([51d1e36](51d1e36)),
closes [#7977](#7977)
* **roadmap:** end repair rounds on a check that cannot pass
([#7993](#7993))
([a1ae3c4](a1ae3c4))

---
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(monitoring): make the SLO rules of a variable service dashboard work

1 participant