prometheus告警发送失败

prometheus有告警产生,但是发送邮件失败:

docker logs -f alertmanager --tail 100

问题1:

level=warn ts=2023-01-01T15:34:53.207Z caller=notify.go:724 component=dispatcher receiver=email integration=email[0] msg="Notify attempt failed, will retry later" attempts=1 err="send RCPT command: 550 Mailbox not found or access denied"

问题2:
level=error ts=2023-01-06T18:49:07.054Z caller=dispatch.go:354 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="email/email[0]: notify retry canceled after 7 attempts: *email.loginAuth auth: 535 Login Fail. Please enter your authorization code to login. More information in http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256"

问题原因:

1.alertmanager 告警模板配置有问题

2.smtp_auth_password: 这个配置项设置为授权码,而不是QQ邮箱登陆

3.有失效或者不存在的邮箱在你的发送邮件列表里(我自己就是这个问题)

posted @ 2023-01-09 14:02  Leonardo-li  阅读(1715)  评论(0编辑  收藏  举报