Skip to content

feat(monitoring): add the four log-derived roadmap alerts with the Loki ruler #7362

Backlog

Description

@devops-cli-service

Split from #4868.

Problem: four alerts of #4868 read log lines and need Loki ruler rules in k8s/logging/loki-rules.yaml. That file does not exist in this repository: the only change that adds it, openspec/changes/3485-the-coder-tier-serves-no-second, has unticked tasks, and Loki and its ruler are configured in dan-petty/homelab, the follow-up of #5172. The four alerts are: a gate whose findings repeat in more than 50% of at least 10 cases in 7 days; more than 50% of extended runs end at the ceiling over 20 extensions; model-only extensions pass in less than 20% of at least 20 cases; a job is under 80% for 3 days after it held (docs/roadmap/job-success.md).

Why deferred: the ruler is outside this repository, so the rules cannot be kept here, and no Prometheus metric holds the gate finding code, the extension outcome or the decision and outcome join that the alerts read.

Acceptance criteria: each alert is a Loki ruler rule in k8s/logging/loki-rules.yaml with a fixture test that fires it at its threshold and keeps it quiet below it; uv run devops ci --check --only k8s passes for k8s/logging/loki-rules.yaml; each alert has a row in the Alerting table of k8s/README.md and in the Roadmap service alert table of docs/CLUSTER.md with its threshold and its runbook action; the gate-repeat runbook files an issue and adds the finding's code to check_suspect by a pull request once that class exists (#5386); the model-only runbook sets the decision point to mode rule, which runs the deterministic rule and the guards without a cuts file and records the model answers without acting (docs/CONFIGURATION.md, docs/ROADMAP_WORKFLOW.md).

Activity

  1. added
    type/feature
    source/agent
    status/new
    value/medium
    effort/medium
    scope/monitoring
    priority/p2-medium
    on Nov 26, 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-mediumscope/monitoringsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions