Alertmanager alerts
with Amazon SES

Published Aug 30, 2019 by Ricard Bejarano

I am a happy Prometheus user.

The conditions I monitor for may require human intervention, therefore we need alerting. I use Alertmanager for that.

Out of Alertmanager’s notification receivers, I like email, for which we need a SMTP server.

This is where Amazon Simple Email Service comes into play.
SES is, essentially, SMTP as a service.

Integrating Alertmanager with Amazon SES

  1. Verify your domain name

  2. Create your SMTP credentials

  3. Add the following configuration to Alertmanager:

# alertmanager.yml:
receivers:
  - name: "email"
    email_configs:
      - to: "${TO_EMAIL_ADDRESS}"      # you@example.com
        from: "${FROM_EMAIL_ADDRESS}"  # alertmanager@example.com
        smarthost: "email-smtp.${SES_SMTP_REGION}.amazonaws.com:587"
        auth_username: "${SES_SMTP_USERNAME}"
        auth_password: "${SES_SMTP_PASSWORD}"
        require_tls: true

Reload Alertmanager and you should be all set.

Thanks for dropping by!

Did you find what you were looking for?
Let me know if you didn't.

Have a great day!