# Grafana 8

[<mark style="color:blue;">Grafana</mark>](https://grafana.com/docs/grafana/latest/whatsnew/whats-new-in-v8-0/) is a data visualization platform that allows you to query, visualize and alert on metrics no matter where they are stored.

Route detailed alerts from Grafana 8 to the right users in Squadcast.

{% hint style="info" %}
This integration guide can be used for Grafana 8 and above versions.
{% endhint %}

### How to integrate Grafana 8 with Squadcast

### In Squadcast: Using Grafana 8 as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media&#x26;token=aaca6610-9d18-4dd4-9cf5-320042f326f1" alt="Integrate Grafana 8 and above with Squadcast"><figcaption></figcaption></figure>

2\. Select **Grafana 8**. Copy the displayed **Webhook URL** to [configure](#in-grafana-8-create-a-squadcast-webhook-as-a-notification-channel) it within **Grafana 8.** Finish by clicking **Add Alert Source** -> **Done**.

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-0aad27a7198d4fd2b2d04d72a70a938026476f7a%2FGrafana%208.png?alt=media&#x26;token=ee6662ad-26b5-4071-89e9-a6d8e6082f90" alt="Add Grafana 8 as an alert source in Squadcast"><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### In Grafana 8: Create a Squadcast Webhook as a Notification Channel

1\. Login to your Grafana 8 dashboard, click on the **Alerting (Bell)** icon and select **Contact points**

![Creating Squadcast Webhook as a notification channel in Grafana](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-bae109717da01136f8017750ab91c53faea66c62%2FGrafana_gb_1.png?alt=media)

2\. Click on **New contact point**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-9365f546af564c52b880bef7a22a4fa5782387fa%2Fgrafana_v8_3%202.png?alt=media" alt="Integrate Squadcast with Grafana 8"><figcaption></figcaption></figure>

3\. Enter `Name` as **Squadcast**, under `Contact point type`- select **Webhook** and under `URL`, paste the previously copied Webhook URL from Squadcast

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-158ff0e9dadecd4fcb72cfae14858c5d725040ca%2Fgrafana_v8_4%202.png?alt=media" alt="Test Grafana 8 and Squadcast integration"><figcaption></figcaption></figure>

4\. Click on **Save** to enable the integration. You can test the integration by clicking on **Test**. This will trigger a test incident in Squadcast

Now, whenever an alert is triggered in Grafana 8, an incident will be created in Squadcast. When an alert is resolved in Grafana 8, the corresponding incident will automatically get resolved in Squadcast, provided the **Disable Resolve Message** checkbox is **unchecked**.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
