Video tutorial
See below for step-by-step details from the video.Set up the integration
For a visual guide, please follow along with the video above. Open your Grafana Cloud account:- Navigate to “Home > Connections > Add new connection”.
- In the search bar, type
Metrics Endpoint
and select it. - Give your scrape job a name like
baseten_metrics_scrape
. - Set the scrape job URL to
https://app.baseten.co/metrics
. - Leave the scrape interval set to
Every minute
. - Select
Bearer
for authentication credentials. - In your Baseten account, generate a metrics-only workspace API key.
- In Grafana, enter the Bearer Token as
Api-Key abcd.1234567890
where the latter value is replaced by your API key. - Use the “Test Connection” button to ensure everything is entered correctly.
- Click “Save Scrape Job.”
- Click “Install.”
- In your integrations list, select your new export and go through the “Enable” flow shown on video.
Build a Grafana dashboard
Importing the data is a great first step, but you’ll need a dashboard to properly visualize the incoming information. We’ve prepared a basic dashboard to get you started, which you can import by:- Downloading
baseten_grafana_dashboard.json
from this GitHub Gist. - Selecting “New > Import” from the dropdown in the top-right corner of the Dashboard page.
- Dropping in the provided JSON file.