A small local model for Prometheus alert triage
27 November 2026
I'm an observability engineer, not an ML engineer. Alert noise is the problem I meet most, so I tried to automate the first pass with a small model on a home GPU, and measured it honestly. Feedback on the method is welcome.
(untouched base → tuned, independent test)
(the base model never did)
(untouched model 1, large API model 10)
The task: four kinds of alert
Flapping
Re-fires soon after resolving
Noisy
Fires constantly, tells you nothing new
Dead
Can never fire (metric missing or selector matches nothing)
Healthy
Rare, meaningful fires: leave it alone
For each one the model returns a verdict and a minimal patch (expr, for, severity), or "no change" when the alert is healthy.
How it stays safe
Scripts establish facts, the model judges, a human merges. Dead alerts only ever open an issue, never a patch.
Results
The large API model is DeepSeek Flash with thinking off, same prompt, zero-shot: a comparison, not a tuned baseline.
v0.3→v0.4: fixed contradictory labels and the definition of "dead". v0.4→v0.5: loss on the answer only.
On my own cluster
Same 21 alerts, same order in every panel. Filled = right, red ring = wrong.
Called 17 healthy alerts noisy or dead.
Called 8 quiet, healthy alerts dead.
3 flapping the numbers don't show, 2 quiet probes I mis-measured.
4 of 4 dead alerts found by the deterministic check, whatever the model says. One false alarm; the 8 healthy single-target probes were left alone.
59 alert rules, two days of history. Reference labels from a separate agent session; I reviewed and accepted them. Same prompt and inputs for all three models.
What I got wrong
I defined "dead" three times. The first two mislabelled healthy probes.
of every training example was prompt and statistics. Training on the answer only added 3.4 points, same data.
eval graded its own homework. I kept an independent check (promtool) beside it.
HTTP error swallowed: Prometheus rejected a VictoriaMetrics-only time syntax and every alert came out "unknown". Only a real Prometheus showed it.
minutes: the real mean duration, while the model wrote "short durations". PR text is now built from measurements.
re-ingest overwrote my labels file. Restored from Git; the tool now refuses to overwrite.
Limits
How it was built
Mine
Definitions, evaluation design, safety rules, review of every change.
Coding agents
Most of the code, from written specs (about $0.10–0.30 per task), each diff reviewed by me.
Larger LLM API
Wrote training answers; kept only if deterministic checks passed.
Reference labels
Assembled by a separate agent session with access to the cluster's metrics and Git. I accepted them, though I find the classes hard to apply by hand myself.
About $5.60 of GPU rental over five runs (about 95 min each, rented RTX 4090); evals ran on a home RX 6750 XT. Parts of this post were drafted with an AI assistant and edited by me.
Where I'd like feedback
- Do the class definitions (flapping ≥25% of fires re-fire quickly, noisy ≤10%, dead = nothing to match for 14 days) fit your estates?
- A better way to verify a patch than structural checks plus replay?
- Could you label ten alerts from your stack so I can test outside my cluster?
- Borderline alerts are hard to label even for a person. Would an explicit "unsure" class, and two labellers per alert, be the right next step?
- What would stop you from using something like this?
Links
- Code, evaluations and the full process log
- Model (GGUF Q8 and Q4, LoRA adapter, Apache-2.0)
- Training set (7,144 rows, CC BY 4.0, sources credited)