AlertManager is not sending alert emails

22 views
Skip to first unread message

Madhu Kuriti

unread,
Mar 31, 2020, 11:24:03 AM3/31/20
to Prometheus Users
Hi,
My alertmanager email config (below) is not working, could you share a sample(redacted) that works for you.

  global:

    smtp_smarthost: mail.abcxyz.com

    smtp_from: alertm...@abcxyz.com

    resolve_timeout: 5m

  route:

    group_wait: 30s

    group_interval: 5m

    repeat_interval: 12h

    receiver: default

    routes:

    - match:

        alertname: KubeNodeNotReady

        severity: warning

      repeat_interval: 5m

      receiver: team-emaillist

  receivers:

  - name: default

  - name: deadmansswitch

  - name: team-emaillist

    email_configs:

    - to: use...@abcxyz.com

Brian Candler

unread,
Mar 31, 2020, 1:56:40 PM3/31/20
to Prometheus Users
First: change "receiver: default" to "receiver: team-emaillist".  This will check whether the SMTP part is working properly, as all alerts should be sent out.

Then start adding some matching routes.  The route you have given will match only alerts which have both alertname: KubeNodeNotReady *and* severity: warning (with lower-case "w")

Reply all
Reply to author
Forward
0 new messages