Repository navigation
Description
Problem
The roadmap Service logs its round pause and the GraphQL points left after each round (#1400), but Prometheus has no series for either. An alert on a paused Service, or on a GraphQL budget near its floor, therefore needs Loki. A comment of 2026-10-08 folded this into #974; #974 was re-scoped on 2026-10-25 to the project dashboard, so it moves here.
Proposed remedy
Two gauges, sent where the Service already logs the values:
devops_cli_service_paused_until_seconds: the Unix time that the Service's round pause ends, or 0 when no pause holds.devops_cli_github_graphql_remaining: the GraphQL points left, from each round's closing budget read.
Both are gauges, so their names do not end in _total, and a dashboard reads them with last_over_time(...[$__range]) (#974).
Existing Tool Considered
The OTLP gauge path of src/devops_cli/telemetry/instruments.py (InstrumentKind.GAUGE), which the project metrics use.
Acceptance criteria
- A round that pauses sends
devops_cli_service_paused_until_secondswith the end of the pause, and a round with no pause sends 0; a test reads the captured gauge. - Each round's closing budget read sends
devops_cli_github_graphql_remaining; a test reads the captured gauge. -
docs/TELEMETRY.mdlists both gauges.
Source: #974
Proposed design
Problem statement
The roadmap Service logs its round pause end time and its remaining GitHub GraphQL points after each round. It sends neither value to Prometheus. An operator who wants to alert on a paused Service must query Loki. An operator who wants to alert on a low GraphQL budget must also query Loki. This issue adds two gauges so both values are available as Prometheus series.
Acceptance criteria
- Criterion 1: A round that pauses sends
devops_cli_service_paused_until_secondswith the Unix time the pause ends. A round with no pause sends 0.
Verification: A test captures the gauge emission and asserts the value equals the pause end time, or 0 when no pause holds. - Criterion 2: Each round's closing budget read sends
devops_cli_github_graphql_remainingwith the points left.
Verification: A test captures the gauge emission and asserts the value equals the remaining GraphQL points. - Criterion 3:
docs/TELEMETRY.mdlists both gauges in its metric table.
Verification: The table indocs/TELEMETRY.mdcontains rows fordevops_cli_service_paused_until_secondsanddevops_cli_github_graphql_remaining.
Key questions
- What is the emission mechanism for the two new gauges?: The
emitfunction insrc/devops_cli/telemetry/instruments.pyhandles gauge recording viatracer.record_gauge. The Service calls it at the points where it already logs the pause end time and the GraphQL budget, as delivered by fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400. [sources: src/devops_cli/telemetry/instruments.py] - Do the two gauges carry any labels?: No. The issue names no labels for either gauge. Each gauge carries only the attributes the Service context already provides. (proposed)
- Which test file verifies the gauge emissions?:
tests/test_telemetry_instruments.pychecks each instrument query, as stated in the module docstring ofsrc/devops_cli/telemetry/instruments.py. [sources: src/devops_cli/telemetry/instruments.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
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 proposes a new feature to send telemetry data as gauges.This change adds useful monitoring capabilities but is not critical for core functionality.Adding these gauges improves observability of service behavior and resource usage.The change requires implementing gauge exports and updating documentation, but the underlying logging already exists.Both items relate to roadmap service behavior and GitHub API handling but ask for different changes: one sends gauges for pause and GraphQL points, the other stops jobs when GitHub refuses identity and keeps requests under hourly budget.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).
devops-cli-service commentedon Nov 1, 2026
Staged: branch
feat/2233-the-roadmap-service-sends-its-round, draft pull request #2984. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
docs(openspec): plan #2233 add Service pause and GraphQL gauges (#2984)
dan-petty commentedon Nov 1, 2026
Close as not planned. Newer work removed the need for this item.
Evidence on origin/main 1c20865:
PR #3023 removes the staged plan folder for this item.
If a person still wants an alert for a halted or held Service, file a new issue. It should use the existing budget and identity-refused metrics.
docs(openspec): remove plan #2233 superseded by #2399 (#3023)