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

Failed to unpack inbound alert request #24

Open
acmodeu opened this issue Aug 12, 2021 · 4 comments
Open

Failed to unpack inbound alert request #24

acmodeu opened this issue Aug 12, 2021 · 4 comments

Comments

@acmodeu
Copy link

acmodeu commented Aug 12, 2021

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 - 
@benjojo
Copy link
Owner

benjojo commented Aug 12, 2021 via email

@acmodeu
Copy link
Author

acmodeu commented Aug 12, 2021

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.

@benjojo
Copy link
Owner

benjojo commented Aug 12, 2021

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.

@h4wkmoon
Copy link

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.

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

No branches or pull requests

3 participants