集成邮件系统
在 Alertmanager 使用邮箱通知,只需要定义好 SMTP 相关的配置,并且在 receiver 中定义接收方的邮件地址即可。
完成全局 SMTP 之后,还需要为 receiver 配置 email_configs,定义一组接收告警的邮箱地址,如下所示:
每个 email_config 中定义相应的接收人邮箱地址、邮件通知模板等信息,如果当前接收人需要单独的 SMTP 配置,那直接在 email_config 中进行覆盖。
如果当前收件人需要接受告警恢复(global 中的
resolve_timeout
)的通知的话,在 email_config 中定义send_resolved
为 true。如果所有的邮件配置使用了相同的 SMTP 配置,则可以直接定义全局的 SMTP 配置。
最后更新于