Skip to content

Send only watchdog resolved notification #4324

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

Open
DFurt opened this issue Apr 1, 2025 · 7 comments
Open

Send only watchdog resolved notification #4324

DFurt opened this issue Apr 1, 2025 · 7 comments

Comments

@DFurt
Copy link

DFurt commented Apr 1, 2025

I have alertmanager set in a way that notifications are sent to pagerduty and then to the respective channels.

In order to not have a watchdog alert and incident in pagerduty, I've set the receiver to null. But this way we also don't get the resolved notification that indicates there's an issue.

What I would like to know is if there is a way to have the triggered notification silenced/not create an incident but receive the notification when it's resolved, meaning there is an issue.

An alternative route would be to invert watchdog alert, having it in resolved state instead of triggered if everything is fine and vice-versa.

Is this possible?

@grobinson-grafana
Copy link
Collaborator

@DFurt
Copy link
Author

DFurt commented Apr 1, 2025

hello @grobinson-grafana , the watchdog alert is already set up but is always firing, thus creating an incident in pagerduty, in this case. What I wanted to do was to not have the incident notification sent to pagerduty, or other tool like slack, so there isn't an incident displaying. But to be notified, trough pagerduty or other tool, of alertmanager resolving the watchdog alert in case it happens.

@grobinson-grafana
Copy link
Collaborator

grobinson-grafana commented Apr 1, 2025

That sounds correct to me. I understand you need to set up a Dead Mans Snitch in Pagerduty, and then Pagerduty will create an incident if it stops receiving the alert from Alertmanager (https://www.pagerduty.com/docs/guides/dead-mans-snitch-integration-guide/) (mentioned at the bottom of the link I shared earlier).

@DFurt
Copy link
Author

DFurt commented Apr 1, 2025

Yes, I would like something like that but without relying on a pagerduty integration as we might set this up for slack aswell directly, without pagerduty integrations

@grobinson-grafana
Copy link
Collaborator

grobinson-grafana commented Apr 1, 2025

I think it might be possible with inhibition rules, but the reason to do this with a service like Pagerduty is that it can also tell you if your Alertmanager is down, otherwise it could be down and you might not know.

@DFurt
Copy link
Author

DFurt commented Apr 1, 2025

I'm not being able to find a solution using inhibition rules. My understanding reading this is that I can't have the alert inhibit itself but would have to use a different alert to do it. However, Watchdog is the alert that is always firing, while others only do so on certain conditions as intended.

Do you have any ideia of how this could be set up?

@grobinson-grafana
Copy link
Collaborator

grobinson-grafana commented Apr 1, 2025

Ah I didn't consider the case where no alerts are firing. In that case I don't think its possible and you'll have to use something like Pagerduty's Dead Mans Snitch. It's still not clear to me what it is your watchdog alert is doing, but in the case your Alertmanager is unavailable you won't get a notification in Slack, regardless of whether the watchdog alert fired or resolved. That's why, if your Watchdog alert is making sure your alerting system is fully working end-to-end, you'll want to set this up in an IRM like Pagerduty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants