📋 Quick Templates
1. Metric
2. Label Filters
Tip: use =~ for regex match, !~ for regex exclusion
3. Function / Operation
4. PromQL Output
—
📚 PromQL Quick Reference
rate(metric[5m]) — per-second rate for counters (use for request counts, bytes)irate(metric[5m]) — instantaneous rate (more spiky, better for alerts)sum by(label) — aggregate across all time series, group by labeltopk(5, metric) — return the 5 highest-valued time seriesbottomk(5, metric) — return the 5 lowest-valued time serieshistogram_quantile(0.95, rate(...)) — P95 latency from histogram{label=~"regex"} — regex label match | {label!="val"} — exclusion
🛠️ More Developer Utilities
Browse all 14 free tools in the Developer Utilities collection — CIDR calculator, chmod helper, cron builder, K8s resource planner, CI cost estimator, and more.
Related Resources
Related Tools