Hi,
we are monitoring a bunch of hosts with Prometheus, forwarding the alerts to the alertmanager and from there to one Email receiver.
We are currently evaluating the possibility to forward the Emails, generated by the AlertManager, to different Email addresses, depending on the host impacted by the alert. We don't want however to keep the mapping "host <-> Email address" hardcoded in the alertmanager config. This information can be retrieved via a REST call.
I am wondering if there is a possibility for the alertmanager to make external http calls, before triggering an alert, and use the returned information (Email address) as a destination of the Emails. Another option would be to include the information retrieved in the message sent to a webhook receiver.
Does someone know if such a use case can be implemented using Prometheus/Alertmanager? Any ideas are welcome.
Regards
Farouk