Alerting on user symptoms, not infrastructure noise
Why alerting on CPU wakes people up for nothing, how to write alerts based on the symptoms users feel (latency, errors, business metrics), when a cause deserves an alert, and how to keep Alertmanager clean.
Observability$ amtool check-config alertmanager.yml▍Three in the morning. The phone rings: “CPU above 85% on node ip-10-0-3-15”. The on-call engineer opens the laptop and sees that the autoscaler has already added a node, latency is normal, and no customer was affected. Back to sleep, and the next time the same alert fires, it’ll take a little longer to look at it.
That’s the real cost of bad alerts: alert fatigue. When most alerts don’t require action, people stop trusting them, and the important alert gets lost in the noise.
Symptom versus cause
- Symptom: something the user feels. Checkout is slow, login returns an error, orders have stopped coming in.
- Cause: something that may lead to a symptom. High CPU, high memory, a restarted pod, a lagging database replica.
Modern systems are built to tolerate causes: autoscaling, replicas, retries, failover. CPU at 90% may simply be efficiency. That’s why the rule is:
Wake people up for symptoms. Investigate causes in dashboards and tickets.
The signals that represent the user
The four golden signals (latency, traffic, errors, and saturation) and the RED method (rate, errors, duration) are the starting point. Measure them as close to the user as possible: at the load balancer, the API gateway, or the ingress, not just inside each service.
Errors and latency via SLOs
The most mature way to alert on symptoms is the error budget burn rate, covered in detail in the article on SLO culture. It already combines “how bad” with “for how long” and only fires when the business objective is at risk.
Latency directly
When no SLO has been defined yet, a percentile-based latency alert using the HTTP metric from the OpenTelemetry conventions:
groups:
- name: checkout-symptoms
rules:
- alert: CheckoutHighLatency
expr: |
histogram_quantile(0.99,
sum by (le) (rate(http_server_request_duration_seconds_bucket{service_name="checkout"}[5m]))
) > 1.5
for: 10m
labels:
severity: page
team: payments
annotations:
summary: "Checkout p99 above 1.5 s for 10 minutes"
runbook_url: "https://wiki.example.com/runbooks/checkout-latency"
The for: 10m avoids alerting on spikes lasting a few seconds. The severity and team labels define who gets notified and how.
Business symptoms
Some of the most important symptoms aren’t technical. A drop in orders compared with the same time the previous week:
- alert: OrdersDrop
expr: |
sum(rate(orders_completed_total[15m]))
< 0.6 * sum(rate(orders_completed_total[15m] offset 1w))
for: 15m
labels:
severity: page
team: payments
annotations:
summary: "Completed orders 40% below last week"
This alert catches silent failures (the button that disappeared, the integration that accepts but doesn’t process) that no infrastructure alert would see.
Synthetic checks
For critical flows with little traffic (or in the middle of the night), synthetic tests simulate the user continuously: the Prometheus Blackbox Exporter for simple HTTP checks, or browser scripts (k6 browser, Playwright) for complete journeys such as login and checkout.
When a cause deserves an alert
Some causes justify an alert because they will inevitably turn into a symptom, and there’s still time to act. The key is to predict, not to react to a fixed threshold:
- alert: DiskWillFillIn4h
expr: |
predict_linear(node_filesystem_avail_bytes{fstype!~"tmpfs|overlay"}[6h], 4 * 3600) < 0
for: 30m
labels:
severity: ticket
annotations:
summary: "Disk {{ $labels.mountpoint }} on {{ $labels.instance }} is expected to fill up in less than 4 hours"
Other examples: a certificate expiring in 14 days, a queue growing nonstop, a dependency’s error budget running out. In general, these become a ticket, not a page.
Every page has to pass the test
Before creating an alert that wakes someone up, answer:
- Is it urgent? If it can wait until tomorrow, it’s a ticket.
- Is it actionable? Is there something the person can do right now? If not, it belongs on a dashboard.
- Does it affect users (or will it soon)?
- Does it have a runbook with the first steps?
- Does it have a clear owner?
If the answer to any of them is “no”, it’s not a page.
Alertmanager: group, inhibit, and route
A major failure generates dozens of alerts at the same time. Alertmanager turns that into one useful notification:
route:
receiver: platform-oncall
group_by: [alertname, cluster, service]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
routes:
- matchers: [severity="page", team="payments"]
receiver: payments-oncall
- matchers: [severity="ticket"]
receiver: ticket-queue
inhibit_rules:
- source_matchers: [alertname="ClusterUnavailable"]
target_matchers: [severity="page"]
equal: [cluster]
- Grouping: alerts from the same service arrive together.
- Inhibition: if the whole cluster is down, the 40 service alerts from that cluster stay silent; there’s only one problem.
- Routing: each team receives its own alerts; tickets go to a queue, not to someone’s phone.
Ongoing hygiene
Alerts rot. Review them every month:
- How many pages per on-call week? How many outside business hours?
- What percentage required action? Alerts that never lead to action should be removed or downgraded.
- Was any incident not detected by an alert? A symptom is missing.
- Are the runbooks still correct?
A good health indicator: few pages per on-call shift, almost all of them actionable, and most incidents detected before a customer reports them.
Checklist
- Pages based on symptoms (SLO, latency, errors, business metrics)
- Causes in dashboards or tickets, with predictive alerts where it makes sense
- Synthetic checks on critical journeys
- Every page with an owner, severity, and runbook
- Grouping, inhibition, and per-team routing in Alertmanager
- Monthly review of noise and non-actionable alerts
- Tracking of incidents detected by alerts versus by customers
A good alert wakes the right person, for the right reason, with the first step already written down. Everything else is noise.