Last active
March 1, 2024 07:24
-
-
Save mobeigi/5a96f326bc06c7d6f283ecb7cb083f2b to your computer and use it in GitHub Desktop.
Alertmanager Webhook Payload Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"receiver": "webhook", | |
"status": "firing", | |
"alerts": [ | |
{ | |
"status": "firing", | |
"labels": { | |
"alertname": "Test", | |
"dc": "eu-west-1", | |
"instance": "localhost:9090", | |
"job": "prometheus24" | |
}, | |
"annotations": { | |
"description": "some description" | |
}, | |
"startsAt": "2018-08-03T09:52:26.739266876+02:00", | |
"endsAt": "0001-01-01T00:00:00Z", | |
"generatorURL": "http://example.com:9090/graph?g0.expr=go_memstats_alloc_bytes+%3E+0\u0026g0.tab=1" | |
} | |
], | |
"groupLabels": { | |
"alertname": "Test", | |
"job": "prometheus24" | |
}, | |
"commonLabels": { | |
"alertname": "Test", | |
"dc": "eu-west-1", | |
"instance": "localhost:9090", | |
"job": "prometheus24" | |
}, | |
"commonAnnotations": { | |
"description": "some description" | |
}, | |
"externalURL": "http://example.com:9093", | |
"version": "4", | |
"groupKey": "{}:{alertname=\"Test\", job=\"prometheus24\"}" | |
} |
what‘s the field "version" indicates?
Have a look at: https://prometheus.io/docs/alerting/latest/configuration/
webhook_config
.
I think it represents the version of the schema file.
what‘s the field "version" indicates?
Have a look at: https://prometheus.io/docs/alerting/latest/configuration/
webhook_config
.I think it represents the version of the schema file.
what‘s the field "version" indicates?
Have a look at: https://prometheus.io/docs/alerting/latest/configuration/
webhook_config
.I think it represents the version of the schema file.
I just saw the version is hard code in sourcecode :webhook.go LOL!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what‘s the field "version" indicates?