Skip to content

feat(grafana): use sentence-case panel titles and descriptions #7358

Backlog

Description

@devops-cli-service

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_dashboard parses a dashboard with one panel titled CPU Usage
  • THEN lint_dashboard returns a warning that names CPU 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_dashboard parses a dashboard with one visualisation panel with no description
  • THEN lint_dashboard returns 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_dashboard parses a dashboard with one visualisation panel titled CPU usage and a non-empty description
  • THEN lint_dashboard returns 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-linter or extend src/devops_cli/grafana/linter.py?: Extend src/devops_cli/grafana/linter.py with 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 Dashboard schema or run in the k8s check.
    • Chosen: Extend src/devops_cli/grafana/linter.py. The existing linter returns DashboardLintIssue and the k8s check reports its issues.
  • 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

  1. added
    type/feature
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 26, 2026
  2. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor
    • Scope: none. The title has the scope grafana, and .github/labels.yml declares no scope/grafana label. Add the label to the file to give the scope to this item.
    • Related: test(monitoring): lint dashboards for range, window and legend errors #4743, which asks for a different change. 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.
  3. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions