Before anyone gets paged, someone has to decide which alerts deserve a page at all. That was our job at September's 48-hour internal hackathon, where four teams of two built AI agents for observability, one stage of the incident lifecycle each. Akshay and I picked alert noise as our problem to solve.
Our alerts live in SigNoz, an open-source observability platform for metrics, logs and traces. Each alert rule checks a metric against a threshold and posts to Google Chat when it fires. We have 50 alert rules, and in one week the five noisiest of them fired 230 times between them.
Every team knows the pattern. An alert flaps ten times a night, fires for missing data, or always fires together with another alert. People mute the channel, and the one real page gets lost with the rest. Fixing it is slow, too. Someone has to open each rule, scroll through a week of history and guess a better setting.
We wanted an agent that does that review once a week. For every SigNoz alert, it should say whether it is noise and how to fix it. It should also show what the fix would have done last week.
What we built
alert-agent runs as a weekly CronJob in our cluster. It reads SigNoz through a read-only MCP server and posts one Google Chat thread per run, with one reply per noisy alert. Each reply has the alert, what it is doing, a suggested rule change, what that change would have done last week, and a link to the rule in SigNoz. Engineers decide whether to apply it.
One run has six steps:
- Fetch. List every alert rule, read its definition, and download a week of state history, plus one extra day so alerts already on at the start get their real start time.
- Summarize. Turn state changes into firings. Count how often each alert fired, how long it stayed on, how many firings were for missing data, its busiest hour, and which alerts fire with it.
- Test fixes. Replay the week under candidate rule changes and keep the ones that would have removed firings.
- Analyst (model). Judge each alert as noise or real, give it a type (flapping, no-data, duplicate, always-on, real) and explain why in plain words.
- Fix Advisor (model). For each noisy alert, pick one of the fixes that was tested on its week.
- Notify. Post the thread. Until DRY_RUN is turned off, it only logs the messages.

Code does every step that has a right answer. Each model answer goes through a code check, and if it fails, the model is asked once more.
We started on Qwen 14B, a small open model, on Ollama inside our cluster. During the hackathon we tried Claude, ending on Claude Haiku. It now runs on Qwen 14B in our cluster again.
The agent cannot change a rule. The MCP client can call only four read tools, and at startup it refuses to run unless the server marks all four as read-only.
Here is one real reply from a weekly run:

The numbers in the description and the reason are written by code, from the week's history and the replay. The model writes the sentence that explains the alert, and picks the fix from the tested list.
In that run, the suggested rule changes would have removed 60 of those 230 notifications without hiding any firing of 30 minutes or more, and quieting a duplicate ClickHouse alert would remove 13 more. For one alert it suggested no rule change at all: ClickHouse CPU stays near its limit for hours, so the advice was to add capacity. That run used Claude Haiku, during the hackathon.
Principle 1: code counts, the model explains
We decided early that a model should not do arithmetic on alert history. Our first runs showed why. Even with the counts handed to it, Qwen called an alert with one firing "fires briefly and frequently". It wrote 89% for a share we had measured at 11%.
So we split the work. Code does everything that has a right answer: pairing state changes into firings, durations, overlaps, and what each fix would have done. The model only sees the results. It gets two jobs: judge whether the alert is noise, and pick a fix from a list that code has already tested.
Some of this counting was harder than it looks. Our SigNoz data needed care:
- Use the alert's own state, not the rule's overall state. Count firing, no-data and recovering as on.
- Strip labels that change all the time, such as lastSeen and the random part of pod names, so a pod restart is still one alert.
- Take severity from the alert's own label. The rule list leaves it empty, so for a while our 5-minute limit for critical alerts never applied.
- Leave always-on alerts out of "fires with". A replication-delay alert that was on for 73 hours overlapped every other alert and was paired with payment latency.
- Report alerts stuck on since before the week separately. They have no state changes in the window, so they never showed up.
The model never writes a number the reader sees. The message opens with the week's numbers, written by code, and then the model's sentence. The line that explains the fix is also written by code, from the replay.
Principle 2: replay the week, do not guess the fix
Ask a model how to quiet an alert and it says "raise the threshold" or "add a wait". Both sound fine. Neither tells you how many notifications go away or what real problem you would hide.
So we never let the model invent a fix. Code takes each alert's real firings from last week and replays them under changes that map to real SigNoz rule settings:
| Fix | Rule setting | What the replay does |
|---|---|---|
| Wait 1, 5, 10 or 15 minutes | evalWindow + matchType: all_the_times | Firings shorter than the wait go away; the rest start later |
| Turn off no-data alerts | alertOnAbsent: false | No-data firings go away |
| Wait longer for no data (10 or 30 minutes) | absentFor | Shorter no-data firings go away |
| Move the threshold 5, 10, 15 or 20% | the threshold value (target) | Firings whose logged value never passed the new threshold go away |
Each result says how many firings it removes, and it lists the cost:
- Hidden long firings. A firing of 30 minutes or more is probably a real problem. Any fix that would hide one is marked.
- Delay. A wait removes short firings, but every notification it keeps arrives later. The replay says how many and by how much.
The Fix Advisor then picks from these tested fixes only, and code checks its choice. A pick is sent back if it hides long firings while a safe fix exists, or if it removes less than 80% of what the best safe fix removes. A pick is also sent back if it delays a critical alert by more than 5 minutes. That last rule came from a real run, where the Advisor suggested a 10-minute wait on payment-service latency and 15 minutes on ClickHouse CPU critical.
The replay also tells us when no setting will help. A resource alert that stays near its limit for hours has no safe fix, because every option hides long firings. For those the Advisor can say "add capacity, check the usage trend first".
The replay has a limit we tell the reader about. SigNoz logs the metric value only when the state changes, so a firing may have peaked higher than we saw. A threshold fix may remove fewer firings than the replay says. A threshold that would stop an alert from ever firing is never offered.
Principle 3: check every answer in code
A small local model is cheap and keeps our alert data inside the cluster, but it hallucinates a lot. Most of the hackathon went into catching that. A better prompt helped a little. Checks in code helped much more.
Every answer goes through a validator before it is used. An answer that fails is sent back once, with each problem named. If it fails again, the alert is left without an analysis rather than given a wrong one.
The mistakes that mattered most, and the check that now catches each:
| What the model wrote | Why it was wrong | What we changed |
|---|---|---|
| Single-firing alert: called it noise: "fires briefly and frequently". | One or two firings is too little to judge | Alerts that fired fewer than 3 times are not sent, unless still on |
| Node-not-ready, etcd-no-leader: "no-data, pure noise" | No data from a node often means the node is down | No-data can now be real; no-data fixes are never offered for availability alerts |
| "Normal load swings" on many alerts | It copied the prompt's example sentences | Examples replaced by a shape to fill in |
| Named a node from a different alert | It mixed up alerts in the same batch | A reason may name only its own labels or a partner it fires with |
| Node-down alert marked a duplicate | Hiding it would hide an outage | An alert that something is down is never accepted as a duplicate |
Two things made the checks work. First, the model gets less to get wrong: more context (labels, the rule's description, threshold and unit, typical and furthest values), but fewer jobs. Second, the model is shown the exact numbers line the reader will see, so it knows what not to repeat.
The checks can also be too strict. Our first percentage check rejected any percentage, so "CPU at 90%" got an alert dropped. Now only shares of firings are rejected, and metric values in percent are fine. A check that fires on good answers costs as much as a missing one.
How we split the work
We split it so we could both move fast. Akshay built the core of the agent: reading SigNoz, turning a week of alert history into firings, the first replay of fixes, and the two model steps, the Analyst and the Fix Advisor. I set up the SigNoz MCP server in our cluster, which the other hackathon teams used too, and built everything people see at the end: the Google Chat report, the links back to SigNoz, the threshold replay, and the advice for alerts that fire together. The checks that keep the model honest, we built together, one wrong answer at a time.
A few moments from my side stand out.
One shared door into SigNoz
The first thing I did was deploy the SigNoz MCP server inside the cluster. It wasn't only for us: HolmesGPT and the RCA agent read SigNoz through the same server.
A report people can check
I wanted every number in the report to be easy to check. So the week is calendar days, the same as the SigNoz date picker: pick those dates in SigNoz and you see the same firings. Each run starts one Google Chat thread, each noisy alert gets its own reply, and each reply links to the rule's page in SigNoz with its chart over the same days.
Testing thresholds without seeing the peak
I built the threshold replay. It takes the highest value SigNoz logged for each firing and checks which firings would still pass the threshold if it moved 5, 10, 15 or 20%.
How Akshay made the answers trustworthy
Once the pipeline worked, the model's answers were often wrong in ways that sounded right. Akshay read each run's output line by line. Every time the model got something wrong, he didn't just fix that answer. He added a check so it couldn't happen again. Qwen called an alert with a single firing "flapping", so alerts with fewer than 3 firings are no longer sent. It called node-not-ready "no-data, pure noise", so no-data can now be real. It wrote "barely above threshold" for a value far past it, so that phrase is now checked against the numbers. Each of these became a rule the agent now follows.
What we took away
- Let code count and let the model explain. Every number a person reads comes from code. The model judges and words things, and it never does arithmetic.
- Test a fix before you suggest it. Replaying last week turns "raise the threshold" into a count of notifications removed, long firings hidden and minutes of delay, or shows that no setting will help.
- Check every answer, and check the checks. A small local model makes the same mistakes again and again, and each one can be caught by a few lines of code. Checks that are too strict drop good answers, so they need tuning on real output too.
The agent is read-only and only suggests. Switching models is a settings change: today it runs on Qwen 14B in our cluster, and it can run on Claude through the OpenAI-compatible API.
Next, we want to record real weeks of alert history and replay them offline against each model.
A big thank you to Akshay, for building the core of this and for that patient review loop.
References
- SigNoz MCP Server: the read tools the agent uses, including alert rules and alert history
- Understanding Alert Evaluation Patterns: evaluation windows and the "all the time" pattern behind the wait fixes
- How to Configure Alerts for Missing Data: no-data alerts and how long data must be missing
