# Configure Grafana with Last9 as Datasource

> How to configure Grafana with Last9 cluster as datasource and visualize the metrics stored in Last9

Source: https://last9.io/docs/grafana-config/

## How to configure Grafana for Last9?

Create a new data source with the appropriate URL.

![Add New Data Source in Grafana](../../../../../assets/content/docs/control-plane/query/levitate-grafana-config/ba92d7c-1.png)

Each Last9 Cluster comes with a Read URL which needs to be used when creating
a Data Source in Grafana.

![Last9 Read Data Settings](../../../../../assets/content/docs/control-plane/query/levitate-grafana-config/levitate-cluster-read-data-settings-tab.png)

Here’s an example of creating a Data Source using the Read URL. You can grab the
Read URL either:

- While creating your cluster → Read Data → Bring Your Own Visualization
- Or, by going to the Last9 Cluster → Settings → Read Data → Bring Your Own
  Visualization

![Add Last9 Cluster as Prometheus Compatible Data Source in Grafana](../../../../../assets/content/docs/control-plane/query/levitate-grafana-config/cc33383-Screenshot_2022-09-25_at_1.23.11_PM.png)

:::note
Last9 Read URL mandates authenticated access. Create a Read Token for your
cluster and use it as `password`. Use the cluster id as `user`.
Add the `user` and `password` in the `Basic Auth Details`
section while creating data source in Grafana.
:::

Make sure that the status of the data source appears as all ✅.

![Last9 Cluster as Prometheus Compatible Data Source Status](../../../../../assets/content/docs/control-plane/query/levitate-grafana-config/c20f2ba-3.png)

After this, try exploring data or create a new dashboard in Grafana based on
metrics in Last9.

---

## Troubleshooting

Please get in touch with us on [Discord](https://discord.com/invite/Q3p2EEucx9) or [Email](mailto:support@last9.io) if you have any questions.
