老實說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