Repository navigation
fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix - #2226
Merged
Conversation
…hot of each gauge, and the project gauges drop the _total suffix
dan-petty
force-pushed
the
fix/974-project-dashboard-reads-latest-snapshot
branch
from
October 25, 2026 19:03
dbe9ad7 to
6062991
Compare
dan-petty
marked this pull request as ready for review
October 25, 2026 19:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(orsum(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 addedor 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
k8s/monitoring/dashboards/project-metrics.jsonreadslast_over_time(<metric>[$__range]), grouped by the same labels, with noor 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._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 anddocs/TELEMETRY.md.rate(orincrease(, a gauge throughlast_over_time(, a histogram through either. A new invariant: only a counter name ends in_total.docs/TELEMETRY.mdsays 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
metricsjob 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/