Swatto / promtotwilio

Send text messages for Prometheus alerts using Twilio
MIT License
33 stars 21 forks source link

Integration with Whatsapp #8

Closed ognjen011 closed 3 years ago

ognjen011 commented 3 years ago

Could this be used to send notification via twilio to whatsapp rather than SMS only?

Swatto commented 3 years ago

From what I see, Twilio has integration with WhatsApp. You can make them sending a message to specific numbers by "just" setting a prefix as whatsapp:+xxxxxxxx.

I don't have the setup to validate it for you but if you are interested, feel free to follow the official documentation to setup your Twilio account as it should. I'm very interested in your results.

Warning, it looks like integrating WhatsApp with "bot" is a paid product on WhatsApp end on their Business API

ognjen011 commented 3 years ago

Ok i was able to send whatsapp via twilio by adding prefix whatsapp:. Just need to figure out alertmanager where to setup prefix as well.

Swatto commented 3 years ago

As explained in the README, RECEIVER environment variable is used to know the number to text. Why don't you try to set the prefix at that level?

ognjen011 commented 3 years ago

This is working with whatsapp i have only picked up two issues but that could be my config. First it only sends summary not an entire alert and so there is no [FIRING] or [RESOLVED] label although email and slack both work as expected. The second is send_resolved: true does not seem to have any effect.

My setup looks like this:

webhook_configs: