In this lesson · topic 4 of 7
Topic 4
When the page is late, noisy or stuck open
6 min read
A seeded simulator run produced the numbers below, and tests in the repository keep them fixed. Hover one to see how it was set up.
A sharp outage is easy
A ten-minute total outage on day 8measured is caught by all three rules within minutes. The multi-window rule fired 1 minutemeasured after the start, with 2.3%measured of the budget gone. A total failure is a huge burn rate, so any sensible rule sees it. Do not pick an alerting scheme from how it handles the case that every scheme handles.
Noise separates the rules
Eight short bursts of errors, each three minutes long, are spread over the month. They cost almost nothing, a tiny share of the budget each. The threshold alert, set at 1 percent errors over five minutes, raised 8measured false alerts, one for every burst. The single-window burn-rate alert, with an hour window, raised 0measured. The multi-window rule raised 0measured.
Shorten the single window to five minutes and it raises 8measured false alerts, as often as the threshold alert. The window length is what separates them. A window too short to average away a blip is a threshold alert by another name.
The slow burn is hard
At twice the budget rate for six days the error ratio never gets close to the threshold alert’s line, and the hour-long window never sees a burn rate near its limit. Neither of them fires during the slow burn. They miss it. The multi-window rule did notice, by way of its slowest pair, 1.3 daysmeasured after the burn began. By then 9%measured of the whole budget had been spent. At twice the budget rate the whole month’s budget is gone in 15 days, yet no single day looks urgent, so a rule has to wait for enough evidence.
You can catch it sooner by lowering a line, and the lab shows the price. A threshold alert at 0.2 percent noticed the slow burn within 9 minutesmeasured, and fired 22measured times over the month, against 9measured at 1 percent. A single window at twice the budget rate fired 58measured times. Early detection and quiet pull in opposite directions, and the multi-window rule is a way to buy some of both.
Alerts that will not clear
The hour-long single window fired once for the outage and stayed open for 68 minutesmeasured, long after the service was healthy again. The threshold alert closed after 13 minutesmeasured. The multi-window alert stayed open for 6.1 hoursmeasured. That is the ticket-level pair at work, whose short window is six hours long. A ticket staying open for hours is fine. A page doing so is not, which is why the table in the previous topic sends only the faster pairs to a pager.
An outage that spends it all
Raise the outage to an hour and the budget left at the end of the month is -92%measured, which means the month spent more than the whole budget. The objective is missed, whatever the alerts did. Alerts cannot recover a budget. They only shorten the part you spend while you look.
What steady traffic hides
Traffic here is steady, so a minute of errors is always a fixed share of requests. A service with little or spiky traffic has noisy ratios, so a few failed requests in a quiet hour look like a huge burn rate. The Workbook discusses ways to cope, such as generating artificial traffic and combining small services for monitoring. The model also has one kind of error, while a real service has latency objectives, several customers with different experiences, and dependencies that fail together. Finally, each alert here is a single rule, while in practice pages are grouped, routed and silenced by other tools. Use the lab to see how the windows behave, not to size your own thresholds.