Reputation: 29
My question is if we can use the alerts part of Prometheus to show them in Whatsapp or some kind of instant messaging.
Thank you very much from a newbie in this.
Upvotes: 1
Views: 4441
Reputation: 1
You can write a small app that would serve as a middleware between Prometheus/Alertmanager and some WhatsApp API provider such as Infobip, Twillio, Sinch, Vonage etc.
Alertmanager allows for configuring a generic receiver: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
So you can use it to send an HTTP Post request with the alert to your middleware app, you can receive the alert in the app and then send the alert text to the phone over 3rd party WhatsApp API provider.
Here is a tutorial: https://www.infobip.com/docs/tutorials/integrate-prometheus-with-infobip-whatsapp-api
Upvotes: 0
Reputation: 1040
Telegram support just made it into the alertmanager itself. The configuration part is already documented.
Upvotes: 1
Reputation: 91
You ask about "some kind of instant messaging." Alert manager does not have a native integration for WhatsApp, but it does for the Slack instant messaging platform.
Info in the docs: https://prometheus.io/docs/alerting/latest/configuration/#slack_config
Upvotes: 0
Reputation: 66
it seems there are a lot of projects to connect telegram, many docker based but none of them is just that easy to setup anyway. Just as an example
https://github.com/metalmatze/alertmanager-bot
Upvotes: 1