Prometheus + Alertmanager #67
CodeShellDev
started this conversation in
Integrations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use generic webhook alert type in Alertmanager
Payload
{ "number": "mandatory", "recipients": "mandatory", "text_mode": "styled", "version": "4", "groupKey": "host:server01 severity:critical", "truncatedAlerts": 0, "status": "firing", "receiver": "webhook", "groupLabels": { "alertname": "HighCPUUsage", "host": "server01" }, "commonLabels": { "alertname": "HighCPUUsage", "severity": "critical", "instance": "server01:9100" }, "commonAnnotations": { "summary": "CPU usage is above 90% on server01", "description": "The CPU usage on host server01 has exceeded the threshold of 90% for more than 5 minutes." }, "externalURL": "http://alertmanager.example.com", "alerts": [ { "status": "firing", "labels": { "alertname": "HighCPUUsage", "severity": "critical", "instance": "server01:9100" }, "annotations": { "summary": "CPU usage is above 90% on server01", "description": "The CPU usage on host server01 has exceeded the threshold of 90% for more than 5 minutes." }, "startsAt": "2025-09-20T14:30:00Z", "endsAt": "0001-01-01T00:00:00Z", "generatorURL": "http://prometheus.example.com/graph?g0.expr=cpu_usage%3E90", "fingerprint": "abcd1234ef567890" } ] }Config
Message Template
Use
text_mode: styledin body for BOLD and ITALIC:Beta Was this translation helpful? Give feedback.
All reactions