我正尝试使用“电子邮件”通过Alertmanager从Prometheus接收警报,但是,它仍在打印此类日志,例如:“通知时出错:EOF” source =“ notify.go:283”和“ Notify 3个警报失败:EOF“ source =” dispatch.go:261“。我的alertmanager配置如下:
smtp_smarthost: 'smtp.xxx.com:xxx'
smtp_from: 'xxxxx@xxx.com'
smtp_auth_username: 'xxxx@xxx.com'
smtp_auth_password: 'xxxxxxx'
smtp_require_tls: false
route:
group_by: ['instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 7m
receiver: email
routes:
- match:
severity: critical
receiver: email
- match_re:
severity: ^(warning|critical)$
receiver: support_team
receivers:
- name: 'email'
email_configs:
- to: 'xxxxxx@xx.com'
- name: 'support_team'
email_configs:
- to: 'xxxxxx@xx.com'
- name: 'pager'
email_configs:
- to: 'alert-pager@example.com'
有什么建议吗?
答案 0 :(得分:0)
我使用smtp.xxx.com:587解决了该问题,但还需要设置smtp_require_tls:true