7
Alert webhooks
T
Tim Suchanek
In order to connect to solutions like https://github.com/prometheus/alertmanager, we can expose a general webhook interface, which allows anyone to build their own alert pipeline.
Activity Feed
Sort by
Peter Dolkens
https://github.com/prometheus/alertmanager/blob/main/api/v2/openapi.yaml
The v2 api spec for alertmanager - for reference
There's also some basic documentation here: https://prometheus.io/docs/alerting/latest/clients/
Proposal for the webhook payload might be something like:
[
{
"startsAt": "2022-06-23T17:49:47.005Z",
"endsAt": "2022-06-23T18:49:47.005Z",
"annotations": {
"description": "Here is the error message for the most frequent error\n * Bad Gateway",
"summary": "3 5xx Errors in the last hour"
},
"labels": {
"service_name": "My-First-Service",
"source": "Stellate",
"interval": "1h",
"threshold": 0,
"alert_name": "My First 5xx Alert",
"alert_category": "5xx Errors",
"alert_value": 3
},
"generatorURL": "https://stellate.com/dashboard/org/svc/overview"
}
]