grafana配置邮件告警


1.修改/etc/grafana/grafana.ini,注意要删除最前面的分号

[smtp]

enabled = true

host = smtp.exmail.qq.com:25

user = "lihaichun@netschina.com"

# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""

password = "Password"

;cert_file =

;key_file =

skip_verify = true

from_address = lihaichun@netschina.com

from_name = Grafana

 

2.service  grafana-server restart

 

3.在grafana控制台页面中添加Alerting,Type选择Email

点击Send Test

可以收到邮件

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM