首页 > 其他分享 >prometheus告警发送失败

prometheus告警发送失败

时间:2023-01-09 14:14:51浏览次数:31  
标签:attempts 发送 prometheus go 告警 email

prometheus有告警产生,但是发送邮件失败:

docker logs -f alertmanager --tail 100

问题1:

level=warn ts=2023-01-01T15:34:53.207Z caller=notify.go:724 component=dispatcher receiver=email integration=email[0] msg="Notify attempt failed, will retry later" attempts=1 err="send RCPT command: 550 Mailbox not found or access denied"

问题2:
level=error ts=2023-01-06T18:49:07.054Z caller=dispatch.go:354 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="email/email[0]: notify retry canceled after 7 attempts: *email.loginAuth auth: 535 Login Fail. Please enter your authorization code to login. More information in http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256"

问题原因:

1.alertmanager 告警模板配置有问题

2.smtp_auth_password: 这个配置项设置为授权码,而不是QQ邮箱登陆

3.有失效或者不存在的邮箱在你的发送邮件列表里(我自己就是这个问题)

标签:attempts,发送,prometheus,go,告警,email
From: https://www.cnblogs.com/Leonardo-li/p/17036870.html

相关文章

  • Prometheus-基于Consul的自动注册
    一、背景介绍如果我们的物理机有很多,不管是基于"file_sd_config"还是"kubernetes_sd_config",我们都需要手动写入目标target及创建目标service,这样才能被prometheus自动发......
  • prometheus 结合 Alertmanager 实现告警通知
      Alertmanager   prometheus-server触发一条告警的过程:   prometheus--->触发阈值--->超出持续时间--->alertmanager--->分组|抑制|静默--->媒体类型--->邮件|......
  • Prometheus基于blackbox_exporter监控
    blackbox_exporter监控组件  blackbox_exporter是Prometheus官方提供的一个exporter,可以监控HTTP、HTTPS,、DNS、TCP、ICMP等目标实例,从而实现对被监控节点进......
  • 关于服务端反爬虫的限制及告警方案
     前言    当前对于一些大型网站的开放式服务,有相当一部分流量都是爬虫程序导致,大概占比在20%左右,爬虫程序会增加服务端数据及流量开销、内部资料外泄等很多问题......
  • QT线程间发送结构体
     QT的信号和槽机制能十分方便的用来传输数据,但是如果数据种类比较多,分类比较多的时候,就需要更好地更高效的来传递数据的方法。以结构体作为参数是个很不错的选择。这几天......
  • 【Azure 事件中心】向Event Hub发送数据异常 : partitionId[null]: Sending messages
    问题描述在使用Java代码向AzureEventHub发送数据时,先后遇见了如下两种异常消息:1)ERRORc.t.d.h.s.source.EventHubLogConsumer-Erroroccurredinpartitionproces......
  • 自定义prometheus exporter
    packagemainimport( "flag" "github.com/gin-gonic/gin" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/......
  • 高级性能01-prometheus常⽤exporter下载地址⼤全
    1.node_exporter下载​​​https://github.com/prometheus/node_exporter/releases​​​2.blackbox_exporter下载​​https://github.com/prometheus/blackbox_exporter/r......
  • 使用python发送系统通知(适用于linux,windows等)
    使用pip安装:pip3installplyer使用方法:fromplyerimportnotificationnotification.notify(title="test", #标题message="aaaa", #内容app_ic......
  • 4路开关量输入设备S274可短信电话告警
    本设备支持4路继电器输出,额定范围:5A/30VDC,5A/250VAC。既可以设置为权限号码呼入进行控制,也可以用短信远程控制,或者通过定时器、事件关联自动控制、或者远程通过监控中心......