metalmatze / alertmanager-bot

[deprecated] Bot for Prometheus' Alertmanager
MIT License
658 stars 147 forks source link

Doesn't work with large alerts count #111

Open bykvaadm opened 4 years ago

bykvaadm commented 4 years ago

in test prometheus i had about 160 alarts with same type "instance xxx is down".

metalmatze commented 4 years ago

There's a limit to how many characters can be sent in a single Telegram message. Starting from v0.4.0 onwards the bot automatically truncates messages that are too long. Which version are you running?

bykvaadm commented 4 years ago

Image: metalmatze/alertmanager-bot:0.4.2

tabnul commented 4 years ago

Same issue here. Same error when loads of alert are firing. Running latest version. According to logs, everything is fine.

hamiteza commented 3 years ago

Same issue for me. there must be problem in fetching alerts from url when the number of alerts is large

tomdynasty commented 3 years ago

I have similar situation. When i keep send /alerts command for a couple of times, sometimes it will show below. anything update for this?

failed to list alerts... Get http://192.168.164.56:9093/api/v1/alerts: dial tcp 192.168.164.56:9093: connect: connection refused
darkobas2 commented 2 years ago

Any workaround for this ?