Visually compose Prometheus queries — pick metrics, label matchers, range vectors, rate functions, aggregations, and histogram quantiles
Label matchers: = equal, != not equal, =~ regex match, !~ regex not match.
Range vector: metric[5m] — last 5 minutes of samples. Used with rate-like functions.
rate() vs irate(): rate() is a per-second average over the window; irate() uses only the last two points — more reactive, noisier.
histogram_quantile: histogram_quantile(0.95, sum by (le) (rate(my_bucket[5m]))) — p95 latency from a histogram.
Aggregation: sum by (job) (...) collapses all labels except the ones listed.