I want to know how it is possible to pass the title and message of the alert to the IRM module through a webhook. The steps I followed were the following:
- In the contact section → template
the following notification title was created with the code in the image.
- The template was assigned to the webhook title.
- The incident is shown in the IRM with a title that has nothing to do with what was configured.
I really don’t know what else I can do, my Grafana instance is cloud.
i need help
Hi @extrviloriab,
when you use a template for the title in a webhook contact point, it only affects the title field in the JSON payload of the outgoing webhook requests.
If you’re using this webhook with an IRM integration, you’ll need to adjust the IRM templates to use that title field as the incident title.
I haven’t tested it myself, but it should look something like this in the IRM template: {{ payload.title }}.
The screenshot below displays some predefined templates in IRM.
The Title field should be changed using IRM alert templates.
Hope it helps!