benjojo / alertmanager-discord

Take your alertmanager alerts, into discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to unpack inbound alert request

acmodeu opened this issue · comments

I want to send some alerts from external exporter via kubernetes prometheus stack to discord. I see the alerts in the alertmanager but they don't appear in discord channel and there are a lot of similar errors in alertmanager-discord logs.

2021/08/12 19:46:39 10.200.129.205:9094 - [GET] 
2021/08/12 19:46:39 Failed to unpack inbound alert request - 

Yes. I'm sure, I set up discord as default receiver for all alerts but received all other kubernetes alerts except those external ones. I switched to telegram bot and received them right away.

So, alertmanager webhooks come in as POST's so you should look for something like

2021/08/12 19:46:39 10.200.129.205:9094 - [POST] 

in your logs, if you can't find them, webhooks are not directly landing on alertmanager-discord.

Hi,

When using into k8s, you may want to use readiness and liveness probes.
They usually make GET requests to the app, to see if the process is alive and fit for duty. If something other than 2xx is returned, kubernetes will kill the container, and spawn another one.