Vendor Sheet
PromQL Cheatsheet
The PromQL cheatsheet explains Prometheus’ multidimensional metrics model and how to query time series using selectors, label matchers, range vectors, and the offset modifier. It summarizes core PromQL building blocks: math functions (for example log and round), clamping, timestamps and date functions, and aggregators like sum, count, min/max, avg, topk/bottomk, with by/without for label control. It covers binary and set operators, matching rules with on and ignoring, and many-to-one joins using group_left or group_right. For counters and gauges it highlights rate, increase, irate, resets, and time-aggregation functions like avg_over_time and quantile_over_time, plus subqueries, histogram_quantile usage, handling missing data with absent, bool vs filtering comparisons, and label manipulati
