Skip to content

feat(monitoring): apply Grafana design colors and unit rules - #7623

Merged
dan-petty merged 1 commit into
mainfrom
feat/4762-grafana-design-colors
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/4762-grafana-design-colors

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Apply the design color palette, color-mode constraints, zero fill opacity, and required panel unit checks across Grafana schema, linter, and product dashboards:

  • Update FieldDefaults in src/devops_cli/grafana/schema.py so color defaults to {"mode": "fixed", "fixedColor": "text"}, unit defaults to None, and thresholds are preserved for validation.
  • Enforce allowed series hexes (tokens-base.json cat-1/cat-2), allowed semantic names (roles.ini), allowed modes, fillOpacity == 0, and non-empty units for timeseries and stat panels in src/devops_cli/grafana/linter.py.
  • Migrate all six dashboards under k8s/devops/dashboards/ to design-compliant colors, modes, and zero fills.

Verification: uv run pytest tests/grafana/ (98 passed), 95% diff coverage, uv run mypy, and uv run devops ci --check including k8s.

Closes #4762
Change: openspec/changes/archive/2026-11-28-4762-grafana-design-colors/

@dan-petty dan-petty added type/feature Type feature: a new function scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 19:14
@dan-petty
dan-petty merged commit aa539b0 into main Nov 28, 2026
28 checks passed
@dan-petty
dan-petty deleted the feat/4762-grafana-design-colors branch November 28, 2026 19:47
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.240.0](v0.239.0...v0.240.0)
(2026-11-28)


### Features

* **gh:** delegate gh issue view, list, status and create to gh
([#7626](#7626))
([91b805b](91b805b)),
closes [#4848](#4848)
* **monitoring:** apply Grafana design colors and unit rules
([#7623](#7623))
([aa539b0](aa539b0))


### Bug Fixes

* **docs:** ignore placeholder arguments in README command examples
([#7625](#7625))
([6c14c10](6c14c10))
* **roadmap:** plan-check --repo reads target repo and title check
([#7627](#7627))
([7df067e](7df067e))
* **security:** judge KSV-0001 in kubernetes_adversary.yaml
([#7624](#7624))
([b898729](b898729))

---
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): apply the design colors to the dashboards

1 participant