-
Notifications
You must be signed in to change notification settings - Fork 10.3k
promtool: parse extended range selectors #17922
Copy link
Copy link
Closed
Description
Proposal
Promtool does not support promql-extended-range-selectors, so it can't check rules files using the new syntax:
prometheus/cmd/promtool/main.go
Lines 347 to 360 in 2437977
| for _, f := range *featureList { | |
| for o := range strings.SplitSeq(f, ",") { | |
| switch o { | |
| case "promql-experimental-functions": | |
| parser.EnableExperimentalFunctions = true | |
| case "promql-delayed-name-removal": | |
| promqlEnableDelayedNameRemoval = true | |
| case "": | |
| continue | |
| default: | |
| fmt.Printf(" WARNING: Unknown feature passed to --enable-feature: %s", o) | |
| } | |
| } | |
| } |
Looks like it could also use support for promql-duration-expr, but I can't personally vouch for that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels