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

Alerts should be relabelable #1744

Closed
brian-brazil opened this Issue Jun 15, 2016 · 8 comments

Comments

Projects
None yet
4 participants
@brian-brazil
Copy link
Member

brian-brazil commented Jun 15, 2016

Before sending alerts out you should have a chance to relabel them. Use cases include having a different external label on a HA pair that you want to strip so that the alertmanager will de-dupe them, and having alerts that are only used as part of ALERTS for other alerts and shouldn't be sent to the alertmanager.

Only labels would be relabelable, not annotations. ALERTS is not affected.

@aecolley

This comment has been minimized.

Copy link

aecolley commented Jul 14, 2016

What labels can prevent an alert from being sent to alertmanagers? I traced the path back from notifier's POST to sendAlerts in rules/manager.go but didn't find any label-related filtering.

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Jul 14, 2016

This issue is about implementing such support.

@brancz

This comment has been minimized.

Copy link
Member

brancz commented Sep 27, 2016

@brian-brazil is this not fixed with #1878 ? If not can you elaborate?

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Sep 27, 2016

Relabelling should be after external labels, not before.

@brancz

This comment has been minimized.

Copy link
Member

brancz commented Sep 27, 2016

Ok that makes sense. If I understand correctly, we just need to move this before relabelling?

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Sep 27, 2016

Yes

@brancz

This comment has been minimized.

Copy link
Member

brancz commented Sep 27, 2016

PR on it's way

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.