Set up alertmanager to send alerts to Microsoft Teams in RHOCP 4
Issue
- How to configure alertmanager to send the alerts to Microsoft Teams?
-
After configuring alertmanager to send the alerts to Microsoft Teams
unexpected status code 400
is observed in the alertmanager pod logs:2022-04-24T19:54:50.370661642Z level=error ts=2022-04-24T19:54:50.370Z caller=dispatch.go:309 component=dispatcher msg="Notify for alerts failed" num_alerts=3 err="Default/webhook[0]: notify retry canceled due to unrecoverable error after 1 attempts: unexpected status code 400: https://example.webhook.com/<content for webhook>"
- It was configured alertmanager to send the alerts to Microsoft Teams using a webhook and the alerts are not received
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Alertmanager
- Microsoft Teams
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.