修改配置
vim /etc/grafana/grafana.ini
[smtp]
enabled = true
host = smtp.qq.com:465
user = xxx@xxx.com
password = xxx
from_address = xxx@xxx.com
from_name = Grafana
[alerting]
execute_alerts = true
重启服务
systemctl restart grafana-server
邮箱配置以及测试
测试邮箱