老实说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