Skip to content

feat(monitoring): alert on Argo Workflows in devops #6595

Open

Description

@dan-petty

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 the Pending queue. 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 row and repo are enough.
  • Measure the API-server requests and the new metric series for 100 devops-cli-noop Workflows in 1 hour.

Acceptance criteria

  • A promtool test rules case 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-noop Workflows in 1 hour.
  • Live check after the release: the series of one unit stay in the budget.

Dependencies

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.py runs promtool test rules tests/fixtures/prometheus_rules/argo_workflows_tests.yaml with the case up{namespace="argo-workflows"} 0.
  • THEN The test passes, promtool reports SUCCESS, and the alert_rule_test for ArgoWorkflowsControllerDown passes with the alert in state firing.

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.py runs the fixture case with the controller's Workflow series for one Workflow in the Failed phase.
  • THEN The test passes, promtool reports SUCCESS, and the alert_rule_test for the mixin's failed-Workflow alert passes with the alert in state firing.

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.py runs the fixture case with one Workflow in the Pending phase past the threshold of the mixin's pending-queue rule.
  • THEN The test passes, promtool reports SUCCESS, and the alert_rule_test for the mixin's pending-queue alert passes with the alert in state firing.

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.py runs the fixture case with the controller up, no Workflow in the Failed phase and no Workflow past the Pending threshold.
  • THEN The test passes, promtool reports SUCCESS, and each alert_rule_test entry for the three alerts with an empty exp_alerts passes.

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-workflows group with its three alert rules, and its health is ok.

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 new argo-workflows group, 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 up series of the controller's scrape target, with namespace="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 joins SERVED_SERIES in tests/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-workflows group under serverFiles.devops_cli_alerting_rules.yml in k8s/devops/monitoring/prometheus-rules-values.yaml, the product values file that the server loads. The fixture goes in tests/fixtures/prometheus_rules/argo_workflows_tests.yaml, next to openrouter_reconcile_tests.yaml. The group joins RULE_GROUP_TESTS in tests/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_TESTS of 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.

Dependencies

#4562, #4566

Moved to new items

#8023

Activity

  1. added
    type/feature
    source/agent
    status/new
    value/medium
    effort/medium
    scope/monitoring
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 21, 2026
  4. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    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:

    • argo-workflows helm chart prometheus rules alerts mixin, results: 5
    • prometheus alerting rules Argo Workflows controller down failed workflow pending queue, results: 5
    • awesome-prometheus-alerts argo-workflows alert rules, results: 5
    • "argo-workflows" metrics prometheus "Pending" workflow queue alert github, results: 5
    • kubernetes prometheus alert rules library github, results: 5
    • Argo Workflows, results: 5
    • prometheusrule argo workflows controller alerts, results: 5
    • argo-workflows-monitoring, results: 5
    • argo-workflows-mixin alerts ArgoWorkflowsControllerDown ArgoWorkflowsTooManyPending, results: 5
    • awesome-prometheus-alerts argo workflows rules "workflow" controller, results: 5

    Sources:

  5. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    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.

  6. added
    status/ready
    and removed
    status/new
    on Dec 1, 2026
  7. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

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-mediumscope/monitoringsource/agentstatus/readytype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions