-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 "alertmanager_provider_alerts" metric #1589
Conversation
@simonpasquier As you were responding to #1439 previously, if you have time, could you take a quick look at this and maybe give some feedback for my changes? Thank you 👍 |
If this still preserves the Or alternatively only expose non-resolved (actually active) alerts, to match what people would see on /alerts. |
Ah, |
@juliusv Thanks for your feedback. I agree that the whole alert "status/states" are a bit confusing in Alertmanager. The |
47b906f
to
65c97b3
Compare
I rebased against the current master due to a minor merge conflict of imports in |
The |
Hey, are you still working on this? :) |
@nielsole Yes, I just noticed a few days ago that there are now merge conflicts due to the refactoring in #1741. I will try to get those fixed in the next few days. Sadly I still cannot say if the PR will then be accepted, but at least I cannot run many Alertmanager instances in production without this fix included... (currently I have my fork deployed in multiple production clusters). |
65c97b3
to
1b49ff1
Compare
Due to the recent refactoring in #1741 I changed the PR to add a new @juliusv Would be great to get this accepted, as this works pretty well for my use case and solves #1439 by providing an alternative to the |
Any updates on this? This week I would have time to support in any way :) |
86b50d2
to
3b6d5fe
Compare
Is there anything preventing this from being merged? Would be nice to get these reliable metrics built-in, this works quite well for me in production. @juliusv |
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.
@Pharb sorry for the very late reply. One thing to remember is that resolved alerts can be removed at any time (eg when the garbage collection kicks in) meaning that alertmanager_provider_alerts{state="resolved"}
will have occasional drops. I'd be inclined to expose only the current number of firing alerts but happy to hear about other opinions.
6a2dccd
to
091062b
Compare
@simonpasquier Thank you for taking a look at this. As suggested by you, I removed |
4ce97b3
to
cb33b3c
Compare
@simonpasquier Thanks for your help so far. |
cb33b3c
to
123903c
Compare
see prometheus#1439 Signed-off-by: Patrick Harböck <patrick.harboeck@tngtech.com>
123903c
to
74c22df
Compare
PR is now obsolete because an alternative implementation was merged yesterday: #2943 Issue is finally solved 🎉 |
Fixes #1439 by adding a separate
alertmanager_provider_alerts
metric.