Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
- name: 'swarmtelemetry' 
  email_configs: 
  - to: swarmtelemetry@gmail.com 
    from: swarmtelemetry@gmail.com 
    smarthost: smtp.gmail.com:587 
    auth_username: swarmtelemetry@gmail.com 
    auth_identity: swarmtelemetry@gmail.com 
    auth_password: YOUGMAILPASSWORD or APPPASSWORD 
    send_resolved: false true
Info

Note: you need to configure this for the swarmtelemetry and gatewaytelemetry route, they are defined separately because they use their own custom email templates. 

Note

Prometheus alertmanager does not support SMTP NTLM authentication, as such you cannot use it to send authenticated emails directly to Microsoft Exchange. Instead you should configure the smarthost to connect to localhost:25 without authentication , where the default Centos postfix server is running. It will know how to send the email to your corporate relay ( auto-discovered via DNS ). You will need to add require_tls: false to the email definition config section in alertmanager.yml.

Example configuration for a local SMTP relay in your enterprise environment

Code Block
- name: 'emailchannel' 
  email_configs: 
  - to: admin@acme.com 
    from: swarmtelemetry@acme.com
    smarthost: smtp.acme.com:25 
    require_tls: false
    send_resolved: true

Once configuration has completed restart the alertmanager:

...