Skip to content

Instantly share code, notes, and snippets.

@mobeigi
Last active March 1, 2024 07:24
Show Gist options
  • Save mobeigi/5a96f326bc06c7d6f283ecb7cb083f2b to your computer and use it in GitHub Desktop.
Save mobeigi/5a96f326bc06c7d6f283ecb7cb083f2b to your computer and use it in GitHub Desktop.
Alertmanager Webhook Payload Example
{
"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\"}"
}
@yihezhou
Copy link

yihezhou commented Mar 7, 2022

good

@frankchenpeng
Copy link

what‘s the field "version" indicates?

@mobeigi
Copy link
Author

mobeigi commented Mar 1, 2024

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.

@frankchenpeng
Copy link

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