1. Designing alerts #
Fewer, but better.
Principles #
- Alert on symptoms seen by the user (errors, latency, saturation), ideally based on SLOs.
- Three severities at most:
critical(wakes people up),warning(business hours),info(no notification). - A
teamlabel on every alert, arunbook_urlon every critical alert. - A
forof at least a few minutes to avoid noise. - Rules tested with
promtool test rulesin CI.
2. Routing and reducing noise #
The right message to the right person.
Settings #
group_byon alertname and cluster (or service), never on instance for fleet alerts.- Inhibitions for cascading failures (unreachable cluster, node down).
mute_time_intervalsfor warnings at night and on weekends.- Short, targeted, commented silences.
- Secrets in files (
*_file), configuration validated byamtool check-configin CI.
3. Alerting reliability #
Alerting is a critical service.
Checklist #
- A cluster of 2 or 3 Alertmanagers, Prometheus configured to send to all members.
- Watchdog to an external dead man's switch.
- Alert on
alertmanager_notifications_failed_total. - Weekly review: rate of actionable alerts, noisiest alerts, alerts that never fire.
Reference diagram and quick check #
Before going to production.
Check #
- Each team has its route and receiver
- Critical alerts go to the on-call tool
- Warnings are muted at night
- Watchdog in place
- Rules and routes tested in CI
- Runbooks reachable from the notification
