Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAlertmanager relabel config not being honoured #3239
Comments
luke-orden
added a commit
to luke-orden/prometheus
that referenced
this issue
Oct 12, 2017
brian-brazil
added
component/config
kind/bug
labels
Dec 8, 2017
This comment has been minimized.
This comment has been minimized.
|
The relabel configs at this level are part of service discovery to select the alertmanager, not to change the alerts themselves. So this is the expected behaviour. |
brian-brazil
added
kind/question
and removed
kind/bug
labels
Dec 8, 2017
This comment has been minimized.
This comment has been minimized.
This suggests that I should be able to select which alert manager gets which alert(s), which is what I am trying to do, but isn't working as expected. Am I misunderstanding your point? |
This comment has been minimized.
This comment has been minimized.
|
No, they're to select the alertmanagers that all alerts are sent to. Consider that if you were on kubernetes that the SD would return many many different pods, these relabel_configs let you limit that down just to those running the alertmanager. |
This comment has been minimized.
This comment has been minimized.
|
Ah I see what you mean. Thanks |
This comment has been minimized.
This comment has been minimized.
|
Is there any other way to have only certain alertmanagers receive only certain alerts? |
This comment has been minimized.
This comment has been minimized.
|
No, that's not possible currently. What's you use case? |
This comment has been minimized.
This comment has been minimized.
|
I plan to have one alertmanager for standard monitoring, and one for auto-remediation. The auto-remediation alertmanager will be locked down and part of a secure pipeline. I plan to have the auto-remediation alerts contain an auth token which I do not want sent to the standard monitoring alertmanager. |
This comment has been minimized.
This comment has been minimized.
|
I'm not seeing how that works, labels are not secret. I also don't understand why you need a 2nd alertmanager for that. |
This comment has been minimized.
This comment has been minimized.
|
I need to add authentication to the auto-remediation alertmanager as I do not want anyone to be able to send alerts to it, which could cause an automatic action. I would prefer not to send alerts to both if they are not needed on both alertmanagers. |
This comment has been minimized.
This comment has been minimized.
|
Things are built with the assumption that the alertmanagers are homogeneous, I think you might be over-complicating things for yourself a bit. |
This comment has been minimized.
This comment has been minimized.
|
Shame |
luke-orden
closed this
Dec 11, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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. |
luke-orden commentedOct 4, 2017
•
edited
What did you do?
I have two alertmanagers set in my config, and I am trying to send only certain alerts to each:
What did you expect to see?
I would expect to alerts with the label {secure="yes"} to be dropped for target localhost:9093.
What did you see instead? Under which circumstances?
All alerts, including ones with {secure="yes"}, were sent to both alertmanagers.
If I set the relabel config under
alert_relabel_configsall alerts with {secure="yes"} are dropped, but the docs suggest that I should be able to set differentrelabel_configsfor each alertmanager.Here is the config when dropping {secure="yes"} for both alertmanagers:
Environment
Alerts file: