# Grafana

## Prerequisites: <a href="#prerequisites" id="prerequisites"></a>

This section explains on how to integrate and ingest alerts from Grafana alerting tool into CloudFabrix AIOPs platform.

Grafana provides a very rich, comprehensive visualizations and dashboards for metrics, logs & traces and supports many third party datasources like Prometheus, Elasticsearch, Influxdb, AWS, Azure etc. Additionally, it also supports alerting capability based on user defined alert rules. As part of it's alerting feature, it supports alert notifications via Email, Slack, Microsoft Teams, Webhook through HTTP action and others. CloudFabrix AIOPs platform uses webhook notification method from Grafana to receive and ingest the alert notifications.

Click here for [Alert Sources](/features-guide/alert-watch/alert-sources.md) to create a Webhook URL for Grafana alert notifications in CloudFabrix AIOps platform.

## **Configure Grafana for Alert notifications over a Webhook:** <a href="#create-webhook-for-incoming-alerts-from-dynatrace-1" id="create-webhook-for-incoming-alerts-from-dynatrace-1"></a>

**Step 1:** Login into Grafana UI portal with user account which has enough privileges to create and configure Alert notifications.

![](/files/-MVOL72aEeBIh-BQ7r-I)

**Step 2:** Click on '**Alerting**' on left menu and click on '**Notification Channels**'

![](/files/-MVOLoYmjywfqulEgqas)

**Step 3:** Click on '**Notification Channels**' and click on '**New channel**'

![](/files/-MVOMO-5rKu29PGe6ZFr)

**Step 4:** Enter the below details to create a Webhook notification channel for Grafana alerts.

* **Name:** Enter 'Webhook' name
* **Type:** Select type as '**Webhook**'
* **URL:** Enter the **Webhook URL** that was created in CloudFabrix AIOps platform.
* **Optional Webhook settings:**&#x20;
  * **Http Method:** Select the method as '**POST**'
  * **Username:** Enter the username for Webhook URL (optional)
  * **Password:** Enter the password for Webhook URL (optional)
* **Notification settings:**&#x20;
  * '**Default**' : select this option (optional: to make this Webhook notification enabled by default for all alerts in Grafana).&#x20;
  * '**Send Reminders**' : select this option

{% hint style="warning" %}
Do not select '**Disable Resolve Message**' option.&#x20;
{% endhint %}

* Click on **Test** & **Save** button to save the Webhook notification configuration.

![](/files/-MVOTLIBxFciKasyZNXU)

**Step 5:** After creating above Webhook alert notification channel, include it in all Alert rules to send the alert notifications to CloudFabrix AIOps platform.


---

# 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://oiadocs.cloudfabrix.io/integrations-guide/integrations/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.
