Skip to content
New issue

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

validate that an expressions uses metric name #33

Closed
tizki opened this issue Nov 23, 2023 · 1 comment · Fixed by #36
Closed

validate that an expressions uses metric name #33

tizki opened this issue Nov 23, 2023 · 1 comment · Fixed by #36
Labels
enhancement New feature or request

Comments

@tizki
Copy link
Contributor

tizki commented Nov 23, 2023

very nice project!
I want to be able to validate the the expressions of alerting rules use metric name (to avoid getting results from ALERT / ALERTS_FOR_STATE for example).
is it possible to do it with the existing validators? if not, any chance it can be added?
Thanks!

@FUSAKLA FUSAKLA added the enhancement New feature or request label Nov 23, 2023
@FUSAKLA
Copy link
Owner

FUSAKLA commented Nov 23, 2023

Hi and thank you!

Unfortunately current validators cannot test that, but it should be quite easy to add such validator and sounds reasonable to me 👍

I'll take a look at it when I find a free while, or feel free to send PR if you want to speed things up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants