0
点赞
收藏
分享

微信扫一扫

Grafana邮件告警

正义的杰克船长 2022-11-24 阅读 68

[admin@prometheus ~]$ sudo vim /etc/grafana/grafana.ini
...
enabled = true #默认是false
host = smtp.mxhichina.com:465 #smtp服务器的地址和端口,我用的是阿里云的企业邮箱。465加密端口 25非加密端口
user = test@xxx.com #你登录邮箱的账号
password = xxxxxxx #你邮箱账号的密码
from_address = test@xxx.com #发邮件的账号
from_name = Grafana #自定义的名字
ehlo_identity = dashboard.example.com #无关紧要的一个标示
...

[smtp]
#enabled = false
enabled = true
#host = localhost:25
host = smtp.163.com:465
user = xxxxxxxxx@163.com
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password = xxxxxxxxxxxxxxxxxx
cert_file =
key_file =
#skip_verify = false
skip_verify = true
from_address = xxxxxxxxxxxx@163.com
from_name = xxx
ehlo_identity =
startTLS_policy =

[emails]
welcome_email_on_sign_up = false
templates_pattern = emails/*.html, emails/*.txt
content_types = text/html

举报

相关推荐

0 条评论