grafana告警

首先对grafana 的配置文件进行修改
根据不同的安装方式 配置文件可能存在不一样的个位置
1 yum安装方式 存在/etc/
2 安装包 方式 grafana/config/

host 后面是465 是端口 国内禁用25端口 会出现如下错误

t=2020-04-11T20:28:03+0800 lvl=info msg="Sending alert notification to" logger=alerting.notifier.email addresses=[xxxxxxxx@163.com]
t=2020-04-11T20:28:13+0800 lvl=eror msg="Failed to send alert notification email" logger=alerting.notifier.email error="dial tcp 220.181.12.11:25: i/o timeout"
t=2020-04-11T20:28:13+0800 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="dial tcp 220.181.12.11:25: i/o timeout"

如果出现如上错误 改端口改端口465

[smtp]
enabled = true
host = smtp.163.com:465
user = xxxxxx@163.com
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""  # password是授权码 不是账号的密码
password = xxxxxxxxxxxx  
#看好有  ;的
;cert_file = 
;key_file =
;skip_verify = true
from_address =  xxxxxx@163.com
from_name = Grafana
ehlo_identity =

[emails]
;welcome_email_on_sign_up = false
templates_pattern = emails/*.html

grafana 里面配置好告警 直接可以用
在这里插入图片描述
本人是根据OWEN大佬的OCP教程来 写的笔记 及供参考 如果有喜欢的可以去OCP上购买文档

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值