grafana告警配置


 

老实说grafana告警不是很好用,也不能分级告警。建议用prometheus的告警

1.配置告警规则

 

 

 

 

2.配置grafana 文件  defaults.ini

我这里是用的移动139邮箱,

[smtp]
enabled = true
host = smtp.139.com:25      #######139 smtp要打开,然后复制过来
user =15118693561@139.COM #####你的邮箱
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password =密码######你的密码
cert_file =
key_file =
skip_verify = false
from_address = 15118693561@139.COM###你的邮箱
from_name = Grafana
ehlo_identity =

[emails]
welcome_email_on_sign_up = false
templates_pattern = emails/*.html

 

 

 


免责声明!

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



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