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

Make filter labels consistent with Prometheus #2403

Merged
merged 2 commits into from
Nov 6, 2020

Conversation

vears91
Copy link
Contributor

@vears91 vears91 commented Oct 26, 2020

Filtering the alert out when the label is missing precludes a
possible match for an empty value. This change allows the
match to be evaluated.

Closes #2342

Signed-off-by: Victor Araujo vear91@gmail.com

Filtering the alert out when the label is missing precludes a
possible match for an empty value. This change allows the
match to be evaluated.

Closes prometheus#2342

Signed-off-by: Victor Araujo <vear91@gmail.com>
Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you add tests for this? At least for api/v2, api/v1 being deprecated I'd be ok without it.

@vears91 vears91 force-pushed the issue-2342 branch 4 times, most recently from ce59eb4 to 1027f78 Compare October 30, 2020 15:05
Signed-off-by: Victor Araujo <vear91@gmail.com>
@vears91
Copy link
Contributor Author

vears91 commented Oct 30, 2020

Added tests 👍

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@simonpasquier simonpasquier merged commit 846c04e into prometheus:master Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing and empty label queries act differently to Prometheus
2 participants