Recording rule
A recording rule is a Prometheus rule that periodically evaluates an expression and stores its result as a new time-series metric.
ScyllaDB in Action
A recording rule is a named Prometheus expression that is evaluated and stored as a derived time-series value for convenient reuse.
- How it is used
- Provides reusable calculated metrics for Prometheus monitoring, Grafana dashboards, alerts, and application-specific visualizations.
- How deep it goes
- Explains recording rules as query shortcuts and demonstrates their latency use, but does not detail configuration syntax.
- Examples
- Uses summed read-latency totals, request counts, average latency, and rlatency95 as concrete examples.
- What you can do after
- Apply it via PromQL and Prometheus to reuse complex calculations in dashboards, alerts, and visualizations.
Cloud Observability in Action
A recording rule is a Prometheus rule that precomputes an expression and stores its result as a new time series.
- How it is used
- Improves Prometheus query performance by materializing frequently used or expensive expressions as reusable time series.
- How deep it goes
- Defines rule groups, evaluation intervals, record names, and expressions, but does not detail rule-engine internals.
- Examples
- Uses an API 5xx error-rate calculation and Pyrra-generated rules for a ho11y service SLO.
- What you can do after
- Apply it via Prometheus configuration to precompute an API error rate or SLO-related metric.
Read how Cloud Observability in Action explains recording rule →
Related concepts
- percentileproduces · A percentile is a value in an ordered distribution at or below which a specified proportion of observations falls.
- meanimplements · A mean is a measure of central tendency, calculated as the arithmetic average of values or, for a random variable, as the probability-weighted average of its possible values.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

