BASETEN_API_KEY to a Baseten API key. Replace the model and deployment ID placeholders with your IDs.
Fetch and stream logs
Pull logs to debug an incident, filter for an error, or use the output in a script. Fetch a time window of up to 7 days:- UI
- Baseten CLI
- Management API
To view logs:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Choose Logs.
- Open the dropdown showing the current environment or deployment, then choose your deployment under Switch deployments.
logs
and the logs endpoint.
Fetch metrics
View or fetch a deployment’s replica count, request volume, and end-to-end latency quantiles to check its health.- UI
- Baseten CLI
- Management API
To view metrics:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Choose Metrics.
- Open the dropdown showing the current environment or deployment, then choose your deployment under Switch deployments.
metrics
and the metrics endpoint
(beta). For what each metric means, see
Metrics.
Fetch environment logs and metrics
Use environment scope to follow logs and metrics across promotions. It includes the deployments serving that environment during the selected time window, so you can investigate a rollout without querying each deployment separately.- UI
- Baseten CLI
- Management API
To view an environment’s logs and metrics:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Choose Logs or Metrics.
- Open the dropdown showing the current environment or deployment, then choose your environment under Switch environments.
environment logs and
environment metrics,
and the
environment logs endpoint
and environment metrics endpoint (beta).
Next steps
Check logs and metrics before and after a deployment change.- Terminate a stuck replica you found misbehaving in the logs.
- Scale a deployment if metrics show sustained queueing or idle replicas.
- Interpret dashboard graphs with the Metrics guide, or look up exact names, types, and labels in the exported metrics reference.