Alert Storms at 2 AM — An Alertmanager Grouping, Resolution, and Silence Decision Tree
What I dread is not alerts at all. I dread the same batch of alerts re-paging me through the night. Once a core node went down and a single Prometheus down-alert fired. Alertmanager had no grouping, so every one of twenty node exporters that flickered produced twenty nearly identical alerts that all hit the on-call channel in under three minutes, then repeated on a five-minute cycle. I was woken at two and found the same event had been scrolled through forty times.
I have since built a small decision tree for this kind of alert storm. The core move is to first ask "is this genuinely duplicated or is grouping broken", then drive the fix onto three parameters.
Step 1: Decide whether the alert is genuinely duplicated or grouping is broken
Open the Alerts view in Alertmanager and read the batch that is flooding you.
| Symptom | Verdict | Where to fix |
|---|---|---|
| Labels identical yet it keeps paging | Grouping broken | Check group_by |
| Labels differ (instance / job differ) | Genuinely duplicated (many instances each fired) | Check whether the data really has many instances in trouble, or dedup is missing |
| One alert hit several channels | Duplicate receivers | Check the receiver routes |
This split is the fork. Get it wrong and every later step is wasted.
Step 2: Grouping broken — group_by is not merging what should merge
The classic case: one Prometheus alert rule fires for every instance under a job and should become a single "N instances down" notification, but instead it pings one by one.
The cause is almost always a group_by that missed a key label.
# before: group_by only has severity, so twenty instances collapse into one group yet each pages on its own
route:
group_by: [severity]
# after: add alertname and instance and job, so same-type same-instance merges
route:
group_by: [alertname, instance, job]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
Read the three parameters together:
- group_by decides which alerts count as one group. Miss a label and they never merge.
- group_wait is how long a group waits before a new alert in it is sent. Too short and it is the same as not merging at all.
- repeat_interval is how often a still-firing group re-reminds. Too short and it becomes a spam loop.
I once changed group_wait from the default thirty seconds to five seconds, so the twenty alerts still pinged one by one and looked like grouping was broken when really the wait window was too short. Changing it back to thirty seconds merged them into one immediately.
Step 3: A silence did not hold — check two places
A silence that still lets alerts through usually has two causes.
- The matchers do not cover the alert's real labels. The alert label is alertname="NodeDown" but the silence wrote alertname="node_down", a spelling or case mismatch, and it never matches.
silences:
- matchers:
- alertname="NodeDown"
- severity="warning"
startsAt: 2026-11-14T02:00:00Z
endsAt: 2026-11-14T06:00:00Z
comments: "core node maintenance window, silence the non-core alerts"
- The window is too short and expired early. A thirty-minute maintenance dragged to forty, so the last ten minutes of alerts leaked through.
Open the Silences page in the Alertmanager Web UI and compare the alert labels against the silence matchers one by one. Fix whichever one does not line up.
Step 4: The three noise levers — collapse off-hours non-core alerts into one
The most practical way to stop "2 AM non-core alert bombing" is three levers, all at the route layer.
Lever one: split receivers by severity.
route:
group_by: [alertname, instance, job]
group_wait: 30s
routes:
- match:
severity: critical
receiver: page-oncall
- match:
severity: warning
receiver: slack-noncore
Lever two: add a time-window silence for non-core alerts.
# off-hours non-core alerts are not paged, batched until morning
route:
- match:
severity: warning
receiver: slack-noncore-morning
Lever three: use inhibit rules to let the high-severity alert suppress the low ones.
When a machine goes down, the hundreds of warnings on it (CPU, memory, disk IO all jitter) all stem from that single down. An inhibit rule suppresses the low ones:
inhibit_rules:
- source_match:
severity: critical
target_match:
severity: warning
equal: [instance, job]
Meaning: if a critical is already firing for the same instance and job, the warning is not paged on its own. This one rule removes about eighty percent of the noise in a storm.
Step 5: One quick verification command
After changing the config, hot-reload it and fire a test alert to confirm the noise is actually down:
kill -HUP $(pgrep -f alertmanager)
kubectl -n monitoring rollout restart deploy/alertmanager
curl -X POST -H "Content-Type: application/json" \
-d '{"labels":{"alertname":"TestStorm","severity":"warning"},"annotations":{"summary":"test"}}' \
http://localhost:9093/api/v1/alerts
curl -s http://localhost:9093/api/v1/alerts | jq '. | length'
A single card
| Symptom | Root cause | One fix |
|---|---|---|
| Twenty near-identical alerts ping one by one | group_by missed a label / group_wait too short | add instance and job to group_by, set group_wait to 30s |
| Recovered alerts slow to clear | resolve_timeout too long | shrink resolve_timeout |
| A silence did not hold | matchers do not match the real labels | compare the silence matchers against the alert labels one by one |
| One alert hit several channels | duplicate receiver routes | remove the duplicate receiver |
| 2 AM non-core alert bombing | no split by severity | critical pages, warning posts to chat, add a 0-7 silence |
| Most of the storm is same-source noise | low-severity alerts not suppressed | add inhibit_rules so critical suppresses warning |
One question I ask before touching the route
Before I change the route I ask myself: "Are there really many machines in trouble at the same time, or is one event being scrolled N times?" The first is a real incident and should widen the on-call response. The second is a configuration problem and should be de-noised. Get it wrong in one direction and you either suppress a real incident or keep paging people for a storm. Judge first, then decide whether to add a silence or widen the response.
After the storm: what I leave behind
Two post-mortem moves, so the next storm does not blow up in my face.
First I classify this storm's alerts into "the real culprit" and "the noise that got suppressed", and write that split into the team's alert-naming convention. For example: any P0 such as "a machine is down" must carry severity=critical in its alert rule labels, and every CPU, memory, or disk wobble it generates must carry severity=warning. That way the next inhibit rule has a documented basis instead of someone guessing at three in the morning.
Second I keep group_by down to the smallest actionable set: alertname plus instance plus job, and I keep severity out of group_by. Severity routes the alert to the right receiver; it does not belong in the grouping key. If I put severity into group_by, the critical and the warning on the same machine split into two groups and I get an extra notification, which is the opposite of noise reduction. The point of grouping is "who should be woken", not "group as finely as possible".
Two cheap habits help on top of that. One is a nighttime paging window: between midnight and morning only critical pages, everything else queues in chat until I wake up, and that single cut removes about eighty percent of the disturbance. The other is a weekly look at the alert panel: any alert that fires every single night for the past seven days and gets silenced every time is not something I need to see, it is a threshold I wrote wrong. Either tune the threshold or delete the alert; do not keep pressing silence on it every night.
Turning Alert Quality into a Standing Metric
A storm is a one-off; "will it blow up again" is a measurement question. I keep three alert-quality numbers and review their trend every Monday: ① the noise ratio — silenced or inhibited alerts divided by alerts actually delivered; a rising ratio means thresholds or grouping are degrading; ② the escape rate — incidents caught more than an hour after on-call should have caught them, which exposes critical-routing gaps; and ③ the manual-silence coverage — the share of noise I keep holding down by hand each night. The third one is the honest tell: the higher it gets, the more my rules are not fixing anything and I am just pressing silence. All three sit on a Grafana panel on the on-call dashboard, and any one of them trending worse for two straight weeks forces a scheduled de-noising sprint, instead of waiting for the next 3 a.m. wake-up to remember it was needed.
Related
- Prometheus alert design — alert rule and severity conventions
- Alert noise reduction strategy — the full de-noising methodology