maubot-alertbot/alert_examples/grafana-alert.http

42 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-09-09 19:48:37 -04:00
### Send POST request with json body
POST https://synapse.hyteck.de/_matrix/maubot/plugin/alertbot/webhook/!zOcbWjsWzdREnihgeC:hyteck.de
Content-Type: application/json
{
"receiver": "Alertbot",
"status": "firing",
"alerts": [
{
"status": "firing",
"labels": {
"alertname": "HTTP response not OK",
"grafana_folder": "General Alerting"
},
"annotations": {},
"startsAt": "2022-08-24T18:45:00+02:00",
"endsAt": "0001-01-01T00:00:00Z",
"generatorURL": "http://0.0.0.0:3000/alerting/grafana/t7R1ZdZ4k/view",
"fingerprint": "54827aa3e6b3dbbe",
"silenceURL": "http://0.0.0.0:3000/alerting/silence/new?alertmanager=grafana&matcher=alertname%3DHTTP+response+not+OK&matcher=grafana_folder%3DGeneral+Alerting",
"dashboardURL": "",
"panelURL": "",
"valueString": "[ var='B0' metric='Value' labels={server=http://s1.example.com} value=503 ]"
}
],
"groupLabels": {},
"commonLabels": {
"alertname": "HTTP response not OK",
"grafana_folder": "General Alerting"
},
"commonAnnotations": {},
"externalURL": "http://0.0.0.0:3000/",
"version": "1",
"groupKey": "{}:{}",
"truncatedAlerts": 0,
"orgId": 1,
"title": "[FIRING:1] (HTTP response not OK General Alerting)",
"state": "alerting",
"message": "**Firing**\n\nValue: [ var='B0' metric='Value' labels={server=http://s1.example.com} value=503 ]\nLabels:\n - alertname = HTTP response not OK\n - grafana_folder = General Alerting\nAnnotations:\nSource: http://0.0.0.0:3000/alerting/grafana/t7R1ZdZ4k/view\nSilence: http://0.0.0.0:3000/alerting/silence/new?alertmanager=grafana&matcher=alertname%3DHTTP+response+not+OK&matcher=grafana_folder%3DGeneral+Alerting\n"
}