# Integrate Grafana

Connect Exoscale Managed Grafana (or external Grafana) to query metrics from Thanos.

## Create your Data Source
Connect to your Grafana Dashboard.
> [!NOTE]
> If you have an issue accessing it, verify on the Exoscale Console in your DBaaS Grafana Config 
> that you have an IP filter set (like 0.0.0.0/0 if you want it open to all IPs).

In the Menu, go to Connections > Data sources
<img src="grafana-menu-datasource.png" width="300"/>


Add new data source (on the top right)

Choose Prometheus
<img src="grafana-menu-prometheus.png" width="600"/>

Click on Prometheus and configure it

![](grafana-thanos-datasource.png "Thanos datasource creation")

> [!NOTE]
> - Add your Data source name, here "Prometheus"
> - Add your Prometheus server URL : `https://yyyyyy-exoscale-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.i.aivencloud.com:21700`
> - Add your Basic Authentication with User and Password
> - Then click on Save and test

## Create your Dashboard
Just click on "Create dashboard" in Dashboards section
and select your newly created Datasource. Then explore your metrics for your board.

![](grafana-create-dashboard.png)

