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
可以收到郵件