-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add metric name validation #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks a lot for the contribution!
The code looks great, just a few nits and one thing about the error reporting, which could be a bit more user-friendly.
Also, may I ask also for documenting the validator here? 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
Thanks for all the work, and sorry for the comments, hope it didn't felt too much pedantic or unreasonable :)
I'll just wait for the CI pass and release it ASAP
supporting metric name validation in alerts for issues/33
it supports both cases of metric name
metric_name{job="foo"}
and
{name="metric_name", job="foo"}