You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(telemetry): the project items gauge counts only issues in a milestone, so the velocity dashboard shows 0 open items while 239 are open #2263
The panels "Items by Milestone" and "Active Items by State" of the Project & Engineering Velocity dashboard show 0 open items. On 2026-10-25, 239 issues were open.
devops_cli_project_items counts only the open and closed issues of each milestone (_record_* and the OTLP emitter in src/devops_cli/github/metrics.py, from MilestoneMetric.open_items and closed_items). Intake puts each new item in the backlog with no milestone, and a person plans milestones. On 2026-10-25 no milestone was open, so the gauge had no open item to count.
The instrument's description (src/devops_cli/telemetry/instruments.py and docs/TELEMETRY.md) says "Project items by milestone, type, priority and state". The emitter sends only the labels milestone and state.
Reproduction Steps
Run devops gh metrics --emit-telemetry.
In Prometheus, query sum by (state) (last_over_time(devops_cli_project_items[1h])).
Expected vs Actual Behavior
Expected: the open count agrees with the open items of the project board, and the gauge has the labels that its description names.
Actual: {state="open"} 0 and {state="closed"} 928.
Environment Diagnostics
main at 990e4d1. The roadmap Service had 0 replicas; one snapshot was sent by hand.
Proposed remedy
Count the items of the project board by Status, type and Priority, with the milestone as a label that is empty for an item with no milestone.
Acceptance criteria
The gauge's labels agree with its description, and a test checks the recorded labels.
An open item with no milestone is counted.
The two panels and docs/TELEMETRY.md describe what the gauge counts.
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
Type: type/bug. The candidate describes a bug in telemetry that miscounts project items.
Priority: P2-Medium. The issue affects dashboard accuracy but does not block functionality or introduce security risks.
Value: Medium. Fixing the gauge improves dashboard data reliability for project velocity metrics.
Effort: Low. The fix involves adjusting the telemetry logic to include items without milestones and correct label usage.
Related: fix(gh): project metrics read every page and fail closed instead of reporting zero #931, which asks for a different change. Both items relate to project metrics but ask for different changes: this item fixes gauge labels and counts open items without milestones, while #931 fixes reading all pages and fails closed instead of reporting zero.
Activity
dan-petty commentedon Oct 25, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate describes a bug in telemetry that miscounts project items.The issue affects dashboard accuracy but does not block functionality or introduce security risks.Fixing the gauge improves dashboard data reliability for project velocity metrics.The fix involves adjusting the telemetry logic to include items without milestones and correct label usage.Both items relate to project metrics but ask for different changes: this item fixes gauge labels and counts open items without milestones, while #931 fixes reading all pages and fails closed instead of reporting zero.