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

可以收到郵件

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM