Skip to content

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

Closed

Description

@dan-petty

Problem Description

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

  1. Run devops gh metrics --emit-telemetry.
  2. 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.

Source: #974

Activity

  1. added
    source/agent
    type/bug
    on Oct 25, 2026
  2. dan-petty commented on Oct 25, 2026

    @dan-petty
    OwnerAuthor

    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.
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

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions