Every night-time alert that requires no action is a contribution to the "tomorrow we'll look at the real thing" fund. That fund is always spent the same way: the on-call engineer stops trusting the channels, and the single alert that actually required action drowns in the noise. Alert tuning is hygiene, not a luxury.
The test for adding a rule
Three questions without which a rule does not reach production:
- Is there an action? If the alert has no answer to "what to do", it is not an alert, it is a Grafana panel.
- One symptom — one alert. A cascade of twenty notifications about one incident hides the cause behind noise. Fixed with grouping and inhibition:
route:
group_by: [alertname, service, region]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
inhibit_rules:
# if a critical is already firing on the service - criticals silence warnings
- source_matchers: [severity="critical"]
target_matchers: [severity="warning"]
equal: [service, region]
- Severity by impact, not by panic. Warning stays silent during working hours, critical makes the phone ring. And the converse: if a critical doesn't wake anyone at night, it isn't critical.
Alert on symptoms, not causes
The classic mistake is alerting on internals (CPU, memory, queues). The internals look fine while a customer scenario is broken — and vice versa: high CPU on a perfectly healthy service. The right hierarchy:
| Layer | Example rule | Reacts to |
|---|---|---|
| Symptom (user) | error ratio, latency, SLO burn | what the customer feels |
| Cause (system) | CPU, disk, queue, GC | performance degradation |
| Metadata | up == 0, dead man's switch | the monitoring itself going blind |
Second-layer alerts are necessary, but as a path to the diagnosis, not as an alarm clock: the symptom wakes you up, the cause offers a hint.
An example of a rule that "wakes you up right"
groups:
- name: user-facing
rules:
- alert: HighErrorRate
expr: |
sum by (service) (rate(http_requests_total{code=~"5.."}[5m]))
/ sum by (service) (rate(http_requests_total[5m])) > 0.05
for: 10m # burn for 10 minutes - or is it an outlier?
labels:
severity: critical
annotations:
summary: "Errors above 5% of requests"
description: "Check recent deploys, dependency health"
runbook_url: "https://wiki.internal/runbooks/high-error-rate"
Every field has a purpose: for filters out single outliers, runbook_url is a mandatory attribute — a rule without a runbook link is either "nothing" or "a 3 a.m. call to the author".
Quarterly: the alerting system's own metrics
| Metric | How to measure | Healthy picture |
|---|---|---|
| Share "closed without action" | review all firings over the period | below one third |
| Signal/noise ratio | useful alerts vs noise per one shift | close to 90/10 |
| Reaction time for critical | from firing to first ack | minutes, not hours |
| Duplicates per incident | how many alerts arrived about one problem | one or two |
If the "closed without action" share is above a third, the rules are about the wrong things: time to sharpen the threshold, lower the severity, or honestly delete the rule.
Channel maturity
- Silence is a tool. Planned maintenance is silenced by window and source, not "we'll ignore it by hand".
- Routing by severity: critical — phone/pager, warning — team chat, info — dashboard only. Mixing channels into one flow brings noise back into every channel.
- An alert retrospective is part of the postmortem: which rules fired, which stayed silent, which screamed for nothing. That's the investment into the next quarter.
The silence of a monitoring system is also a signal: it means the rules and the system have reached an agreement. And an on-call engineer who wakes up from every "percentage" graph — that is no longer observability, it's an imitation of it.
When alerts lead to no actions: a working review
Once a quarter, for every "fired in vain" I ask three questions and pick an action:
| Diagnosis | Example | Treatment |
|---|---|---|
| Threshold too sensitive | "disk > 80%" on a volatile partition | raise the threshold or switch to predict_linear |
| A symptom, not a warning | "CPU 95%" during a compute job | lower the severity, move to a dashboard |
| A duplicate | the same thing worded differently | delete, keeping the most informative one |
| An "informational" alert in a critical channel | backup finished successfully | move to a report channel; success is not an alert |
| Nobody remembers why the rule exists | the author has left, the description is empty | delete; resurrect via git if someone remembers |
The key word is "working": the review takes not three days of retro but one hour with a table of the rules that fired. Without such reviews, hygiene turns into legend.
How to roll out new rules without the millimetre game
- First week — severity: none / info channel: the rule lives on, writes to a quiet channel, statistics accumulate.
- A look at the statistics: how many firings, whether all of them were justified. A "more than 10% in vain" threshold means the rule isn't ready to wake anyone.
- Promotion to warning → critical based on that data: a deliberate decision, not "I guess we'll see".
This "staging for alerts" mode costs a minute of setup and saves the most expensive thing — the on-call engineers' trust in the paging channels.