Self-test
Check your understanding of rules, alerting, and SLOs
Self-test12 questions
Give three reasons to create a recording rule. Decode the name
job_route:http_request_duration_seconds:p99_rate5m.You added a recording rule and swapped it into a dashboard. The panel is empty for everything before today. Why?
What determines how many alerts one alerting rule produces?
An error rate hovers just above and below the threshold. The alert with
for: 5mnever fires. Why, and what are two fixes?Why must
$valuenever appear in an alert's labels?What problem does the
Watchdogalert solve, and where must its notifications go for it to work?Walk an alert with
severity="critical"through this stack's routing tree. Which receiver gets it, with whatgroup_waitandrepeat_interval?What's the difference between a silence and an inhibition? Give a good use for each.
Define SLI, SLO, error budget, and burn rate. What burn rate does a 2% error ratio give against a 99.5% SLO?
In a multi-window burn-rate alert, what does the long window do, and what does the short window do?
When would you choose a Grafana-managed alert over a Prometheus rule? When would you not?
- 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.