Create a new "Trigger or automation" webhook connection in Zendesk to send events to Grafana OnCall using the
integration URL above.
Refer to Zendesk documentation for more information on how to create and manage webhooks:
https://support.zendesk.com/hc/en-us/articles/4408839108378-Creating-webhooks-to-interact-with-third-party-systems
After setting up a webhook in Zendesk, create a new trigger with the following condition:
Meet ANY of the following conditions: "Ticket Is Created", "Ticket status Changed"
Set Notify webhook as the trigger action and select the webhook you created earlier.
In the JSON body field, use the following JSON template:
{
"ticket": {
"id": "{{ticket.id}}",
"url": "{{ticket.url}}",
"status": "{{ticket.status}}",
"title": "{{ticket.title}}",
"description": "{{ticket.description}}"
}
}
{% endverbatim %}
After setting up the connection, you can test it by creating a new ticket in Zendesk. You should see a new alert group in Grafana OnCall.