Skip to content

promtool: parse extended range selectors #17922

@isker

Description

@isker

Proposal

Promtool does not support promql-extended-range-selectors, so it can't check rules files using the new syntax:

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions