Skip to content

Make filter labels consistent with Prometheus#2403

Merged
simonpasquier merged 2 commits into
prometheus:masterfrom
vears91:issue-2342
Nov 6, 2020
Merged

Make filter labels consistent with Prometheus#2403
simonpasquier merged 2 commits into
prometheus:masterfrom
vears91:issue-2342

Conversation

@vears91
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

vears91 commented Oct 30, 2020

Added tests 👍

Copy link
Copy Markdown
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