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
Airtest自动化测试交流群:739857090