Design alerting for a 99.95 percent SLO on a service with low and spiky traffic.
Sketch your own answer first, then compare it with the one below.
A strong answer
Start with why ratios fail here. With few requests, one failure is a huge error ratio and a huge burn rate. A rule written for steady traffic will page for single unlucky requests, and the quiet hours make the ratio meaningless.
Options in order of how often they are right: generate synthetic traffic from probes so there is always a signal to measure; combine small services into one SLO for monitoring; lengthen the windows so a few failures are diluted; or change the product so one failure matters less, such as client retries.
Choose the objective carefully too. A very high target on very low traffic leaves a budget of a handful of requests, so every failure is an incident. Decide whether that is what the business wants.
Then keep the structure: multiple burn rates with paired windows, with fast pairs paging and slow pairs filing tickets. Test the rules by replaying history, counting pages, false pages and time to detect. Throughout, alert on symptoms users feel, such as failed requests, and leave causes like CPU to dashboards.
Sources
- Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne (2018). The Site Reliability Workbook, chapter: Alerting on SLOs.