Repository navigation
Description
Split from #4762.
The five product dashboards under k8s/devops/dashboards/ hold panel titles in Title Case or mixed case, and some panels have no description. docs/DESIGN.md asks for sentence case and a description on every panel. This part is deferred from #4762 so that the color rule and the color migration land in one pull request; the title and description rewrite is a separate content change. grafana/dashboard-linter already covers panel title and description checks (see the alternatives block of #4762), so this issue can adopt it or add the rule to src/devops_cli/grafana/linter.py. Acceptance criteria: the linter reports a Title Case title and a missing description; uv run devops ci --check --only k8s reports no title or description finding for the five dashboards.
Proposed design
Problem statement
The five product Grafana dashboards under k8s/devops/dashboards/ use Title Case or mixed-case panel titles. Some visualisation panels have no description. docs/DESIGN.md requires sentence case and a description on every panel. The change adds two linter rules and rewrites the five dashboards so the k8s check reports no title or description finding.
Acceptance criteria
Requirement: Title case finding
The dashboard linter SHALL report a warning when a panel title uses Title Case.
Scenario: A Title Case panel title is reported
- WHEN
load_dashboardparses a dashboard with one panel titledCPU Usage - THEN
lint_dashboardreturns a warning that namesCPU Usage.
Requirement: Missing description finding
The dashboard linter SHALL report a warning when a visualisation panel has no description.
Scenario: A visualisation panel with no description is reported
- WHEN
load_dashboardparses a dashboard with one visualisation panel with nodescription - THEN
lint_dashboardreturns a warning that names the panel title.
Requirement: Compliant panel has no finding
The dashboard linter SHALL report no title or description finding for a visualisation panel with a sentence-case title and a non-empty description.
Scenario: A compliant visualisation panel passes
- WHEN
load_dashboardparses a dashboard with one visualisation panel titledCPU usageand a non-empty description - THEN
lint_dashboardreturns no title or description issue for that panel.
Requirement: Five dashboards pass the k8s check
Each of the five product dashboards SHALL have a sentence-case title on every panel and a non-empty description on every visualisation panel.
Scenario: The k8s check reports no title or description finding
- WHEN I run
uv run devops ci --check --only k8s - THEN the command reports no title or description finding for the five dashboards under
k8s/devops/dashboards/.
Existing Tool Considered
No alternatives check has run on this issue. The issue body names grafana/dashboard-linter as the open, maintained tool that covers panel title and description checks. This proposal extends the existing src/devops_cli/grafana/linter.py because that linter returns DashboardLintIssue and the k8s check reports its issues. The external tool lacks the project's Dashboard schema, the DashboardLintIssue output and the k8s check integration. The written cost to build, keep and fix the two rules until they match the tool's title and description checks is about 2,000 tokens and 1 hour.
Key questions
- Should the change adopt
grafana/dashboard-linteror extendsrc/devops_cli/grafana/linter.py?: Extendsrc/devops_cli/grafana/linter.pywith the two rules. (best practice) [sources: src/devops_cli/grafana/linter.py, docs/DESIGN.md]- Rejected: Adopt grafana/dashboard-linter. It covers the checks but adds a Go binary that does not read the project's
Dashboardschema or run in the k8s check. - Chosen: Extend src/devops_cli/grafana/linter.py. The existing linter returns
DashboardLintIssueand the k8s check reports its issues.
- Rejected: Adopt grafana/dashboard-linter. It covers the checks but adds a Go binary that does not read the project's
- Which panels get the title and description checks?: Check the title of every panel, including row panels. Check the description of visualisation panels only. Row panels are headings and have no query or unit. (best practice) [sources: src/devops_cli/grafana/linter.py, docs/DESIGN.md]
- Rejected: Check titles and descriptions on visualisation panels only. Row titles would stay in Title Case and break the design rule.
- Chosen: Check titles on every panel and descriptions on visualisation panels. Rows have titles but no query or unit, and the existing checks skip rows for queries and datasources.
- How does the linter decide that a panel title is Title Case?: Report a title when a word after the first word starts with an uppercase letter, unless the word is an allowed acronym or proper noun. The first word may start with an uppercase letter. (best practice) [sources: docs/DESIGN.md]
- Chosen: Report any uppercase word after the first. It catches the observed Title Case and mixed-case titles with a small rule.
- Rejected: Use a full grammar model. It adds a dependency and is not needed for the five dashboards.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 26, 2026
grafana, and .github/labels.yml declares no scope/grafana label. Add the label to the file to give the scope to this item.Both items extend the same linter in src/devops_cli/grafana/linter.py and target the same five dashboards, but #4743 adds range, window, and legend rules while this item adds title-case and description rules.devops-cli-service commentedon Nov 28, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.