Alertmanager not sending email notification.

40 views
Skip to first unread message

Neha Pithadiya

unread,
Jul 2, 2020, 8:20:15 AM7/2/20
to Prometheus Users
Hi team

AlertManager is configured to fetch alerts from prometheus ,but alertmanager is not sending emails notifications.

Getting following errors in alertmanager pod :-
level=error ts=2020-07-02T12:10:31.371Z caller=notify.go:372 component=dispatcher msg="Error on notify" err="*email.loginAuth auth: 535 5.7.8 Username and Password not accepted. Learn more at\n5.7.8  https://support.google.com/mail/?p=BadCredentials h11sm4731207ilh.69 - gsmtp" context_err="context deadline exceeded"
level=error ts=2020-07-02T12:10:31.372Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="*email.loginAuth auth: 535 5.7.8 Username and Password not accepted. Learn more at\n5.7.8  https://support.google.com/mail/?p=BadCredentials h11sm4731207ilh.69 - gsmtp"

 Alertmanager configmap info:-

  global:
  route:
    receiver: alert-emailer
    group_by: ['alertname', 'priority']

  receivers:
  - name: alert-emailer
    email_configs:
    - to: a...@gmail.com
      send_resolved: false
      from: tes...@gmail.com
      smarthost: smtp.gmail.com:587
      auth_username: tes...@gmail.com
      auth_password: xxxxxxxxxxxxx


Any idea?

Thanks
Neha
Reply all
Reply to author
Forward
0 new messages