Repository navigation
Description
Problem
The refine split of #4566 on 2026-11-14 gives this part its own item. After #4566, the Argo Workflows controller runs the roadmap Workflows in devops. No alert shows a controller that is down, a failed Workflow or a Workflow that waits too long in the Pending queue. CronWorkflow rag-ingest has never run, and no alert showed it (evidence of 2026-11-11 on #4566).
Scope
- Add three alerts: controller
up == 0, failed Workflows, and the age of thePendingqueue. The alerts read the recorded series of feat(monitoring): record the shared roadmap Service selectors #4562. - Set a metric series budget: the OTLP export of a unit drops the per-pod labels where
rowandrepoare enough. - Measure the API-server requests and the new metric series for 100
devops-cli-noopWorkflows in 1 hour.
Acceptance criteria
- A
promtool test rulescase fires each alert on a fixture series. It does not fire the alert on a healthy series. - A comment on this issue gives the measured API-server requests and metric series for 100
devops-cli-noopWorkflows in 1 hour. - Live check after the release: the series of one unit stay in the budget.
Dependencies
- feat(monitoring): record the shared roadmap Service selectors #4562
- feat(k8s): let Argo Workflows run roadmap pods in devops #4566
Source
Source: #4517
Alternatives check of 2026-11-27: partly.
Tool: adinhodovic/argo-workflows-mixin (https://github.com/adinhodovic/argo-workflows-mixin), Apache-2.0, last activity 2026-04-05, maintained.
Reason: Searches surfaced no maintained alert set beyond the Argo Workflows mixin, which ships Prometheus rules for controller health, failed Workflows and pending queue age, but no promtool fixtures and no series budget.
Covers:
- Prometheus alert rules for Argo Workflows controller health
- Alerts on failed Workflows from the controller's Workflow series
- Pending queue age rules plus Grafana dashboards
Lacks:
- No promtool test rules fixtures for firing and healthy series
- No metric series budget or per-pod label drop
- No measurement of API-server requests for 100 noop Workflows
Proposed design
Problem statement
The Argo Workflows controller runs the roadmap Workflows in devops after #4566. No alert shows a controller that is down, a failed Workflow or a Workflow that waits too long in the Pending queue: CronWorkflow rag-ingest never ran and nothing fired. This change adds the three alerts of the maintained Argo Workflows mixin to the product rule file, with promtool fixtures for the firing and healthy cases. The metric series budget and the measurement of 100 noop Workflows move to a new issue.
Acceptance criteria
Requirement: Argo Workflows controller down alert
The argo-workflows rule group SHALL fire the mixin's controller-health alert when the controller is down.
Scenario: Controller down
- WHEN
uv run pytest tests/prometheus/test_k8s_monitoring_alerting.pyrunspromtool test rules tests/fixtures/prometheus_rules/argo_workflows_tests.yamlwith the caseup{namespace="argo-workflows"} 0. - THEN The test passes, promtool reports
SUCCESS, and thealert_rule_testforArgoWorkflowsControllerDownpasses with the alert in statefiring.
Requirement: Failed Workflow alert
The argo-workflows rule group SHALL fire the mixin's failed-Workflow alert when a Workflow is in the Failed phase.
Scenario: Failed Workflow
- WHEN
uv run pytest tests/prometheus/test_k8s_monitoring_alerting.pyruns the fixture case with the controller's Workflow series for one Workflow in theFailedphase. - THEN The test passes, promtool reports
SUCCESS, and thealert_rule_testfor the mixin's failed-Workflow alert passes with the alert in statefiring.
Requirement: Pending queue age alert
The argo-workflows rule group SHALL fire the mixin's pending-queue alert when a Workflow waits in the Pending phase longer than the mixin's threshold.
Scenario: Old pending Workflow
- WHEN
uv run pytest tests/prometheus/test_k8s_monitoring_alerting.pyruns the fixture case with one Workflow in thePendingphase past the threshold of the mixin's pending-queue rule. - THEN The test passes, promtool reports
SUCCESS, and thealert_rule_testfor the mixin's pending-queue alert passes with the alert in statefiring.
Requirement: No alert on a healthy series
The argo-workflows rule group SHALL NOT fire any of the three alerts on a healthy series.
Scenario: Healthy series
- WHEN
uv run pytest tests/prometheus/test_k8s_monitoring_alerting.pyruns the fixture case with the controller up, no Workflow in theFailedphase and no Workflow past thePendingthreshold. - THEN The test passes, promtool reports
SUCCESS, and eachalert_rule_testentry for the three alerts with an emptyexp_alertspasses.
Requirement: Pending a person after the merge
The Prometheus server MUST load the argo-workflows group with its three alert rules.
Scenario: Rule group in the server listing
- WHEN A person reads the rule listing of the Prometheus server after the merge.
- THEN The listing holds the
argo-workflowsgroup with its three alert rules, and its health isok.
Existing Tool Considered
adinhodovic/argo-workflows-mixin (Apache-2.0, maintained, last activity 2026-04-05): the alternatives check in the issue body gives the verdict partly, and its block lists what the mixin covers and what it lacks. The plan adopts the mixin's alert expressions, names and labels in a new argo-workflows group of k8s/devops/monitoring/prometheus-rules-values.yaml. It adds the promtool fixtures that the block names as lacking, at tests/fixtures/prometheus_rules/argo_workflows_tests.yaml. The series budget and the measurement of the 100 noop Workflows go to a deferred issue.
Key questions
- Which open, maintained tool covers the Argo Workflows alerts?: adinhodovic/argo-workflows-mixin (Apache-2.0, maintained, last activity 2026-04-05) is the tool, and the alternatives block of the issue body gives the verdict
partly. The plan adopts the mixin's alert expressions, alert names and labels in a newargo-workflowsgroup, and adds the promtool fixtures that the mixin lacks. The project prefers a maintained open tool over code that it builds and keeps. (best practice) [sources: AGENTS.md]- Chosen: Adopt adinhodovic/argo-workflows-mixin and render its alert expressions. It is an open, maintained mixin under Apache-2.0 that ships the three alert rules, and AGENTS.md puts an open tool before code that the project builds and keeps.
- Rejected: Write the three alert expressions in devops-cli. It builds and keeps a rule set that the mixin already ships, and it gives no promtool fixtures either.
- Rejected: Use the kube-prometheus-stack default rules. That chart ships no Argo Workflows rules.
- Which series do the three alerts read?: The controller-health alert reads the
upseries of the controller's scrape target, withnamespace="argo-workflows". The failed-Workflow alert and the pending-queue alert read the controller's own Workflow series. The mixin's rule expressions give the names and the thresholds, and the promtool fixture pins each one. Each series joinsSERVED_SERIESintests/prometheus/test_k8s_monitoring_alerting.py. [sources: k8s/devops/monitoring/prometheus-rules-values.yaml, tests/prometheus/test_k8s_monitoring_alerting.py:215, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md] - Where do the alert rules and their promtool fixtures live?: The alerts go in a new
argo-workflowsgroup underserverFiles.devops_cli_alerting_rules.ymlink8s/devops/monitoring/prometheus-rules-values.yaml, the product values file that the server loads. The fixture goes intests/fixtures/prometheus_rules/argo_workflows_tests.yaml, next toopenrouter_reconcile_tests.yaml. The group joinsRULE_GROUP_TESTSintests/prometheus/test_k8s_monitoring_alerting.py. [sources: k8s/devops/monitoring/prometheus-rules-values.yaml, tests/prometheus/test_k8s_monitoring_alerting.py:169, tests/fixtures/prometheus_rules/openrouter_reconcile_tests.yaml] - How does the plan prove that the rules fire and that the server loads the group?: A promtool fixture proves each firing case and the healthy case, through
RULE_GROUP_TESTSof the monitoring test module. A person reads the rule listing of the server after the merge, because only the server shows that it loaded the group. (best practice) [sources: tests/prometheus/test_k8s_monitoring_alerting.py:169, k8s/devops/monitoring/prometheus-rules-values.yaml]- Chosen: Promtool fixtures plus a live check by a person after the merge. Promtool checks the expressions offline, and only the server shows the loaded group.
- Rejected: A live check alone. It gives no offline proof of the alert expressions.
- Rejected: A test that reads the values file and asserts the group. It asserts no PromQL result, so a broken expression still passes.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 21, 2026
Both items operate Argo Workflows in devops. 4570 gives read access in the Argo UI. The candidate adds alerts and a metric budget.devops-cli-service commentedon Nov 21, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 22, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.