Repository navigation
Description
Problem or Motivation
emit_service_status_telemetry puts the indicator in a label (src/devops_cli/telemetry/service_status.py:119-123), so each indicator value is its own series. Panels 22 and 23 of project-metrics.json take max(last_over_time([$__range])) and keep the worst old series. Measured: for GitHub the newest sample is indicator 'none' value 0 (462 s old), but the 'major' series written 81,556 s before wins, so the stat shows 2 'Major Outage'. For Cloudflare the newest is 'minor' 1, and the stat shows 2.
Proposed Solution & Architectural Design
Remove the indicator label; the value already holds the indicator (severity_code). In the same pull request, change panels 22 and 23 to last_over_time(devops_cli_upstream_service_status{service='github'}[1h]) as an instant query, and keep their value mappings.
Target Subsystem
Kubernetes & Minikube Automation (Grafana dashboards and telemetry).
Existing Tool Considered
No tool is needed: the change removes one label from the existing emitter.
Acceptance Criteria
- A test: a 'major' summary and then a 'none' summary give one series for the service, with last value 0.
- 'git grep indicator' in project-metrics.json and in the status emitter finds no label use.
- Live, 2 h after the rollout: count by (service) (last_over_time(devops_cli_upstream_service_status[1h])) is 1 for each service, and panel 22 shows the indicator of the GitHub status API at the time of the check.
Files
src/devops_cli/telemetry/service_status.pyk8s/monitoring/dashboards/project-metrics.jsontests/telemetry/test_service_status.py
Dependencies
None.
Source: #4675
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(telemetry)scope of the title gives the scope.Dashboards show a false Major Outage, misleading operators, but the system still functions.Correct status readings matter for incident response, but the underlying service is unaffected.Remove one label in one function and edit two panel queries in one dashboard file.Both target devops_cli_upstream_service_status and its Grafana panels, but #1235 added the feature and the candidate fixes its label design.devops-cli-service commentedon Nov 12, 2026
Released in v0.118.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.118.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 12:40 UTC