What are recording rules and why use them?
⚡
Quick Answer
Precomputed queries saved as new time series, run on a schedule to speed up dashboards and alerts.
Detailed Answer
Expensive or frequently-used PromQL (e.g. a p99 across many series) can be precomputed into a recording rule (naming convention level:metric:operation). Dashboards then read the cheap precomputed series instead of recomputing on every load, cutting query load dramatically.
💡
Interview Tip
Mention the level:metric:operation naming convention.
prometheusrecording-rulesperformance