prometheus alertmanager"to"字段中的多个电子邮件接收者

eve*_*zon 9 email configuration monitoring prometheus

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

bri*_*zil 12

您可以在to字段中添加逗号分隔的电子邮件地址.

  • 那对我不起作用。唯一的工作是使用两个“to”配置。 (2认同)

She*_*eko 7

对于 prometheus 1.8,我在同一个接收器中使用了两个“to”配置。

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
Run Code Online (Sandbox Code Playgroud)