liveBook · Manning

Recording rule

A recording rule is a Prometheus rule that periodically evaluates an expression and stores its result as a new time-series metric.

How 2 Manning books explain it

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.

Read how ScyllaDB in Action explains recording rule →

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

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.