PromQL Fundamentals
Instant vector — current value of a metric:
http_requests_total{status="200", method="GET"}
Range vector — values over a time window (used with functions):
http_requests_total[5m]
rate() — per-second rate of increase over the window:
rate(http_requests_total[5m])
irate() — rate based on the last two data points only (more responsive):
irate(http_requests_total[1m])