Repository navigation
Description
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: anydevops_cli_github_throttle_wait_secondsobservation of the Service in 15 minutes; - warning
RoadmapServiceJobsFailing: 3 or moreresult="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
RoadmapServiceRestartedandRoadmapServiceUnavailable: 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 onjob="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
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The change adds PrometheusRule entries to k8s/monitoring/prometheus-values.yaml, which is infrastructure configuration.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.Alerts prevent silent job failures and API overuse, but they serve operators rather than end users.Eight rules with expressions, job filters, runbook links, and unit tests per rule is moderate work.Both extend roadmap Service monitoring, but #2233 adds two new gauge metrics while the candidate adds alert rules on already-exported series.feat(service): roadmap-service runs at one replica, and each model ca…
chore(main): release 0.11.0 (#2501)
feat(telemetry): the roadmap Service counts its GitHub writes, budget…