Interview Observability

What is an alerting rule, and how does it differ from a recording rule? [Basic]

Answer

An alerting rule evaluates a condition and creates an alert when the condition is true for the configured duration. A recording rule stores a query result for reuse; an alerting rule produces notifications through Alertmanager.

Technical explanation

Recording rules are about performance, standardization, and reusable derived metrics.

Alerting rules are about detecting actionable conditions and attaching labels and annotations.

A good pattern is to use recording rules for SLO math, then alerting rules for burn-rate thresholds.

Hands-on example

Example: record service:http_error_ratio:rate5m. Then alert: if service:http_error_ratio:rate5m > 0.02 for 10m, fire HighErrorRate with labels severity='page' and annotations pointing to the runbook and dashboard.

Preparing for an interview?

Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.

More Observability interview questions

← All Observability questions