You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(monitoring): add the four log-derived roadmap alerts with the Loki ruler #7362
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