Skip to main content
When a deployment misbehaves, start with its logs and metrics. This page covers reading both from the console, the CLI, and the Management API. For metric definitions and Prometheus-style export, see Metrics and the other Observability pages.

Fetch and stream logs

Pull logs to debug an incident, grep for an error, or pipe context into an agent. Fetch a time window (up to 7 days back):
To view logs:
  1. Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
  2. Select your model.
  3. Select the deployment under Deployments.
  4. Choose Logs.
Filter by level or replica, search, or follow live output with the controls at the top of the logs view.
For more information about filters like log level, search patterns, and request ID, see logs and the logs endpoint (beta).

Fetch metrics

Pull metrics to check a deployment’s health from a script: replica count, request volume, and end-to-end latency quantiles.
To view metrics:
  1. Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
  2. Select your model.
  3. Select the deployment under Deployments.
  4. Choose Metrics.
The metrics view charts request rates by status code, latency percentiles, and replica counts. Set the window with the time-range selector at the top.
For more information about modes, windows, and metric selection, see metrics and the metrics endpoint (beta). For what each metric means, see Metrics.

Fetch environment logs and metrics

Deployment scope answers “what is this specific deployment doing?” Environment scope answers “what is production doing right now?”, which is usually the more useful operational question. An environment spans every deployment that has served it, so environment logs and metrics stay continuous across promotions: during and after a rollout, one view covers the outgoing and incoming deployments. Fetch them from any surface:
To view an environment’s logs and metrics:
  1. Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
  2. Select your model.
  3. On the model overview, choose Logs or View metrics for the environment.
You can also reach the same views from any deployment’s logs or metrics page: choose the environment from the dropdown in the upper left.
For more information, see environment logs and environment metrics, and the environment logs and environment metrics (beta) endpoints.

Next steps

Logs and metrics are the read half of every management workflow: check them before and after a mutation.