\u0000导致告警失败
#1037
Replies: 1 comment
-
这个是 alertmanager 回传消息到 clickvisual 的日志打印,暂时没有排查出原因,我试试是否可以过滤。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
查看clickvisual.log日志文件,filterId等字段多了很多\u0000字符导致告警失败,日志内容如下:
{"lv":"info","ts":1692240748,"msg":"alarm","notification":{"version":"4","groupKey":"{}:{alertname=\"ClickVisual-8f72ac67_4b97_4089_bec1_7d6e0655bacd_20\"}","status":"firing","receiver":"feishu\\.web\\.hook","groupLabels":{"alertname":"ClickVisual-8f72ac67_4b97_4089_bec1_7d6e0655bacd_20"},"commonLabels":{"alarmId":"1\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","alertname":"ClickVisual-8f72ac67_4b97_4089_bec1_7d6e0655bacd_20","filterId":"20\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","severity":"warning","uuid":"8f72ac67-4b97-4089-bec1-7d6e0655bacd\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"},"commonAnnotations":{"description":" (当前值: 2)","summary":"告警 "},"externalURL":"http://05c1d874fbeb:9093","alerts":[{"labels":{"alarmId":"1\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","alertname":"ClickVisual-8f72ac67_4b97_4089_bec1_7d6e0655bacd_20","filterId":"20\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","severity":"warning","uuid":"8f72ac67-4b97-4089-bec1-7d6e0655bacd\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"},"annotations":{"description":" (当前值: 2)","summary":"告警 "},"startsAt":"2023-08-17T02:51:13.257Z","endsAt":"0001-01-01T00:00:00Z"}]}}
开发环境:
clickvisual版本:master分支(73b42ab4d41924398cab63f465349d687f5e76fd)
clickhouse版本:22.10
prometheus版本:2.37.5
alertmanager版本:0.25.0
请问如何排错?
Beta Was this translation helpful? Give feedback.
All reactions