mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 17:58:05 -05:00
QueryMetrics over a range, GET and POST /api/v1/query_range: the query evaluated at each step from start to end, both included, answered as a matrix in order of the series' labels, a scalar as a series with no labels. Parameters are checked in the order and with the messages of Prometheus 3.0's API (start, end, end before start, step as seconds or a duration, zero or negative step, 11,000 points per series), then against the guide's 30-day range. A range query and a subquery share one step evaluator, and a range query's result keeps its memory charge as an instant query's does. The guide's per-account concurrency limits now apply to every PromQL endpoint: 30 query and 30 discovery requests of an account at once, one past that refused with a 429. A query's parse and type errors now carry Prometheus's `invalid parameter "query": ` prefix on both query endpoints. Folds in two leftovers of the Jackson 3 move: PromQlSeries uses stringNode, and OtlpMetricsDecoder no longer catches an IOException nothing throws. Part of #7030.