-
Couldn't load subscription status.
- Fork 2.3k
Description
A generic, pluggable notifier would reduce the number of feature requests for new notifier implementations.
Motivation
The current recommendation for integrating services ($SVC) into Prometheus Alertmanager (AM) is to use the webhook notifier. If the $SVC does not support AM natively, a bridge has to be used in order to translate the webhook DTO into whatever data packets the receiving end supports. When integrating AM into many such services, this results in many additional services being brought up, all of which need to be scaled, placed, monitored, ... . While i am not against microservices per-se, deploying AM-bridges seems like an overkill to me, given that these services "only" translate. While i could write a generic bridge that supports multiple target services, i was thinking about a pluggable solution for AM.
Providing a generic notifier implementation based on os/exec would allow operators to bring their own implementations without having to deal with scaling/monitoring/...
Proposal
Notifier implementation based on os/exec which runs a command for each notification request. Data (similar to the webhook DTO) is provided via STDIN. The exit code is used to signal the result (0=success, 3=retry, else=failure)
I do have a PoC that i can clean up and provide as first draft via MR.