> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Export to Grafana Cloud

> Export metrics from Baseten to Grafana Cloud

The Baseten + Grafana Cloud integration enables you to get real-time inference metrics within your existing Grafana setup.

## Video tutorial

See below for step-by-step details from the video.

<iframe width="560" height="315" src="https://www.youtube.com/embed/jS-JgwbTVH8?si=UZdHWFgV6hc85ptH" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen" allowfullscreen />

## Set up the integration

Before you start, generate a metrics-only workspace [API key](/organization/api-keys) in your Baseten account.

To set up the integration:

1. Sign in to your Grafana Cloud account and go to **Home > Connections > Add new connection**.
2. In the search bar, type `Metrics Endpoint` and select it.
3. Give your scrape job a name like `baseten_metrics_scrape`.
4. Set the scrape job URL to `https://app.baseten.co/metrics`.
5. Leave the scrape interval set to **Every minute**.
6. Select **Bearer** for authentication credentials.
7. Enter the Bearer Token as `Api-Key abcd.1234567890`, replacing the latter value with your API key.
8. Choose **Test Connection** to confirm everything is entered correctly.
9. Choose **Save Scrape Job**.
10. Choose **Install**.
11. In your integrations list, select your new export and go through the **Enable** flow shown in the video.

Navigate to the **Dashboards** tab to see your data. Data can take a couple of minutes to arrive, and only new data is scraped, not historical metrics.

## Build a Grafana dashboard

Importing the data is the first step, but you need a dashboard to visualize the incoming information.

We've prepared a basic dashboard to get you started.

To import it:

1. Download `baseten_grafana_dashboard.json` from [this GitHub Gist](https://gist.github.com/philipkiely-baseten/9952e7592775ce1644944fb644ba2a9c).
2. Select **New > Import** from the dropdown in the top-right corner of the Dashboard page.
3. Drop in the provided JSON file.

For a visual reference, see the video above.
