Set up alertmanager to send alerts to Microsoft Teams in RHOCP 4
Issue
- 如何配置 alertmanager ,来向 Microsoft 团队发送报警?
-
配置 alertmanager 来向 Microsoft 团队发送报警后,在 alertmanager pod 日志中观察到
unexpected status code 400
: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>"
- 使用 webhook ,将 alertmanager 配置为向 Microsoft 团队发送报警,且警报没有收到
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.