mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-12 11:21:18 +01:00
Namely promql-duration-expr and promql-extended-range-selectors. This allows promtool to e.g. check rules files using syntax gated by these features. Signed-off-by: Ian Kerins <git@isk.haus>
11 lines
365 B
YAML
11 lines
365 B
YAML
groups:
|
|
- name: features
|
|
rules:
|
|
# We don't expect anything from these, just want to check the syntax parses.
|
|
- record: promql-experimental-functions
|
|
expr: sort_by_label(up, "instance")
|
|
- record: promql-duration-expr
|
|
expr: rate(up[1m * 2])
|
|
- record: promql-extended-range-selectors
|
|
expr: rate(up[1m] anchored)
|