Skip to content

feat(monitoring): the roadmap Service's identity refusals, failing and stalled jobs, restarts, and GitHub and model request volume raise alerts #2472

Description

@dan-petty

Problem or Motivation

The roadmap Service goes back online as GitHub App devops-cli-service. Its last identity, the machine account, was suspended by GitHub on 2026-10-11 (#1562), and on that day the Service logged 551 job errors with no alert. A check of origin/main 960e357 and the homelab cluster on 2026-10-28 found that no Prometheus rule selects a devops_cli_* series, so the Service can fail, stall or overuse the GitHub API, and nothing fires.

The Service already exports what the rules need (src/devops_cli/telemetry/instruments.py, src/devops_cli/server/service.py): devops_cli_service_identity_refused_total, devops_cli_service_jobs_total{result}, devops_cli_service_job_start_timestamp_seconds, devops_cli_github_requests_total, devops_cli_github_throttle_wait_seconds and devops_cli_ai_requests_total. Prometheus scrapes the pod both as job="roadmap-service" and as job="kubernetes-pods", so each rule must filter on job="roadmap-service". When GitHub refuses the identity, the Service halts but /healthz stays green (service.py:562-571).

Proposed Solution & Architectural Design

Add a rule group for the roadmap Service to k8s/monitoring/prometheus-values.yaml, beside homelab-services:

  • critical RoadmapServiceIdentityRefused: increase(devops_cli_service_identity_refused_total{job="roadmap-service"}[5m]) > 0;
  • critical RoadmapServiceGitHubThrottled: any devops_cli_github_throttle_wait_seconds observation of the Service in 15 minutes;
  • warning RoadmapServiceJobsFailing: 3 or more result="error" jobs for one repository and lane in 1 hour;
  • warning RoadmapServiceLaneStalled: no job start for a repository and lane in 2 hours while the deployment has a ready replica;
  • warning RoadmapServiceRestarted and RoadmapServiceUnavailable: a container restart in 1 hour, and an unavailable replica;
  • warning RoadmapServiceGitHubRequestsHigh: more than 450 GitHub requests in 1 hour (the budget is 500);
  • warning RoadmapServiceModelRequestsHigh: more than 352 model requests in 1 hour.

Each rule names the runbook step in k8s/README.md ("Roadmap service"). The existing alerting tests (tests/test_k8s_monitoring_alerting.py, SERVED_SERIES) hold each rule's expression to a series the code exports.

Target Subsystem

Kubernetes monitoring (k8s/monitoring/), tests.

Existing Tool Considered

kube-prometheus-stack's PrometheusRule through the chart values, which the repository uses for its other alerts. Nothing is built. The receiver that delivers an alert to a person is a separate owner step: Secret monitoring/alertmanager-webhook does not exist, so no alert leaves the cluster today.

Acceptance criteria

  • promtool check rules (or the existing test) accepts the group, and each expression uses only exported series filtered on job="roadmap-service".
  • A unit test of each rule (promtool test rules, if the repository uses it) fires on a sample series and stays quiet on a normal one.

Activity

  1. added
    source/agent
    type/infra
    status/new
    value/medium
    effort/medium
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 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/infra. The change adds PrometheusRule entries to k8s/monitoring/prometheus-values.yaml, which is infrastructure configuration.
    • Priority: P2-Medium. The Service logged 551 errors with no alert on 2026-10-11, but it is currently at 0 replicas so the gap is not active.
    • Value: Medium. Alerts prevent silent job failures and API overuse, but they serve operators rather than end users.
    • Effort: Medium. Eight rules with expressions, job filters, runbook links, and unit tests per rule is moderate work.
    • Related: feat(telemetry): the roadmap Service sends its round pause and its GraphQL points left as gauges #2233, which asks for a different change. Both extend roadmap Service monitoring, but #2233 adds two new gauge metrics while the candidate adds alert rules on already-exported series.
  3. added
    priority/p2-medium
    on Oct 28, 2026
  4. removed
    status/new
    on Oct 30, 2026
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/mediumpriority/p2-mediumsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions