在測試grafana郵箱報警功能的時候出現Failed to send alert notifications
查詢grafana日志文件如下
tail -f -n 300 /var/log/grafana/grafana.log
t=2021-07-27T17:39:16+0800 lvl=eror msg="Failed to send alert notification email" logger=alerting.notifier.email error="Failed to send notification to email addresses: alisa190825@sina.com: gomail: could not send email 1: 452 Too many recipients received this hour. p=ca1-452 113.111.140.230 " t=2021-07-27T17:39:16+0800 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Failed to send notification to email addresses: alisa190825@sina.com: gomail: could not send email 1: 452 Too many recipients received this hour. p=ca1-452 113.111.140.230 "
通過日志查出當前監控的一台mysql故障,grafana不斷向目標郵箱發送郵件從而占用過多請求。
could not send email 1: 452 Too many recipients received this hour
經處理完mysql服務器恢復正常,再進行測試正常。