# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alertifii.com/webhook-templates/grafana.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
