grafana配置邮件告警

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

可以收到邮件

 

posted @ 2020-06-02 23:09  $world  阅读(1061)  评论(0)    收藏  举报