grafana配置郵件發送


1、在消息通知那里測試郵件

 

 

 

2、進入郵箱查看郵件已成功發送。

 

 

 3、點擊郵件內容跳轉到grafana,發現跳轉到的是localhost,無法跳轉到grafana地址。

仔細檢查發現grafana還有個默認配置/usr/share/grafana/conf/defaults.ini,修改

server頁簽下的domain = localhost為domain = 你grafana訪問URL

 

[server] # Protocol (http, https, h2, socket) protocol = http # The ip address to bind to, empty will bind to all interfaces http_addr = # The http port to use http_port = 3000 # The public facing domain name used to access grafana from a browser domain = 192.168.8.121 # Redirect to correct domain if host header does not match domain # Prevents DNS rebinding attacks enforce_domain = false # The full public facing url root_url = %(protocol)s://%(domain)s:%(http_port)s/  # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons. serve_from_sub_path = false # Log web requests router_logging = false # the path relative working path static_root_path = public # enable gzip enable_gzip = false # https certs & key file cert_file = cert_key = # Unix socket path socket = /tmp/grafana.sock #################################### Database ############################

 

 

 

4、然后重啟grafana,重新發一次郵件就可以跳轉到正確的地址

 

service grafana-server restart

 


免責聲明!

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



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