简体   繁体   中英

Multiple email receivers in prometheus alertmanager "to" field

如何在“收件人”字段中创建具有多个电子邮件地址的接收器配置?

您可以在to字段中输入逗号分隔的电子邮件地址。

to: 'user1@example.com, user2@example.com'

For prometheus 1.8 I am using two "to" configurations in the same receiver.

receivers:

  - name: 'bla1-and-bla2-mails'
    email_configs:
    - to: 'bla1@example.com' 
      from: 'prometheus@example.com'
      require_tls: false
      send_resolved: true
    - to: 'bla2@example.com'
      from: 'prometheus@example.com'
      require_tls: false
      send_resolved: true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM