We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use loki-promql as datasource for alerts. For loki query like sum(count_over_time({app="myapp"}[5m]|="NEVER")) is valid.
sum(count_over_time({app="myapp"}[5m]|="NEVER"))
Grafana works with it fine.
When I add it to vmalert like:
groups: - name: myapp rules: - alert: import never logs count for: 1m expr: sum(count_over_time({app="myapp"}[5m]|="NEVER"))>1 labels: app : myapp reason : never
I am getting:
invalid expression for rule "never logs count": cannot recognize "|=\"NEVER\"))>1"; unparsed data: "]|=\"NEVER\"))>1"
I'd like to have query validation as optional thing, it will allow me to use loki's promql.
The text was updated successfully, but these errors were encountered:
Hi @korjavin ! Flag for disabling expressions validation was added in ffa75c4
You can verify it by building vmalert from sources. The change will be also included in next release.
vmalert
Sorry, something went wrong.
vmalert supports disabling rule expression validation starting from v1.37.1. Closing the feature request as done.
vmgateway: add support of JWKS endpoint usage for JWT keys verificati…
9d91d8f
…on (#521)
8a35dc6
No branches or pull requests
I use loki-promql as datasource for alerts.
For loki query like
sum(count_over_time({app="myapp"}[5m]|="NEVER"))
is valid.
Grafana works with it fine.
When I add it to vmalert like:
I am getting:
I'd like to have query validation as optional thing, it will allow me to use loki's promql.
The text was updated successfully, but these errors were encountered: