Skip to content

fix(monitoring): track readable project dashboards #4675

Open
16 of 18 issues completed
Open

Description

@dan-petty

Update 2026-11-26 (infra move): Part of the dashboards moved to dan-petty/homelab.

  • In devops-cli (k8s/devops/dashboards/): devops-cli, project-metrics, ai-spend.
  • In homelab (k8s/monitoring/): llm-stack, the Grafana values and data sources, and the SRE service dashboard. That one is built from services.toml with the devops-cli template.

A child that changes a homelab file does it there.


Problem or Motivation

A diagnosis of the Grafana dashboards on 2026-11-11 found that the counters are close to true (increase() is 1.8 % below the budget gauge), but many panels show wrong or unreadable numbers. The root causes:

  • R1. A gauge series has more than one writer. The Service writes the project gauges of 7 repositories with no repo label, and the workstation command writes the same series. devops_cli_project_releases changes 236 times in 24 h, and the sum of items flips between 1,940 and 6.
  • R2. Some instruments do not measure what the panel says. The release count stops at 10 (274 tags). The release interval histogram is observed again at each snapshot and loses intervals under 72 min. The CI run label holds run ids (858 lines in 30 d). The upstream status indicator is a label, so a 22 h old 'major' series wins. devops-cli prices gateway tokens at 41 % of the gateway price. A paginated gh read counts as 1 request.
  • R3. Counter streams lose counts between the collector and Prometheus. No series starts with a zero sample (0 of 179), so increase() loses the first count of each new stream (runner Jobs -18 %). host.name starts a new stream at each pod start (up to 16 resets a day). max_stale 1h is shorter than many export gaps.
  • R4. Panels do not match their signals. Time series panels read snapshot gauges with last_over_time([$__range]). Sparse OTLP counters use rate([5m]) (37 % to 48 % of the true volume at 7 d) or rolling [1h] bars (474 throttle bars for 21 throttles). Panels draw 24 to 858 lines, put counts on seconds axes and have no job or repo filter. The SRE dashboard opens on the wrong namespace.
  • R5. No check catches these defects. The dashboard linter checks only identity, ids, layout, data sources and PromQL syntax. No test evaluates a panel query.

Goal

Each panel of the 5 dashboards (devops-cli, project-metrics, sre-service, ai-spend and llm-stack) shows a number that agrees with its source, for one repository and one job at a time. Two checks keep it so: a promtool harness that evaluates panel queries on fixture series, and a dashboard lint with 5 new rules and no exemption list.

Owner decisions (2026-11-11)

  1. Project facts come from the Grafana GitHub data source. Releases and cadence, stars and forks, CI runs by workflow and result, commits and merged pull requests per release, and items by milestone come from the grafana-github-datasource plugin (pinned to the newest release that the Grafana version supports, v2.10.0 or later; no minimum release age). It authenticates as a new read-only GitHub App that the owner creates and whose key the owner stores in the keyring. Agents register the keyring entries for devops k8s push-secrets, pin the plugin, provision the data source from environment values, rewrite the panels and remove the gauges that these panels replace. So the plan item "fix(telemetry): correct the release and CI run gauges" is not filed; its evidence is in the data source item.
  2. GitHub's own count comes from the rate-limit headers. Gauges of the x-ratelimit-* headers that devops-cli already reads (limit, remaining, used and reset, by resource). No new pod and no second copy of the Service App key.
  3. Traffic keeps the devops-cli emitter. No open tool covers traffic (views, clones, referrers, paths). The emitter runs on the 15-minute schedule of ADR 0021, with a repository label, and its token asks for Administration: read.
  4. No OpenTelemetry Collector GitHub receiver for now. It needs a second public webhook path outside the ADR 0009 router.
  5. Look. The project design study owns colors and type. These items change queries, panel types, units, legends and defaults only, with the default Grafana colors.

Ordered child list

Each line gives the issue, its title and the issues to merge first. "Start now" marks an item with no unmet dependency.

Scope changes and related items (not children)

Open questions for the owner

Target Subsystem

Kubernetes & Minikube Automation (Grafana dashboards, telemetry and the OpenTelemetry Collector).

Existing Tool Considered

Each child names its tool: promtool, the Prometheus OTLP receiver, the OpenTelemetry SDK Resource, the Grafana GitHub data source, the LiteLLM response cost header and the built-in Grafana panel types. The children that build code give their cost: the panel query harness, the dashboard lint, the rate-limit gauges and the traffic emitter.

Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: promtool (https://github.com/prometheus/prometheus), Apache-2.0, last activity 2026-12-01, maintained.
Reason: promtool test rules evaluates PromQL on fixture series and covers the panel-query harness of child #4680, which the issue already names. It does not lint dashboard JSON or fix the gauge, counter and data source defects, so it covers one part of this tracker.

Covers:

  • Evaluates PromQL queries offline on fixture series
  • Fails a panel query that returns a wrong value
  • Already pinned and used by the repository

Lacks:

  • Dashboard JSON lint and the five new rules
  • Unit allowlist and default namespace check
  • Fixes for multiple writers and missing zero samples
  • GitHub data source panels and rate-limit gauges

Proposed design

Problem statement

The five Grafana dashboards showed wrong or unreadable numbers on 2026-11-11. Project gauges had several writers, some instruments did not measure what their panels said, counter streams lost counts, and panel queries did not match their signals. No check evaluated a panel query. This tracker coordinates the child fixes and the two checks that keep each panel correct for one repository and one job at a time.

Acceptance criteria

Requirement: Project gauges keyed by repository

Each project gauge SHALL carry a repo label and SHALL have one writer for each repository.

Scenario: Two repository snapshots write the same gauge

  • WHEN The metrics row sends the snapshot of repository A and then the snapshot of repository B.
  • THEN Prometheus holds one devops_cli_project_releases series for each repository, and the series of repository A keeps its value.

Requirement: Panel queries evaluated on fixture series

Each dashboard panel query SHALL have a case that promtool test rules evaluates on fixture series.

Scenario: Sparse counter with a short rate window

  • WHEN The harness runs a panel query with rate(...[5m]) on a sparse counter fixture.
  • THEN The harness fails when the query returns less than the expected increase of the fixture.

Requirement: Dashboard lint adds five rules

The dashboard lint SHALL add five rules for range, window, legend with the job and repository filter and line count, unit and default namespace, and SHALL have no exemption list.

Scenario: Panel with a missing unit

  • WHEN The lint reads a dashboard panel that sets no unit.
  • THEN The lint reports the panel and exits non-zero.

Requirement: Project facts read from GitHub data source

The project-facts panels SHALL read releases and cadence, stars and forks, CI runs by workflow and result, commits and merged pull requests per release, and items by milestone from the Grafana GitHub data source plugin pinned to v2.10.0 or later and authenticated by a read-only GitHub App.

Scenario: Release count panel

  • WHEN The data source returns 274 v* tags for the repository.
  • THEN The release count panel shows 274, not the 10 of devops gh metrics --limit.

Requirement: GitHub rate-limit headers become gauges

The change SHALL expose the x-ratelimit-limit, x-ratelimit-remaining, x-ratelimit-used and x-ratelimit-reset headers as gauges labeled by resource.

Scenario: A GitHub response gives rate-limit headers

  • WHEN devops-cli reads a GitHub response with limit, remaining, used and reset headers.
  • THEN The metrics hold one gauge for each header, labeled by resource.

Requirement: Traffic emitter runs per repository

The traffic emitter SHALL run on the 15-minute schedule with a repo label and a token that asks for Administration: read.

Scenario: Scheduled traffic run

  • WHEN The 15-minute CronWorkflow starts the traffic emitter.
  • THEN The emitted traffic series carry the repo label, and the token scope is Administration: read.

Requirement: Panels use the unit allowlist

Each panel SHALL set one unit id from the unit table, and the lint SHALL reject a panel with no unit or a unit outside the allowlist.

Scenario: Ratio panel with percentunit

  • WHEN A ratio panel sets percentunit.
  • THEN The lint accepts the unit, and a panel with percent for the same ratio fails.

Requirement: Release and CI gauges are replaced, not duplicated

The tracker SHALL fold the release and CI run gauge work into child #4747 and SHALL NOT file the plan item fix(telemetry): correct the release and CI run gauges.

Scenario: Scope list has no release gauge item

Existing Tool Considered

The alternatives check found no tool that tests Grafana panel queries end to end. The only existing tool that fits a real part is prometheus/prometheus (promtool), which the repository already uses. promtool test rules evaluates PromQL on fixture series and covers the panel-query harness of child #4680. It lacks dashboard JSON lint, the five lint rules of child #4743 and the unit allowlist. It does not fix the multiple writers, label churn, missing zero samples or OTLP receiver behavior. It supplies no project-facts panels, rate-limit gauges or traffic emitter; the project-facts panels use grafana/github-datasource. This tracker builds no code itself. The children that build code give their written cost: the panel-query harness about 120,000 tokens to build, 3,000 tokens a month to keep and 3 h elapsed; the traffic emitter about 40,000 tokens to build, 1,000 tokens a month to keep, 2,000 tokens to repair a wrong permission name and 1 h elapsed. The dashboard lint and the rate-limit gauges state their cost in their own issues.

Key questions

  • Which source supplies the project facts panels?: The Grafana GitHub data source plugin supplies the project facts panels. The plugin is pinned to v2.10.0 or later, and a read-only GitHub App authenticates it. The owner creates the App and stores its key in the keyring. Child feat(monitoring): read project facts with the GitHub data source #4747 replaces the release and CI run gauges with these panels. (best practice) [sources: k8s/monitoring/grafana-values.yaml, src/devops_cli/github/metrics.py, k8s/devops/dashboards/project-metrics.json]
    • Chosen: Grafana GitHub data source. The owner decision names it, and it is open and maintained.
    • Rejected: Keep the devops-cli project gauges. They have several writers, and the release count stops at the --limit value.
    • Rejected: OpenTelemetry Collector GitHub receiver. It needs a second public webhook path outside the ADR 0009 router.
  • How does the dashboard show GitHub's own request count?: The dashboard shows GitHub's own request count from gauges of the x-ratelimit-* headers that devops-cli already reads. The gauges cover limit, remaining, used and reset, by resource. The rate limiter parses the four headers. No new pod and no second Service App key are needed. (best practice) [sources: src/devops_cli/github/rate_limiter.py, docs/adr/0006-github-session-requests-go-through-gidgethub.md, src/devops_cli/config/constants.py]
    • Chosen: x-ratelimit header gauges. It uses headers that devops-cli already reads and adds no pod.
    • Rejected: A new pod with a second App key. It duplicates the Service App key and adds a workload.
  • Which tool emits traffic metrics?: Keep the devops-cli traffic emitter. No open tool covers views, clones, referrers and paths. The emitter runs on the 15-minute schedule of ADR 0021, with a repository label. Its token asks for Administration: read. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, docs/TELEMETRY.md, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md]
    • Chosen: devops-cli traffic emitter. No open tool covers the traffic metrics, and the emitter already exists with the Administration: read permission.
    • Rejected: OpenTelemetry Collector GitHub receiver. It needs a second public webhook path outside the ADR 0009 router.
    • Rejected: Remove traffic panels. The owner decision keeps traffic metrics.
  • Do we add the OpenTelemetry Collector GitHub receiver now?: No. The OpenTelemetry Collector GitHub receiver needs a second public webhook path outside the ADR 0009 router. ADR 0009 records that only GitHub is public today and that the single public path holds. (best practice) [sources: docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
    • Chosen: No receiver. It avoids a second public webhook path outside the ADR 0009 router.
    • Rejected: Add receiver. It adds the webhook path that the owner rejected.
  • Which items change colors and type?: The project design study owns colors and type. These items change queries, panel types, units, legends and defaults only. They use the default Grafana colors. (best practice) [sources: docs/DESIGN.md, docs/adr/0024-the-project-owns-its-design-tokens-in-the-dtcg-format-and-style-dictionary-builds-them.md]
    • Chosen: Design study owns colors and type. It keeps this tracker to query, unit and legend fixes.
    • Rejected: These items change colors and type. It mixes the design study into the panel fixes.
  • Which open tool evaluates the panel queries?: prometheus/prometheus (promtool) test rules on fixture series evaluates the panel queries. The harness is tests/prometheus/test_dashboard_queries.py. It reads tests/fixtures/dashboard_queries/<dashboard>.yaml, replaces the Grafana variables and runs the pinned promtool. promtool lacks dashboard JSON lint and the unit allowlist, so child test(monitoring): lint dashboards for range, window and legend errors #4743 adds those rules. (best practice) [sources: docs/TESTING.md, tests/prometheus/test_dashboard_queries.py, .github/workflows/ci.yml, openspec/changes/archive/2026-11-12-4680-evaluate-panel-queries-on-fixture-series/proposal.md]
    • Chosen: promtool test rules. It evaluates PromQL offline against fixture series and fails a wrong query; the repository already pins it and the harness exists.
    • Rejected: Build a new query evaluator. It repeats a maintained Prometheus feature and adds code to keep.
    • Rejected: Grafana dashboard linter alone. It checks dashboard structure and PromQL syntax but does not evaluate a panel query.
  • Which five rules does the dashboard lint add?: The lint adds five rules: range, window, legend, unit and default namespace. The legend rule includes the job and repository filter and the line count. The lint has no exemption list. grafana/dashboard-linter v0.4.0 has no rule for units, second axes, repeats, $__range or or vector(0), and takes no custom rules. Child test(monitoring): lint dashboards for range, window and legend errors #4743 adds the rules to src/devops_cli/grafana/linter.py. (best practice) [sources: docs/commands/grafana.md, src/devops_cli/grafana/linter.py, docs/DESIGN.md, openspec/changes/archive/2026-11-12-4707-make-the-github-and-command-panels/proposal.md]
    • Chosen: Five rules: range, window, legend, unit and default namespace. It covers the defect classes of R4 and the unit rule of the design spec, with the job and repository filter and line count in the legend rule.
    • Rejected: Only the three rules of the child title. It leaves units and the SRE default namespace unchecked.
    • Rejected: A rule for every defect. The body fixes five new rules; the job and repository filter fits the legend rule.
  • Which unit id does each quantity use?: Duration s; ratio from 0 to 1 percentunit; size bytes (IEC); byte rate binBps; link rate bps; request or operation rate reqps or ops; count short; identifier none. Each value axis has a title with its unit. Child test(monitoring): lint dashboards for range, window and legend errors #4743 rejects a panel with no unit or a unit outside this table. The table lands with feat(design): add the design tokens and their build #4738. (best practice) [sources: docs/DESIGN.md, k8s/monitoring/dashboards/k8s-views-pods.json, k8s/monitoring/dashboards/cloudnative-pg.json, k8s/devops/dashboards/devops-cli.json, k8s/monitoring/dashboards/k8s-views-global.json, k8s/monitoring/dashboards/coredns.json, k8s/monitoring/dashboards/ingress-tunnel.json]
    • Chosen: Use the DESIGN.md unit table. It gives one unit id for each quantity and a lint rule that a test can check.
    • Rejected: Keep the mixed units. It leaves percent/percentunit, Bps/binBps and s/ms in the dashboards.
    • Rejected: Let each panel choose a Grafana unit. It leaves the same quantity with more than one unit id, which the lint cannot allowlist.
  • Is the plan item fix(telemetry): correct the release and CI run gauges filed?: No. Owner decision 1 folds it into child feat(monitoring): read project facts with the GitHub data source #4747, which replaces the release and CI run gauges with the GitHub data source. The panel Total Releases Tracked at k8s/devops/dashboards/project-metrics.json and the gauge at src/devops_cli/github/metrics.py are the ones it replaces. (best practice) [sources: openspec/changes/archive/2026-11-11-4690-key-the-project-gauges-by-repository/design.md, src/devops_cli/github/metrics.py, k8s/devops/dashboards/project-metrics.json]
  • Who creates the read-only GitHub App for the project facts data source?: The owner creates the App, grants read-only access to the managed repositories, and stores its key in the keyring. Agents register the keyring entry for devops k8s push-secrets, pin the plugin and provision the data source from environment values. (best practice) [sources: SECURITY.md, k8s/README.md, docs/CLUSTER.md]
    • Chosen: Owner creates the read-only GitHub App. The owner decision names the owner, and only the owner can create the App and store its key.
    • Rejected: Agent creates the App. An agent cannot create a GitHub App or hold its private key.
  • What release-count evidence must child feat(monitoring): read project facts with the GitHub data source #4747 add?: The old gauge devops_cli_project_releases reads 10 because DEFAULT_PROJECT_METRICS_RELEASE_LIMIT is 10 and total_releases is len(releases). The repository has 274 v* tags on 2026-11-11. After child feat(monitoring): read project facts with the GitHub data source #4747 merges, the release count panel must equal 274. Each panel that shows only the last N releases must say so in its title. (best practice) [sources: src/devops_cli/config/defaults.py, src/devops_cli/github/metrics.py, k8s/devops/dashboards/project-metrics.json, docs/commands/gh.md]
  • Which standards documents does child feat(monitoring): read project facts with the GitHub data source #4747 change?: k8s/README.md for the Grafana dashboards and the data source plugin. SECURITY.md for the read-only GitHub App. AGENTS.md rule 8 requires the document change in the same pull request. (best practice) [sources: k8s/README.md, SECURITY.md, AGENTS.md]

Fit

Needs splitting into 17 items:

  1. test(monitoring): evaluate panel queries on fixture series #4680 test(monitoring): evaluate panel queries on fixture series. Start now.
  2. fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684 fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver. Start now.
  3. fix(telemetry): key the project gauges by repository #4690 fix(telemetry): key the project gauges by repository. Start now.
  4. fix(telemetry): keep one metric stream per workload #4697 fix(telemetry): keep one metric stream per workload. Depends on fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684.
  5. fix(telemetry): keep one upstream status series per service #4701 fix(telemetry): keep one upstream status series per service. Start now.
  6. fix(monitoring): make the GitHub and command panels readable #4707 fix(monitoring): make the GitHub and command panels readable. Depends on test(monitoring): evaluate panel queries on fixture series #4680 and fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684.
  7. fix(monitoring): show one repository at a time in Project Velocity #4712 fix(monitoring): show one repository at a time in Project Velocity. Depends on test(monitoring): evaluate panel queries on fixture series #4680, fix(telemetry): key the project gauges by repository #4690 and fix(telemetry): keep one upstream status series per service #4701.
  8. fix(monitoring): make the Service row panels readable #4718 fix(monitoring): make the Service row panels readable. Depends on fix(monitoring): make the GitHub and command panels readable #4707.
  9. fix(monitoring): read AI spend from the gateway counter #4724 fix(monitoring): read AI spend from the gateway counter. Depends on test(monitoring): evaluate panel queries on fixture series #4680.
  10. fix(monitoring): open the SRE dashboard on the Service namespace #4728 fix(monitoring): open the SRE dashboard on the Service namespace. Depends on test(monitoring): evaluate panel queries on fixture series #4680.
  11. fix(monitoring): tidy LLM stack windows, units and lines #4732 fix(monitoring): tidy LLM stack windows, units and lines. Start now.
  12. fix(ai): record the gateway cost of each gateway call #4734 fix(ai): record the gateway cost of each gateway call. Start now.
  13. fix(github): count each page of a paginated GitHub read #4737 fix(github): count each page of a paginated GitHub read. Depends on fix(github): bound the GitHub session read at 60 seconds #4626.
  14. feat(github): record the rate limit of each response as gauges #4752 feat(github): record the rate limit of each response as gauges. Depends on fix(monitoring): make the GitHub and command panels readable #4707.
  15. fix(telemetry): emit traffic per repository on a schedule #4757 fix(telemetry): emit traffic per repository on a schedule. Depends on fix(telemetry): key the project gauges by repository #4690 and feat(roadmap): run the reconcile sweep on a cluster schedule #4574 for the schedule.
  16. feat(monitoring): read project facts with the GitHub data source #4747 feat(monitoring): read project facts with the GitHub data source. Depends on the owner's read-only App and fix(monitoring): show one repository at a time in Project Velocity #4712.
  17. test(monitoring): lint dashboards for range, window and legend errors #4743 test(monitoring): lint dashboards for range, window and legend errors. Depends on fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684, fix(monitoring): make the GitHub and command panels readable #4707, fix(monitoring): make the Service row panels readable #4718, fix(monitoring): show one repository at a time in Project Velocity #4712, fix(monitoring): read AI spend from the gateway counter #4724, fix(monitoring): open the SRE dashboard on the Service namespace #4728 and fix(monitoring): tidy LLM stack windows, units and lines #4732.

Suspected block

None.

Dependencies

#4738

Sub-issues

Sub-issues

16 of 18 Issues completed
Loading 18 sub-issues

Activity

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/monitoring. The (monitoring) scope of the title gives the scope.
    • Priority: P2-Medium. Wrong dashboard numbers mislead operators but do not block releases or expose data.
    • Value: High. Operators rely on these 5 dashboards for daily decisions and incident response.
    • Effort: High. Five dashboards, five root causes, a new GitHub data source, a promtool harness, and five new lint rules are all in scope.
    • Related: fix(telemetry): grafana dashboard projections, rolling averages, and panel queries #1175, which asks for a different change. Both fix Grafana panel queries, but #1175 targeted specific projection and rolling-average defects while this candidate adds a new data source, counter-stream fixes, and two new checks.
  3. added
    priority/p2-medium
    on Nov 11, 2026
  4. 4 remaining items

  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    The project review plan (#4679) had the item "fix(gh): count all release tags in the velocity gauges". Owner decision 1 of this tracker covers it: the item "feat(monitoring): read project facts with the GitHub data source" (child 16) replaces the release gauges, and the plan item "fix(telemetry): correct the release and CI run gauges" is not filed. So the velocity item folds into child 16 and is not filed.

    The project review links the Project & Engineering Velocity dashboard for its window. Please add this evidence and check to child 16:

    • Today the gauge devops_cli_project_releases reads 10, which is the --limit of devops gh metrics. So the "Total Releases Tracked" stat shows 10, and the repository has 274 v* tags.
    • Acceptance: after child 16 merges, the release count panel equals the count of releases (274 v* tags on 2026-11-11). The other release panels that show only the last N releases say so in their titles.
  6. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Standards documents for the children

    Each child pull request changes these documents together with its feature (AGENTS.md rule 8). The standards update lists no document for the filed children.

    • Child 16, "read project facts with the GitHub data source" (not filed yet):
      • k8s/README.md Grafana Dashboards: the panels of project-metrics.json that read the GitHub data source, and the data source plugin in the Grafana values.
      • SECURITY.md: the read-only GitHub App that the owner creates for the data source.
  7. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Scope from the design spec plan (2026-11-11)

    The design spec tracker #4735 adds a unit convention to this tracker. Colors stay out of this scope (owner decision 5 of this tracker); #4762 applies the design colors after the panel children merge.

    Problem. The dashboards mix percent and percentunit, Bps and binBps, s and ms, and short and none. 12 panels have no unit.

    Scope added.

    • The panel children use one unit id for each quantity (rule C4 of docs/DESIGN.md, from feat(design): add the design tokens and their build #4738):

      Quantity Unit id
      Duration s
      Ratio from 0 to 1 percentunit
      Size bytes (IEC)
      Byte rate binBps
      Link rate bps
      Request or operation rate reqps or ops
      Count short
      Identifier none
    • Every value axis has a title with its unit.

    • The dashboard lint child ("test(monitoring): lint dashboards for range, window and legend errors", child 17) adds a unit rule: each panel sets a unit, and the unit is in the allowlist of the table.

    • Scope: the 10 own dashboards. The 5 gnetId-derived copies and Node Exporter Full stay as published.

    Acceptance criteria added.

    • This tracker names the unit table and the unit rule.
    • After the lint child merges, the linter reports 0 panels with no unit and 0 units outside the allowlist in the 10 own dashboards.

    Dependencies added. #4738 (docs/DESIGN.md holds the table).

  8. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Owner direction of 2026-11-11:

    not sure about the "at least two weeks old" rule, sometimes security updates and bugfixes need to be used within minues of their release, as long as the tooling supports that version, it is fine to update

    New rule: no minimum release age for dependencies, images, charts or tools. Pin the newest release that fixes the known security and bug issues and that the surrounding tools support (the tests pass).

    Body changes: the grafana-github-datasource pin is the newest release that the Grafana version supports (v2.10.0 or later), not a release that is two weeks old.

  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The searches surfaced no tool that tests Grafana panel queries end to end; the only existing tool that fits a real part of the need is promtool, which the issue itself names for child #4680. promtool's test rules evaluates PromQL expressions against fixture series with expected results, so it covers the query-evaluation harness, but it does not lint dashboard JSON, and none of the metric-writer, counter-stream or data-source work is covered by it.

    The repository already uses this tool.

    Tool: prometheus/prometheus (https://github.com/prometheus/prometheus)

    • License: Apache-2.0
    • Last activity: 2026-11-14
    • Maintained: yes

    Covers:

    • promtool test rules evaluates PromQL expressions offline over fixture series with expected outcomes, which is exactly the panel-query harness of test(monitoring): evaluate panel queries on fixture series #4680
    • Runs in CI with no live Prometheus, as part of the Prometheus binary, so a panel query can be asserted against known input series
    • Gives per-query failures, so a wrong rate(), window or selector in a panel shows as a failing test instead of a wrong number on a dashboard

    Lacks:

    • No dashboard lint: it does not read Grafana dashboard JSON, so it cannot check units, legends, axis, panel type, range windows, data sources, job/repo filters or default namespace
    • No implementation of the 5 new lint rules of test(monitoring): lint dashboards for range, window and legend errors #4743 or the unit allowlist
    • Does not fix the multiple writers, label churn, missing zero samples or OTLP receiver behaviour (R1-R3)
    • Does not supply the project-facts panels (a separate Grafana data source plugin), the rate-limit gauges, or the traffic emitter
    • Needs the panel queries and fixture series extracted and written by hand for each panel

    Tools considered:

    Searches run:

    • Grafana dashboard linter check panel queries promql rules, results: 5
    • promtool test rules unit test PromQL expressions fixture series, results: 5
    • "promtool" "test rules" documentation prometheus unit testing, results: 5
    • grafana dashboard linter promql panel query validation tool github, results: 5
    • prometheus promtool unit testing rules yaml expr evaluation, results: 5
    • Grafana GitHub data source plugin grafana-github-datasource, results: 5
    • grafana-github-datasource, results: 5
    • promtool, results: 5
    • prometheus.io docs promtool test rules, results: 5
    • grafana github datasource plugin releases stars forks pull requests panels, results: 5

    Sources:

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

  10. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Owner question: Who creates the read-only GitHub App for the project facts data source? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  11. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    The proposal at de100a0 needs splitting into 17 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.

    1. test(monitoring): evaluate panel queries on fixture series #4680 test(monitoring): evaluate panel queries on fixture series. Start now.
    2. fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684 fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver. Start now.
    3. fix(telemetry): key the project gauges by repository #4690 fix(telemetry): key the project gauges by repository. Start now.
    4. fix(telemetry): keep one metric stream per workload #4697 fix(telemetry): keep one metric stream per workload. Depends on fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684.
    5. fix(telemetry): keep one upstream status series per service #4701 fix(telemetry): keep one upstream status series per service. Start now.
    6. fix(monitoring): make the GitHub and command panels readable #4707 fix(monitoring): make the GitHub and command panels readable. Depends on test(monitoring): evaluate panel queries on fixture series #4680 and fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684.
    7. fix(monitoring): show one repository at a time in Project Velocity #4712 fix(monitoring): show one repository at a time in Project Velocity. Depends on test(monitoring): evaluate panel queries on fixture series #4680, fix(telemetry): key the project gauges by repository #4690 and fix(telemetry): keep one upstream status series per service #4701.
    8. fix(monitoring): make the Service row panels readable #4718 fix(monitoring): make the Service row panels readable. Depends on fix(monitoring): make the GitHub and command panels readable #4707.
    9. fix(monitoring): read AI spend from the gateway counter #4724 fix(monitoring): read AI spend from the gateway counter. Depends on test(monitoring): evaluate panel queries on fixture series #4680.
    10. fix(monitoring): open the SRE dashboard on the Service namespace #4728 fix(monitoring): open the SRE dashboard on the Service namespace. Depends on test(monitoring): evaluate panel queries on fixture series #4680.
    11. fix(monitoring): tidy LLM stack windows, units and lines #4732 fix(monitoring): tidy LLM stack windows, units and lines. Start now.
    12. fix(ai): record the gateway cost of each gateway call #4734 fix(ai): record the gateway cost of each gateway call. Start now.
    13. fix(github): count each page of a paginated GitHub read #4737 fix(github): count each page of a paginated GitHub read. Depends on fix(github): bound the GitHub session read at 60 seconds #4626.
    14. feat(github): record the rate limit of each response as gauges #4752 feat(github): record the rate limit of each response as gauges. Depends on fix(monitoring): make the GitHub and command panels readable #4707.
    15. fix(telemetry): emit traffic per repository on a schedule #4757 fix(telemetry): emit traffic per repository on a schedule. Depends on fix(telemetry): key the project gauges by repository #4690 and feat(roadmap): run the reconcile sweep on a cluster schedule #4574 for the schedule.
    16. feat(monitoring): read project facts with the GitHub data source #4747 feat(monitoring): read project facts with the GitHub data source. Depends on the owner's read-only App and fix(monitoring): show one repository at a time in Project Velocity #4712.
    17. test(monitoring): lint dashboards for range, window and legend errors #4743 test(monitoring): lint dashboards for range, window and legend errors. Depends on fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684, fix(monitoring): make the GitHub and command panels readable #4707, fix(monitoring): make the Service row panels readable #4718, fix(monitoring): show one repository at a time in Project Velocity #4712, fix(monitoring): read AI spend from the gateway counter #4724, fix(monitoring): open the SRE dashboard on the Service namespace #4728 and fix(monitoring): tidy LLM stack windows, units and lines #4732.
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/highpriority/p2-mediumscope/monitoringsource/agentstatus/newtype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions