I am trying to integrate grafana with PagerDuty to present alerting data structure in a particular way.
I am trying to use the Notification Template to emit a custom json structure for the Alert for ingestion into PagerDuty.
The current object that is forwarded to Pagerduty is a firing object, e.g:
{
"details": {
"firing": { alert kv's here }
}
I want to map this in its place:
{
"payload": {
"custom_field": { alert kv's here }
}
I have been trying to update the notification template to map these objects but struggling to find the right combination. Any help appreciated.
Thanks for the response, but there is something deeper going on here that I can’t understand. Grafana is somehow sending the v1 Events API format still. When PagerDuty shows me the message it received it looks like this:
I have Grafana v10.x installed and from what I can tell from the code this format was removed a while ago. For example, EventType/event_type shouldn’t be sent and CustomDetails/custom_details should be.