prometheus/docs/command-line
Julien Pivotto 7370d62acf PromQL: allow arithmetic in durations in PromQL parser
Updated the parser to allow calculations in PromQL durations.

This enables durations in the form of:

  rate(http_requests_total[10m+2s])

The computation of the calculations is done directly at the parse level and does not hit the PromQL Engine.
The lexer has also been updated and improved, in particular for subqueries.

Buxfix: rate(http_requests_total[0]) is no longer allowed.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-04-03 10:56:02 +02:00
..
index.md Document command line tools 2023-03-13 14:20:55 +01:00
prometheus.md PromQL: allow arithmetic in durations in PromQL parser 2025-04-03 10:56:02 +02:00
promtool.md promtool: add --ignore-unknown-fields 2025-01-15 11:34:28 +02:00