Alert manager email not getting triggered

52 views
Skip to first unread message

Bharathwaj Shankar

unread,
Nov 25, 2020, 3:11:10 AM11/25/20
to Prometheus Users
The alert is getting triggered to alert manager but I am not receiving email.


The configuration I use is as below,

global:
   smtp_require_tls: false

route:
  group_by: ['instance', 'severity']
  group_wait: 30s
  group_interval: 60s
  repeat_interval: 60s
  receiver: team-1

receivers:
- name: team-1
  email_configs:
  - to: saialumni...@gmail.com
    from: saialumni...@gmail.com
    smarthost: smtp.gmail.com:587
    auth_username: saialumni...@gmail.com
    auth_identity: saialumni...@gmail.com
    auth_password: eeeeeee
    send_resolved: true

Mohd Zakir

unread,
Nov 25, 2020, 3:18:10 AM11/25/20
to Bharathwaj Shankar, Prometheus Users
Hello Bharathwaj,

Can you please try with changing the from email address.

Thank you,
Regards,
Mohd Zakir.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/4fb57a64-e599-4937-997d-41ea98aab61an%40googlegroups.com.

Bharathwaj Shankar

unread,
Nov 25, 2020, 3:28:33 AM11/25/20
to Prometheus Users
I have tried with that as well. it is not working

Bharathwaj Shankar

unread,
Nov 25, 2020, 3:34:31 AM11/25/20
to Prometheus Users
Please help me with the working sample of alertmanager.yml file to edit my email and config to check

Bharathwaj Shankar

unread,
Nov 25, 2020, 3:45:31 AM11/25/20
to Prometheus Users
have tried like this and it is showing status as firing only.



route:
  repeat_interval: 1d
  group_interval: 1d
  group_by: [Alertname]
  # Send all notifications to me.
  receiver: email-me
receivers:
- name: email-me
  email_configs:
  - to: sssbgmscho...@gmail.com

    from: saialumni...@gmail.com
    smarthost: smtp.gmail.com:587
    auth_username: "saialumni...@gmail.com"
    auth_identity: "saialumni...@gmail.com"
    auth_password: "password"


alert.png

alert 2.png

Bharathwaj Shankar

unread,
Nov 25, 2020, 4:37:56 AM11/25/20
to Prometheus Users
still facing the same issue. any other idea??

Bharathwaj Shankar

unread,
Nov 25, 2020, 5:58:18 AM11/25/20
to Prometheus Users
do you have any demo mail server to check

Bharathwaj Shankar

unread,
Nov 25, 2020, 7:18:20 AM11/25/20
to Prometheus Users
the issue is resolved

Naveen Kumar Kotta

unread,
Dec 24, 2020, 5:45:25 AM12/24/20
to Prometheus Users
This is not the correct config.
You need to provide the actual credentials

    auth_username: 'oirutoeirutoieurt'
    auth_password: 'kajdgfkjasgdkjfgas'

Reply all
Reply to author
Forward
0 new messages