Video tutorial
See below for step-by-step details from the video.Set up the integration
Before you start, generate a metrics-only workspace API key in your Baseten account. To set up the integration:- Sign in to your Grafana Cloud account and go to Home > Connections > Add new connection.
- In the search bar, type
Metrics Endpointand 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.
- Enter the Bearer Token as
Api-Key abcd.1234567890, replacing the latter value with your API key. - Choose Test Connection to confirm everything is entered correctly.
- Choose Save Scrape Job.
- Choose Install.
- In your integrations list, select your new export and go through the Enable flow shown in the video.
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:- Download
baseten_grafana_dashboard.jsonfrom this GitHub Gist. - Select New > Import from the dropdown in the top-right corner of the Dashboard page.
- Drop in the provided JSON file.