range vector
A PromQL selection of every sample in a time window for each series, written with a duration in square brackets such as [5m].
In more detail
Functions such as rate and increase need a range vector, because they look at how a counter changed across the window. You cannot graph a range vector directly; you pass it to a function first.
Example
http_requests_total[5m]Related terms
- instant vector — A PromQL result holding one current value for each matching series, with that series' labels kept beside it.
- rate() — The PromQL function that turns a counter into its average increase per second over a time window, handling restarts.
- time window — The stretch of time a query or objective looks across, such as the last 5 minutes or 30 days.
Taught in
- PromQL Basics And Selectors — Full-Stack Observability: Metrics, Tracing & Logging
- Rates And Increases Over Time — Full-Stack Observability: Metrics, Tracing & Logging
- Ninety Minutes, No Question Count: Exam Strategy — Prometheus Certified Associate (PCA) Exam Prep
- The Server That Would Not Die: Selecting Data — Prometheus Certified Associate (PCA) Exam Prep
- Fifteen Requests Nobody Saw: Aggregating Over Time — Prometheus Certified Associate (PCA) Exam Prep
- PromQL Sprint: Ten Queries At Minute Twenty Two — Prometheus Certified Associate (PCA) Exam Prep