Recording Rules: The Pattern for Fast Dashboards
Recording rules pre-compute. The pattern, the trade-offs, and the dashboards that get instant instead of slow.
The idea
Common queries are pre-computed and stored as new time series. Dashboards query the pre-computed series, not the raw.
Trade compute time at write for query time at read.
When it pays
Queries that take >1 second to render. Dashboards loaded multiple times per day.
Heavy aggregations across many series. The pre-computation amortises across reads.
Limits
Pre-computed series add cardinality. Watch the budget.
Recording rules need maintenance. Stale rules accumulate; quarterly audit.