Monitoring That Doesn't Wake You at 3 a.m.: SLO-Based Alerting in Grafana

It's 03:14. My phone goes off with that all-too-familiar on-call app tone: "node-14 CPU utilization > 85%". I get out of bed and open my laptop. The HPA has already added two pods, the latency graphs are flat, the error rate is scraping zero, and not a single user has noticed anything. I silence the alert and go back to bed, but sleep is gone. The next morning, out of curiosity, I counted: over the last thirty days we had generated 1,240 alerts, 41 of them had woken the on-call engineer at night, and only three of those actually required human intervention. Seven percent. Ninety-three times out of a hundred we were breaking our on-call engineers' sleep for nothing, and sleep wasn't the only price we paid.

The Real Fire Lost in the Noise

We paid that price the hard way one Friday night. Our payment error rate sat at 2.1% for 40 minutes; normally it's three in a thousand. There was an alert, but its threshold was set at 5%, because lower thresholds "fired too much." While the on-call engineer was wrestling with four separate disk and CPU alerts that same night, we only saw the real bleeding the next morning in the business continuity report: the GMV of the payments that failed to complete in those 40 minutes ran to seven figures. Alert fatigue isn't an abstract concept; it's the real wolf strolling freely through a village full of boys crying wolf. That week we decided to overhaul our monitoring philosophy from the ground up: we would stop measuring the machines' fever and start measuring the users' pain.

How Many Minutes Are We Allowed to Be Bad?

The first step was defining an SLI for every critical user journey. For checkout, "successfully completed payment requests / all payment requests"; for search, "the share of queries returning in under 300 milliseconds"; for order tracking, the share of page loads without errors. Then we gave each SLI a target: 99.9% for checkout success. The mathematical shadow of that target is the error budget: roughly 43 minutes a month of "permission to be bad." The strongest part of this framework is that it puts numbers on the negotiation between engineering and product. While the budget is healthy, nobody opens a debate about freezing features; when the budget melts away, the "this sprint is a reliability sprint" decision is made on numbers, not feelings.

Every critical journey gets an SLI, and every SLI gets an SLO target; the target translates into a monthly error budget.
When the budget melts away, the reliability sprint decision is made on numbers.

I should also say that defining an SLI looks like a five-minute job on paper and in practice sparks weeks of debate. What does "successful payment request" mean? If a user's card is declined for insufficient funds, that's not our fault; do we drop it from the denominator, or keep it there and count it as an "expected error"? Where do we take the measurement from? If the application reports its own success, it can't see the worst-case scenarios where it can't respond at all; that's why we compute critical SLIs from load balancer logs, the point closest to the user. Then there's ownership: every SLO has to have exactly one owning team, otherwise when the budget melts, everyone looks at their neighbor. All of these debates were exhausting, and all of them turned out to be more valuable than the alerts themselves, because for the first time the teams wrote down an answer to the question "what does it mean for our service to be healthy?"

Burn Rate: The Two-Window Watchman

On the alerting side, the magic concept is burn rate: how fast you're consuming the budget. If your error rate sits exactly at the SLO limit, the burn rate is 1 and the budget runs out at the end of the month; at a burn rate of 14.4, a 43-minute budget turns to ash in two hours. We built the multi-window, multi-burn-rate pattern from the Google SRE workbook using Prometheus recording rules and Grafana alerting: if the burn rate over the last 1 hour AND the last 5 minutes exceeds 14.4, it's a page; if the last 6 hours and 30 minutes exceed 6, it's also a page; if the last 3 days and 6 hours exceed 1, it's just a ticket to look at during business hours. The short window lets the alert clear quickly, and the long window keeps a single burst of requests from getting the on-call engineer out of bed. Recording rules are critical; if you try to compute burn rate at query time, you'll both wear out Prometheus and slow down alert evaluation. We keep five precomputed series for each SLI, and the alert rules evaluate on top of those series in milliseconds.

Long and short windows are evaluated together; a fast burn produces a page, a slow burn produces a ticket, and the math runs in recording rules.
The short window ensures a fast recovery; the long window prevents false alarms.

Where Did the CPU Alerts Go?

The decision that met the most resistance was this: we took almost all cause-based alerts (CPU, memory, disk, pod restarts, Kafka lag) out of paging. We didn't delete them; they all live on dashboards, one click away for diagnosis during an incident. But the phone now rings only for symptoms: is the user feeling pain, or about to? The team raised a fair objection: "If the disk fills up, by the time the user feels the pain it's too late." True; that's why we set up predictive alerts for exhaustion-type metrics: "disk trending to fill within 4 hours" is a page, "disk at 80%" is not. The difference is that the alert carries a call to action: a person woken at three in the morning should be able to read what to do from the alert's name.

Cause alerts moved to dashboards; the phone rings only for symptoms, and exhaustion metrics use predictive alerts.
A person woken at three in the morning should be able to read what to do from the alert's name.

We took that sentence seriously and attached a runbook to every page: the alert notification includes links to the relevant dashboard, a list of likely causes and the first three diagnostic commands. We also started a weekly ritual: every Monday, in a 30-minute alert review, every page from the previous week is put on the table one by one. Every page that didn't lead to action gets one of three outcomes: fix the threshold, downgrade it to a ticket, or delete it entirely. An alert kept alive "in case we need it" now counts as technical debt for us. In the first months, every week's meeting produced five or six deletions; these days the agenda is empty most weeks, and an empty agenda is the quietest proof that the system is healthy.

The On-Call Log, Six Months Later

Here's how the numbers changed: total monthly alerts fell from 1,240 to 214, and night pages from 41 to 5, while the rate of real action per page rose from 7% to 74%. An incident like the one we missed that Friday night happened again, and this time the 1-hour + 5-minute window caught it in the fourth minute; the response took 11 minutes instead of 40. In our on-call survey, the answer "my on-call rotation seriously affects my sleep" dropped from 61% to 18%. Don't mistake that for a vanity metric: on-call quality translates directly into MTTR. One side effect we didn't expect showed up on the management side: the error budget dashboards became the first reliability language that non-technical stakeholders could read, too. "Checkout has eaten 60% of its budget this month" tells a manager what "p99 latency went up" never could; capacity and prioritization discussions now happen in front of these dashboards. I'll admit we're still not perfect: old-school threshold alerts live on in internal services without defined SLOs, and we add another SLI every quarter. We also got the burn rate thresholds wrong in their first versions: during low-traffic night hours, two or three errors in a sample of a few hundred requests pinned the 5-minute burn rate to the ceiling and once got the on-call engineer up for nothing. The fix was adding a minimum request volume condition to the short-window rule; statistics love to shout when the sample is small, and an alerting system shouldn't.

The essence of this transformation is cultural, not technical: an alert doesn't mean "a metric crossed a threshold," it means "something is happening that a human needs to wake up for right now." Any monitoring system that can't tell those two apart will sooner or later stay silent during its most expensive incident. If you take inventory of your own alerts and answer the question "how many pages did we get last month, and how many led to action?", you'll probably find a picture similar to ours; if you'd like to talk about how to clean it up, write to us via the contact page. Only those whose phones once rang at three in the morning know the value of a phone that doesn't.