I wrote a tiny daemon to scan silences, send post request if found any new silence #3380
LeoQuote
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/LeoQuote/silence-scanner
Use case:
Having used icinga/naigos before, the
ack
feature is really useful when many people may involved of the alerts.but currently, alertmanager does not support webhook on silence creation, so I wrote a daemon to periodically pull silences, and push the new silences to the webhook.
the webhook handler can notify team, the alerts has been handled by someone.
the daemon is quite simple, just pull the silences and store in memory , when there's new one , post it to webhook.
the daemon itself does not know who should receive the "silence notification", it should be the webhook handler who to query which alert is silenced and notify people affected.
Hope this could help someone! Issues are welcomed.
Beta Was this translation helpful? Give feedback.
All reactions