> For the complete documentation index, see [llms.txt](https://docs.alertifii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alertifii.com/webhook-templates/grafana.md).

# Grafana

## Alertifii Grafana Webhook Template

In Alertifii, modify the integration to use the following templates:

* Title Template - `<%= request['params']['title'] %>`
* Body Template - `<%= request['params']['message'] %>`&#x20;

## Grafana Configuration

### Create a Contact Point

1. In Grafana, navigate to **Alerting -> Contact Points**.&#x20;

   <figure><img src="/files/zJWOjQAFjH2UGw6SbP9S" alt=""><figcaption><p>In Grafana, navigate to Alerting -> Contact points.</p></figcaption></figure>
2. Click **+ New contact point** button.
3. In the Create contact point form
   1. `Name` - Alertifii
   2. `Contact point type` - Webhook
   3. `URL` - Your integration webhook URL&#x20;

      <figure><img src="/files/riYo7fYYpHRvDumF0iHd" alt=""><figcaption><p>In Grafana, create the Alertifii contact point.</p></figcaption></figure>
4. Click **Save contact point** button.

### Configure Notification Policy

1. In Grafana, navigate to **Alerting -> Notification Policies**&#x20;

   <figure><img src="/files/FpYYehr9ouit1tzcQq67" alt=""><figcaption><p>In Grafana, navigate to Alerting -> Notification Policies</p></figcaption></figure>
2. Set the "Root policy" to notify your newly created Alertifii Contact point.&#x20;

   <figure><img src="/files/B1iw6agaoM1FrIENDZLC" alt=""><figcaption><p>Set the Root policy in Grafana to use the Alertifii contact point.</p></figcaption></figure>
