Skip to main content

Query Metrics Over Time

GET 

/admin_api/v1/metrics/api/v1/query_range

Evaluates a PromQL expression at every step from start to end, as GET /api/v1/query_range does: start/end in RFC 3339 or unix seconds, step in seconds or a duration (5m, 1h, 1d). Answers come from the hourly and daily rollups, never from raw samples. A window of whole hours (or days) whose evaluation times fall on the hour (or day) is exact: increase(x[1h]) at hourly steps is the stored hour, increase(x[1d]) at daily steps the stored day. Any other window or step spreads each hour it cuts evenly over that hour, which is an estimate. rate is the increase over the range; avg_over_time is time-weighted. At most 11000 points per series.

Also accepts POST, with the same parameters in an application/x-www-form-urlencoded body, for requests too long for a URL.

Request​

Responses​

OK