prometheus-webhook-dingtalk icon indicating copy to clipboard operation
prometheus-webhook-dingtalk copied to clipboard

Error- Message is too long

Open ghost opened this issue 5 years ago • 5 comments

dingtalk[30084]: level=error ts=2019-03-29T06:16:58.807601502Z caller=dingtalk.go:59 msg="Failed to send notification to DingTalk" respCode=101002 respMsg="message is too long"

ghost avatar Mar 29 '19 06:03 ghost

可能是你一次发送太多信息被钉钉拒收了。 你可以尝试调整 alertmanager 的 grouping 和 inhibit,尽量不要一次性发送过多报警。避免 alarm fatigue

timonwong avatar Mar 31 '19 14:03 timonwong

level=error ts=2020-03-26T03:58:56.123Z caller=dingtalk.go:103 component=web target=dingtalk1 msg="Failed to send notification to DingTalk" respCode=101002 respMsg="message is too long"

JanyW avatar Mar 26 '20 04:03 JanyW

我也出现了,应该是大量报警下,会把多条报警聚合在一条message,导致too long

JanyW avatar Mar 26 '20 04:03 JanyW

level=error ts=2020-07-04T05:46:44.878Z caller=dingtalk.go:103 component=web target=webhook1 msg="Failed to send notification to DingTalk" respCode=460101 respMsg="message too long, exceed 20000 bytes" level=info ts=2020-07-04T05:46:44.878Z caller=entry.go:22 component=web http_scheme=http http_proto=HTTP/1.1 http_method=POST remote_addr=172.18.0.1:48558 user_agent=Alertmanager/0.20.0 uri=http://172.17.14.143:8060/dingtalk/webhook1/send resp_status=400 resp_bytes_length=27 resp_elapsed_ms=4184.28914 msg="request complete"

我也碰到类似报错,请问楼上几位是怎么处理的?

我是通过alertmanager发给dingtalk的,
重启dingtalk报错依旧, 重启alertmanager报错消失。

wanghy8166 avatar Jul 04 '20 06:07 wanghy8166

还可以尝试修改inhibit_rules配置,消除一些重复报警

inhibit_rules:
  - source_match:      
      severity: 'critical'
    target_match:      
      severity: 'warning'
    equal: ['alertname']

m1iktea avatar Jun 24 '22 01:06 m1iktea