Skip to content

fix(telemetry): keep one upstream status series per service #4701

Closed

Description

@dan-petty

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.py
  • k8s/monitoring/dashboards/project-metrics.json
  • tests/telemetry/test_service_status.py

Dependencies

None.

Source: #4675

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/bug
    scope/telemetry
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/telemetry. The (telemetry) scope of the title gives the scope.
    • Priority: P2-Medium. Dashboards show a false Major Outage, misleading operators, but the system still functions.
    • Value: Medium. Correct status readings matter for incident response, but the underlying service is unaffected.
    • Effort: Low. Remove one label in one function and edit two panel queries in one dashboard file.
    • Related: feat(telemetry): monitor GitHub and Cloudflare published service status #1235, which asks for a different change. Both target devops_cli_upstream_service_status and its Grafana panels, but #1235 added the feature and the candidate fixes its label design.
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 12:40 UTC

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

    effort/lowpriority/p2-mediumscope/telemetrysource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions