> 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

Connect your Grafana alerts to Alertifii

## 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="https://4059339820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYLElpJRLDaOOvnODg4sV%2Fuploads%2F99FhnF9cSJlAkpBNJLqR%2Fimage.png?alt=media&amp;token=341de1ca-27cb-457a-a935-aba3eaf3575f" 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="https://4059339820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYLElpJRLDaOOvnODg4sV%2Fuploads%2FTXKq5WHpwOUSgbXx96eT%2Fimage.png?alt=media&amp;token=49a636e4-de5c-477a-b2cc-6fd14ecf7124" 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="https://4059339820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYLElpJRLDaOOvnODg4sV%2Fuploads%2FmSf9HveYfN6bbTxBQc8K%2Fimage.png?alt=media&amp;token=6cad3b79-5970-49e1-af48-3bb383c53833" 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="https://4059339820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYLElpJRLDaOOvnODg4sV%2Fuploads%2Fdt71KEqVm7ceMBMog1Ln%2Fimage.png?alt=media&amp;token=cf72fef7-132d-41fd-bcc6-e2225c6b48d7" alt=""><figcaption><p>Set the Root policy in Grafana to use the Alertifii contact point.</p></figcaption></figure>
