Use it when on-call is overloaded or alerts are ignored.
Alert Design and Fatigue
Alert design: alert on user-impacting symptoms with clear severity, an owner and a runbook; alert fatigue comes from noisy, unactionable or duplicate alerts.
1. Most frequent alerts: topk(10, sum by (alertname)(changes(ALERTS{alertstate="firing"}[7d]))).
2. Actionable? runbook?
3. Severity: page vs ticket.
4. Deduplicate/inhibit.
5. Review regularly.
signal → rule → page/ticket → action → review
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Track the share of actionable pages. Remove alerts nobody acts on.
Step 2 Common failures Narrow the fault
Alerting on CPU above 80% pages for normal load spikes. Alerts without for: fire on brief blips. Duplicate alerts for the same failure from several layers flood on-call.
Each page must be urgent, actionable and real. Remove or downgrade alerts nobody acts on. Track alerts per week and false positives.
topk(10, sum by (alertname)(changes(ALERTS{alertstate="firing"}[7d])))— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
ReferenceWhat it is1 section · depth on demand
How it works
Alerts are rules over metrics or logs with thresholds and durations. Severity labels decide routing. Regular reviews remove or tune noisy rules.
ReferenceImportant terms & boundaries4 sections · depth on demand
Designing good alerts
- Alert on symptoms users feel (SLO burn, error rate, latency), not every cause (CPU 80 %).
- Every page must be actionable and have a runbook link.
- Separate pages (wake someone) from tickets (fix during work hours).
- Review alerts monthly: delete or tune those that were ignored or auto-resolved.
- Track pages per on-call shift; more than a few per night causes fatigue and missed real incidents.
In depth
Tests for every paging alert
| Question | If "no" |
|---|---|
| Is a user affected now, or will be soon? | Make it a ticket or a dashboard panel |
| Can the person paged do something about it? | Route to the team who can, or remove |
| Does it need action within minutes? | Ticket, not page |
| Is there a runbook link in the alert? | Write one before enabling the page |
| Did it fire in the last quarter, and was it useful? | Review: tune or delete |
Symptoms over causes
Page on what users feel: error ratio, latency, SLO burn rate, a queue that will not drain. Causes (CPU 85 %, one pod restarting, one disk at 80 %) go to dashboards and tickets — they are often harmless and, when they matter, the symptom alert fires anyway.
Making alerts robust
- alert: CheckoutHighErrorRatio
expr: job:http_request_errors:ratio_rate5m{job="checkout"} > 0.05
for: 10m
labels: { severity: page, team: payments }
annotations:
summary: "Checkout error ratio {{ $value | humanizePercentage }}"
runbook_url: https://wiki.example.com/runbooks/checkout-errors
dashboard: https://grafana.example.com/d/checkout
for:avoids paging on a single bad scrape or a brief blip.- Ratios, not absolute counts — 50 errors per minute means different things at 100 and at 100,000 requests.
- Guard against low traffic:
and sum(rate(http_requests_total{job="checkout"}[5m])) > 1. - Alert on absence separately:
absent(up{job="checkout"})orup == 0, otherwise a dead target makes every expression quietly return nothing.
Measuring fatigue
Track pages per on-call shift, the share that led to action, and pages outside working hours. A common target is no more than a couple of actionable pages per shift; anything that fires and is acknowledged without action is a candidate for deletion.
Example alert
- alert: HighErrorBudgetBurn
expr: (sum(rate(http_requests_total{code=~"5.."}[1h])) / sum(rate(http_requests_total[1h]))) > (14.4 * 0.001)
for: 2m
labels: { severity: page }
annotations:
summary: "Checkout burning error budget 14x"
runbook_url: https://runbooks.example/checkout-errors
Documented example, not captured output. Page on symptoms users feel; route causes (disk, CPU) to tickets.
Common mistakes
- Alerts without action or owner.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.