Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add limit to alert messages. #222

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ahfuzhang
Copy link

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.

None yet

1 participant