← Writing

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.

48% → 97%
alerts classified correctly
(untouched base → tuned, independent test)
0% → 93%
healthy alerts left alone
(the base model never did)
16 of 21
real alerts on my own cluster
(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)

nothing, ever

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

rules +statisticsevidencegatemodel ×3must agreedead-alertcheckreplay overhistorypull requesta human reviews≥20 fires, ≥3 daysa script decidesmust keep real incidents

Scripts establish facts, the model judges, a human merges. Dead alerts only ever open an issue, never a patch.

Results

untouched 4Blarge API modeltuned

The large API model is DeepSeek Flash with thinking off, same prompt, zero-shot: a comparison, not a tuned baseline.

Three versions, same settings: only the data and the loss changed
right classhealthy left alone
v0.381.262.5
v0.493.386.7
v0.596.793.3

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.

Base 4B1 of 21

Called 17 healthy alerts noisy or dead.

API model10 of 21

Called 8 quiet, healthy alerts dead.

Tuned16 of 21

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

3

I defined "dead" three times. The first two mislabelled healthy probes.

~82%

of every training example was prompt and statistics. Training on the answer only added 3.4 points, same data.

1

eval graded its own homework. I kept an independent check (promtool) beside it.

400

HTTP error swallowed: Prometheus rejected a VictoriaMetrics-only time syntax and every alert came out "unknown". Only a real Prometheus showed it.

116

minutes: the real mean duration, while the model wrote "short durations". PR text is now built from measurements.

1

re-ingest overwrote my labels file. Restored from Git; the tool now refuses to overwrite.

Limits

one cluster, 21 labelled alertsneeds history (≥ days)misses flapping the numbers don't showPrometheus-style rules onlyproposals for review, never auto-merge

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