What is the naming convention for recording rules?

IntermediateConceptPromQL & Recording Rules
Answer

level:metric:operations:

  • level: the labels kept after aggregation (job, namespace_pod, cluster).
  • metric: the original metric name, with _total stripped when rated.
  • operations: what was applied, newest first (rate5m, ratio_rate5m, sum).

Example: namespace:container_cpu_usage_seconds:sum_rate5m. The name tells a reader exactly how the series was built without opening the rule file.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on PromQL & Recording Rules