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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
