EduardoCabria
EduardoCabria

Reputation: 29

Is it possible to use Prometheus alerting in instant messaging such as Whatsapp or Telegram?

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

Answers (4)

tudumit
tudumit

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

Marcus K.
Marcus K.

Reputation: 1040

Telegram support just made it into the alertmanager itself. The configuration part is already documented.

Upvotes: 1

Tomy8s
Tomy8s

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

capoloja
capoloja

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

Related Questions