Learn Labs
Rules, Alerting & SLOs

Self-test

Check your understanding of rules, alerting, and SLOs

Self-test12 questions

—/12
  1. Give three reasons to create a recording rule. Decode the name job_route:http_request_duration_seconds:p99_rate5m.

  2. You added a recording rule and swapped it into a dashboard. The panel is empty for everything before today. Why?

  3. What determines how many alerts one alerting rule produces?

  4. An error rate hovers just above and below the threshold. The alert with for: 5m never fires. Why, and what are two fixes?

  5. Why must $value never appear in an alert's labels?

  6. What problem does the Watchdog alert solve, and where must its notifications go for it to work?

  7. Walk an alert with severity="critical" through this stack's routing tree. Which receiver gets it, with what group_wait and repeat_interval?

  8. What's the difference between a silence and an inhibition? Give a good use for each.

  9. Define SLI, SLO, error budget, and burn rate. What burn rate does a 2% error ratio give against a 99.5% SLO?

  10. In a multi-window burn-rate alert, what does the long window do, and what does the short window do?

  11. When would you choose a Grafana-managed alert over a Prometheus rule? When would you not?

  12. Design question

    Design the full alerting setup for a payments API: SLIs, SLOs, which alerts page and which create tickets, routing by team, and how you'd test all of it in CI.