https://app.baseten.co/metrics. Scrape this endpoint to monitor your models in Prometheus, Grafana Cloud, Datadog, New Relic, or another Prometheus-compatible system.
Create a metrics API key
Create a workspace API key for your collector. This key can export metrics but can’t deploy or invoke models.- Baseten CLI
- cURL
Sign in to the Baseten CLI:The CLI stores your login in a local profile. This profile authenticates Baseten CLI commands, but it doesn’t provide credentials to To restrict the key to specific models, repeat The CLI prints the key once:
curl, Prometheus, or another collector.Create the metrics key:--model-id for each model:Choose an integration
Scrape the endpoint once per minute. Baseten collects workload metrics every 30 seconds, so a shorter interval increases request volume without providing fresher data. Use one of the following integration guides:- Prometheus scrapes the endpoint directly.
- Grafana Cloud connects to the endpoint as a hosted scrape job.
- Datadog receives the metrics through an OpenTelemetry Collector.
- New Relic receives the metrics through an OpenTelemetry Collector.
Rate limit
The metrics endpoint accepts six requests per minute per organization. The limit applies across API keys and collectors in the organization. Requests above the limit return HTTP429 Too Many Requests.
Use a 60-second scrape interval for each collector. If you run multiple collectors, keep their combined request rate below six requests per minute.