Skip to content

fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix - #2226

Merged
dan-petty merged 1 commit into
mainfrom
fix/974-project-dashboard-reads-latest-snapshot
Oct 25, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/974-project-dashboard-reads-latest-snapshot

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Most panels of the Project & Engineering Velocity dashboard showed no data. 14 panels read a project gauge as a plain selector, or through max( or sum( with no range function. Prometheus finds a plain selector only within five minutes of a sample, and the roadmap Service sends the snapshot every 15 minutes, so these panels were empty for about two thirds of each interval, and all the time while nothing sends. The stat panels added or vector(0), so they showed a false 0. The dashboard invariant skipped this dashboard, so no test caught it.

The 13 project gauges also ended in _total, which Prometheus keeps for counters.

What changes

  • Each gauge panel of k8s/monitoring/dashboards/project-metrics.json reads last_over_time(<metric>[$__range]), grouped by the same labels, with no or vector(0). Its description says that it shows the latest value of each series in the time range, and no data when none was sent in it.
  • The 13 project gauges drop _total (devops_cli_project_releases, ..._commits, ..._prs, ..._ci_runs, ..._items, ..._traffic_views, ..._traffic_views_uniques, ..._traffic_clones, ..._traffic_clones_uniques, ..._traffic_referrers, ..._traffic_paths, ..._stars, ..._forks), in the instruments, their constants, the emitter, the dashboard and docs/TELEMETRY.md.
  • The dashboard invariant reads each series by its kind in every devops-cli dashboard, with no exception: a counter through rate( or increase(, a gauge through last_over_time(, a histogram through either. A new invariant: only a counter name ends in _total.
  • docs/TELEMETRY.md says how a dashboard reads a gauge.

Known limit: a series that a later snapshot no longer sends, such as a referrer that leaves the top ten, keeps its last value until it leaves the time range (see the design).

#974 is re-scoped. The emission on command use is not needed, because the roadmap Service's metrics job sends the snapshot. The two gauges that a comment folded in from #1400 become a separate item.

Tests

devops ci fail-to-pass --base origin/main: the two new invariants fail on the base and pass on this branch. The telemetry, dashboard and docs suites pass (476 tests).

Pending a person: the roadmap Service is at 0 replicas, so the dashboard shows data after it runs again, or after devops gh metrics --emit-telemetry.

Item

Closes #974

Change: openspec/changes/archive/2026-10-25-974-project-dashboard-reads-latest-snapshot/

…hot of each gauge, and the project gauges drop the _total suffix
@dan-petty
dan-petty force-pushed the fix/974-project-dashboard-reads-latest-snapshot branch from dbe9ad7 to 6062991 Compare October 25, 2026 19:03
@dan-petty
dan-petty marked this pull request as ready for review October 25, 2026 19:10
@dan-petty
dan-petty merged commit 990e4d1 into main Oct 25, 2026
17 checks passed
@dan-petty
dan-petty deleted the fix/974-project-dashboard-reads-latest-snapshot branch October 25, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix

1 participant