Set up the integration
Create a metrics-only API key for the scrape job. To set up the integration:- Sign in to your Grafana Cloud stack and open Connections.
- Find and select Metrics Endpoint. On its Configuration page, create a scrape job.
- Give the job a name such as
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 API key as the token. Grafana adds the
Bearerprefix. - Choose Test Connection. Resolve any connection error before continuing.
- Choose Save Scrape Job to start collecting metrics.
- Choose Install to add the integration’s dashboard.
- Open Dashboards and select Metrics Endpoint Overview to check the scrape job’s status.
Build a Grafana dashboard
Use the exported metrics reference to build panels for your deployment. You can also import the Baseten starter dashboard:- Download the starter dashboard JSON.
- On the Dashboards page, select New > Import dashboard.
- Upload the JSON file and select your Grafana Cloud Prometheus data source for its panels.
- Select Import to create the dashboard.