2 — Recording Rule Cookbook
Purpose
[stub: recording-rule-cookbook]
This book’s source material only yields one set of recording-rule worked examples (memory/
filesystem free-percent, the level:metric_name:operations naming-convention pair, and the
job-grouped layout), and that set is already the teaching example in
Advanced PromQL. Turning it into a second “cookbook” chapter here would just be
the same YAML pasted twice under a different heading — not a real cookbook. This stays a stub until
a genuinely distinct set of recording-rule patterns exists to collect.
Metadata
| Author | Amit Singh |
| Scope | prometheus |
Local graph
Related notes
6 — Common Anti-Patterns
Three concrete Prometheus anti-patterns seen in this book's source material — high-cardinality labels, invalid/reserved metric naming, and misaligned histogram_quantile buckets — with why each one breaks and where to read the full explanation.
4 — Exporter Catalog
A lookup table of exporters covered in this book — key metrics, metric types, and what each metric tells you — for the two exporters with real worked examples in the source material.
5 — Prometheus Configuration Reference
A field-by-field reference for prometheus.yml — global settings, scrape_configs options, and worked examples pulled from real multi-job configurations.
1 — PromQL Cheat Sheet
A grouped, copy-paste reference of node_exporter PromQL queries for CPU, memory, disk, network, swap, inode, and TCP socket questions.