Alertmanager integrations

41 views
Skip to first unread message

adi garg

unread,
May 6, 2020, 8:17:50 AM5/6/20
to Prometheus Users
Hey guys, I need to integrate my alertmanager with slack and Gmail. 

For Slack:-
I got one method using incoming webhooks. Is it the only way or can you please suggest some more ways.

For Gmail:-
I got one method using the app password in Gmail, but it requires the user to have 2-step verification active in Gmail. I don't think it's good to impose this condition on the user. I don't even want to have a separate mail server for this. Can someone suggest some methods for this?

Regards,
Aditya Garg

Brian Candler

unread,
May 6, 2020, 9:36:28 AM5/6/20
to Prometheus Users
On Wednesday, 6 May 2020 13:17:50 UTC+1, adi garg wrote:
Hey guys, I need to integrate my alertmanager with slack and Gmail. 

For Slack:-
I got one method using incoming webhooks. Is it the only way or can you please suggest some more ways.


You could use the built-in Slack integration which alertmanager already has:

 
For Gmail:-
I got one method using the app password in Gmail, but it requires the user to have 2-step verification active in Gmail. I don't think it's good to impose this condition on the user. I don't even want to have a separate mail server for this. Can someone suggest some methods for this?

Remember that alertmanager is the sender of the E-mail, not the receiver, so it doesn't need to know the receiving user's credentials.  This means you can:

- Configure your own local SMTP server, and use it to deliver messages to x...@gmail.com
or
- Create another username in your GSuite/Google Docs account, just for alertmanager to send E-mail notifications, which doesn't require 2FA
or
- Create a free gmail.com account, and use it for delivering E-mail notifications (beware you might hit some rate limits if you send too many alerts)

adi garg

unread,
May 6, 2020, 11:37:19 AM5/6/20
to Prometheus Users
Thanks, Brian. Regarding Slack integration, even the built-in slack integration requires a webhook URL of the user's slack channel, right?

Brian Candler

unread,
May 6, 2020, 1:10:08 PM5/6/20
to Prometheus Users
On Wednesday, 6 May 2020 16:37:19 UTC+1, adi garg wrote:
Regarding Slack integration, even the built-in slack integration requires a webhook URL of the user's slack channel, right?


Yes, it talks to the slack API.
Reply all
Reply to author
Forward
0 new messages