Skip to content

Add limit to alert messages.#222

Open
ahfuzhang wants to merge 3 commits intotimonwong:mainfrom
ahfuzhang:main
Open

Add limit to alert messages.#222
ahfuzhang wants to merge 3 commits intotimonwong:mainfrom
ahfuzhang:main

Conversation

@ahfuzhang
Copy link
Copy Markdown

1.add /metrics for this app;
2.add maxalertcount to avoid too many alerts;

If there are too many alerts, ding talk webhook api return like this:

{"caller":"dingtalk.go:103","component":"web","level":"error","msg":"Failed to send notification to DingTalk","respCode":460101,"respMsg":"description: body 大小不合法;solution:请保持大小在 20000bytes 以内;","target":"webhook1","ts":"2023-12-01T03:59:19.740Z"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant