-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Telegram API size limitation 4096? #65
Comments
This is a limitation by Telegram's API itself see here, so not much we can do against that. We could technically implement some piece of logic that split a message into multiple chunks, but I'd rather refrain from implementing that, tbh. |
Okay, but just in case: https://prometheus.io/docs/alerting/latest/configuration/#telegram_config When using official docs, it's not pretty enough. But it works, message has been delivered. It's just became: When using telepush, we receive error, and message not delivered. I've tried to overcame this with custom template, but it won't help:
|
This is the piece of code in alertmanager responsible for truncating the messages. We could implement the same in Wakapi. I'll create a new issue for this. |
Hey there! We try to use telepush for alertmanager notifications from our clusters. But we encounter situation, when not all notifications are delivered. After some investigations:
ts=XXXXXXXXXXXXX caller=dispatch.go:352 level=error component=dispatcher msg="Notify for alerts failed" num_alerts=21 err="telepush/webhook[0]: notify retry canceled due to unrecoverable error after 1 attempts: unexpected status code 400: https://telepush.dev/api/inlets/alertmanager/XXXXXX: message too long (max is 4096 characters)"
Some software deployed with Helm have multiply labels, and it`s easy-to-go to step over this limit. How this issue can be sold? Maybe force Telepush to short notifications size for Telegram eats it?
The text was updated successfully, but these errors were encountered: