Skip to content

fix(monitoring): skip the design rules for upstream dashboard copies #7942

Done

Description

@dan-petty

Problem

devops grafana dashboards lint applies the design rules to each dashboard, also to a copy of an upstream dashboard. docs/DESIGN.md (row "Grafana") says: "The linter checks the colors and the units of the own dashboards. The dashboards copied from upstream stay as they are published." Owner decision 7 of #4735 says the same.

At dan-petty/homelab commit 5ccbd2e with v0.263.1, make k8s-dashboards gives 489 color, fill and unit errors in 7 dashboards that are upstream copies (k8s-views-*, cloudnative-pg, seaweedfs, argo-workflows-controller). The required check K8s of that repository thus fails.

_check_design in src/devops_cli/grafana/linter.py has no exemption.

Proposed change

A dashboard is an upstream copy when it states gnetId (the id of a grafana.com dashboard) or has the tag upstream (a copy from another source). The lint does not apply the color, fill-opacity and unit rules to an upstream copy. Each other rule still applies to it.

Owner decision (2026-11-30): correct the lint, not the upstream copies.

Acceptance criteria

  • A dashboard with gnetId, or with the tag upstream, gets no color, fill-opacity or unit finding.
  • The same dashboard still gets each query, layout, identity and datasource finding.
  • A dashboard with neither mark gets the same findings as before.
  • Each dashboard under k8s/devops/dashboards/ still passes the lint.

Existing tool considered

The existing dashboard linter takes the rule. gnetId and tags are fields of the Grafana dashboard model. No new dependency.

Related

#4762, #4735, dan-petty/homelab#713.

Source

Source: https://github.com/dan-petty/homelab/issues/713

Activity

  1. added
    type/bug
    source/agent
    status/new
    effort/low
    value/high
    scope/monitoring
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Priority: The required K8s check in dan-petty/homelab fails with 489 errors, which is a CI failure.
  3. added
    priority/p0-critical
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  4. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-30 22:54 UTC

  5. removed
    status/in-progress
    owner/agent
    on Nov 30, 2026
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/p0-criticalscope/monitoringsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions