Prometheus Rules And Promql Pitfalls

Use when PromQL, a Prometheus recording rule or an alerting rule is written, reviewed or debugged, especially when an alert never fires, fires after a restart or a query returns nothing: rate on counters and gauges, the range versus the scrape interval, rate before sum, ratios and averages across series, histogram versus summary quantiles, vector matching and labels removed by an aggregation, anchored regexp matchers, recording-rule and metric naming, absent and for, batch-job and metamonitoring alerts, and linting rules with pint.

techmefr Updated

File contents

techmefr/mentis commit dbad132737

Frequently asked questions

npx get-skill add techmefr/prometheus-rules-and-promql-pitfalls