> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics

> Compare request load, latency, and resource usage in the Metrics tab.

Use the **Metrics** tab in your model dashboard to compare request load, latency, and resource usage.

1. Sign in to [app.baseten.co](https://app.baseten.co), choose **Dedicated Inference**, and select your model.
2. Open the **Metrics** tab.
3. Use the scope dropdowns to select an environment or deployment, then choose a time range.

This page covers model metrics. For sandboxes, see [Inspect sandbox metrics](https://docs.baseten.co/sandboxes/metrics.md).

Environment scope aggregates metrics across every deployment in that environment, which helps you watch a rollout or compare trends across the whole environment. Deployment scope restricts metrics to a single deployment ID for diagnosing one version in isolation.

![Model dashboard showing inference volume, latency, and resource graphs](https://mintcdn.com/baseten-preview/W3NbEem9OZkF5rdB/images/observability.png?fit=max\&auto=format\&n=W3NbEem9OZkF5rdB\&q=85\&s=a81bbd59a02719c6814e62fdbfa89ec3)

For exact exported names, types, and labels, see the [exported metrics reference](https://docs.baseten.co/observability/export-metrics/supported-metrics.md). To retrieve metrics with the CLI or API, see [View logs and metrics](https://docs.baseten.co/deployment/manage/logs-and-metrics.md).

## Compare replicas

When a deployment has high latency or errors, compare replicas to find whether one behaves differently from its peers. Turn on **Per replica** to compare request load, resource usage, and available engine metrics within an environment or deployment.

> [!NOTE]
>
> The **Replica** selector and **Per replica** switch appear only in workspaces with access to per-replica metrics.

To compare replicas in the **Metrics** tab:

1. Select a deployment or environment with the scope dropdowns.
2. Choose a time range that includes the behavior you want to investigate.
3. Turn on **Per replica**.
4. Open **Replica**, search by replica name, and select one or more replicas to compare.
5. For a latency or payload-size graph with a replica breakdown, choose a percentile such as **p90**. For **Inference volume**, select a status code beneath the graph to compare multiple replicas.
6. Compare the selected replicas' lines.

With one replica selected, **Inference volume** shows that replica's responses by status code. The status-code values update to reflect your selection.

Selecting a replica also turns on **Per replica**. The selector lists replicas from the selected time range, including replicas that no longer run. Choose **All** in **Replica** to clear the selection. Turn off **Per replica** to return to aggregate graphs.

The replica selector and each chart can show different sets of replicas. A replica can have resource metrics without serving requests during the selected time range. Request charts show the replicas with matching response data, so fewer lines don't necessarily mean fewer running replicas.

![Anonymized metrics example with two replicas selected and Per replica enabled](https://mintcdn.com/baseten-preview/v-YZq5FsJuM1Vjuh/images/observability/per-replica-comparison.png?fit=max\&auto=format\&n=v-YZq5FsJuM1Vjuh\&q=85\&s=56bce111bcad1c997889aa9fc433771c)

### Filter charts by replica

Hover over a replica's name in a chart legend to show its filter icon. Select the icon to add or remove that replica from the page's **Replica** selection. Supported charts update together. Clicking the replica's name instead selects its series within that chart.

Use **Replica** to choose the replicas you want to compare, or choose **All** to clear the page filter.

### Open metrics from logs

In the **Logs** tab, select a worker's name in the **Replica** column and choose **View metrics**. The Metrics view opens with **Per replica** on, that worker selected, and a matching time range. Compare its resource usage and available engine metrics. See [Open metrics for a worker](https://docs.baseten.co/observability/logs.md#open-metrics-for-a-worker).

### Investigate uneven traffic

Use the [available graphs](#graph-availability) to narrow an investigation:

| Compare | Look for |
| - | - |
| CPU usage and memory | A replica using more CPU or memory than its peers. |
| GPU metrics | Differences in GPU usage, memory usage, temperature, or tensor core utilization. |
| Engine input and output tokens, where available | A replica processing fewer tokens than its peers over the same time range. |
| Restarts, where available | A replica restarting more often than its peers. |
| Inference volume | Differences in response volume or error rates across replicas. |
| End-to-end response time, time to first byte, and payload sizes | Differences in latency or payload sizes across replicas. |

For example, compare input and output token metrics over the same time range. If one replica processes fewer tokens than its peers, compare its GPU usage, memory, and logs to investigate. A difference identifies a replica to inspect; it doesn't establish the cause.

Custom servers such as vLLM and SGLang can also expose engine metrics with a replica breakdown. Use **Customize view** to show the available engine graphs.

### Understand grouped replicas

When a chart contains many replicas, it prioritizes outliers for individual lines so you can spot replicas whose metrics differ from their peers. It groups the remaining replicas under **others**. The gray band spans the grouped replicas' p10 to p90 values at each point in time. If the chart reaches its line limit, additional outliers remain in **others**.

![A per-replica chart with individual colored lines, a gray percentile band, and an others legend entry that includes outliers](https://mintcdn.com/baseten-preview/mej-cJrCGXtf6lyd/images/observability/grouped-replicas-redacted.png?fit=max\&auto=format\&n=mej-cJrCGXtf6lyd\&q=85\&s=c6f62902acfcb53ca9693e3ea4211d6c)

To inspect a grouped replica, select it in **Replica**.

### Graph availability

Some graphs still show aggregate values when **Per replica** is on. Check the note beneath a graph to see why.

* Incoming request volume and inference time remain aggregate graphs. Concurrent requests support a replica breakdown only for [BIS-LLM (Baseten Inference Stack)](https://docs.baseten.co/engines/bis-llm/overview.md) deployments.
* WebSocket and gRPC models support a per-replica breakdown for inference volume, end-to-end latency, time to first byte, and request and response size. Inference volume uses WebSocket close codes or gRPC status codes for the status-code breakdown.
* For BIS-LLM deployments, inference volume, end-to-end response time, time to first byte, and payload-size graphs remain aggregate. This limitation applies to both aggregated and disaggregated serving.

With disaggregated serving, a request passes through multiple workers, so its end-to-end behavior doesn't belong to a single replica. Compare resource usage and [BIS-LLM token metrics](#bis-llm-metrics) instead. Aggregated BIS-LLM serving also lacks the replica attribution needed for these request charts; using a single serving replica per request doesn't by itself enable the breakdown.

If **Replica** and **Per replica** are disabled, hover over either control to see why. If no replicas ran in the selected time range, choose a range when the deployment had running replicas.

## Customize your view

Use **Customize view** to choose which graphs appear and how to arrange them:

1. In the **Metrics** tab, open **Metrics options** and choose **Customize view**.
2. Select a graph to show or hide it.
3. Drag graphs in the list to change their order.
4. Close **Customize view** to return to the dashboard.

The dashboard saves your layout per model in your browser. Hidden graphs remain in **Customize view** so you can show them again.

## Events

Use **Events** to overlay platform events on your graphs:

1. In the **Metrics** tab, open **Events**.
2. Turn on **Show events** and select the event types you want to include.
3. Hover over an event marker to see its details.

Compare event timestamps with changes in response time or replica count to identify changes worth investigating.

Event overlays are available for models. Shared Model API endpoints and training jobs don't have this overlay.

Baseten marks these events:

* **Deployed:** a new deployment, with its target environment.
* **Promoted:** a deployment promoted to an environment.
* **Promotion control action:** a pause, resume, or roll-forward during a promotion.
* **Autoscaling changed:** a new replica range or concurrency target.
* **Activated** and **Deactivated:** a deployment turned on or off.
* **Instance type changed:** a move to a new instance type.
* **Replica terminated:** an individual replica shut down.
* **Environment updated:** a change to an environment.

## Inference volume

Tracks the response rate over time, segmented by HTTP status codes:

* **`2xx`:** Successful requests.
* **`4xx`:** Client errors.
* **`5xx`:** Server errors, including model prediction exceptions.

> [!NOTE]
>
> WebSocket and gRPC deployments report protocol-specific status codes. For WebSocket connections, see [WebSocket status codes](https://docs.baseten.co/development/model/websockets.md#inference-volume).

***

## Incoming request volume

Tracks the rate of requests arriving at your deployment, before they're routed to the model. Compare it with [Inference volume](#inference-volume), which counts responses by status code. Requests can arrive and complete in different time windows, so a temporary difference doesn't establish that requests failed. To export the same series, see [`baseten_incoming_inference_requests_total`](https://docs.baseten.co/observability/export-metrics/supported-metrics#baseten_incoming_inference_requests_total).

***

## Response time

Measured at different percentiles (p50, p90, p95, p99):

* **End-to-end response time:** Includes cold starts, queuing, and inference. Excludes the network round trip between your client and Baseten.
* **Inference time:** Covers model execution, including preprocessing and postprocessing.
* **Time to first byte:** Measures the time from request receipt to the first byte Baseten writes back, including any queueing and routing time. It approximates time to first token (TTFT), because Baseten doesn't parse tokens out of your model's response. [Model API endpoints](#model-apis-metrics) graph time to first token instead.

To see how long each replica took to start and which phase dominated, use the **Startup time** card described in [Startup times](https://docs.baseten.co/deployment/autoscaling/startup-times.md#measure-startup-time).

***

## Request and response size

Measured at different percentiles (p50, p90, p95, p99):

* **Request size:** Request payload size in bytes.
* **Response size:** Response payload size in bytes.

Payload size also includes formatting and non-text content. Use engine token metrics when you need token counts.

***

## Replicas

Tracks how many replicas the autoscaler is targeting and how many you have:

* **Desired:** The number of replicas your [autoscaling settings](https://docs.baseten.co/deployment/autoscaling/overview.md) call for at the current [concurrent request](#concurrent-requests) volume. BIS-LLM deployments target [in-flight tokens](https://docs.baseten.co/engines/performance-concepts/autoscaling-engines.md) instead.
* **Starting:** Waiting for resources or loading the model.
* **Active:** Ready to serve requests. For development deployments, a replica counts as active while it runs the live reload server.

Compare **Desired** with **Active** and **Starting** to see whether available capacity is catching up with the autoscaler's target. A persistent gap needs investigation into deployment status, startup logs, and capacity; the graph alone doesn't identify the cause.

For scaling controls, see [Autoscaling](https://docs.baseten.co/deployment/autoscaling/overview.md). For a persistent gap or slow scale-up, see [Autoscaling troubleshooting](https://docs.baseten.co/troubleshooting/deployments.md#autoscaling-issues).

The [exported metrics reference](https://docs.baseten.co/observability/export-metrics/supported-metrics.md#baseten_replicas_desired) defines the replica count series. To distinguish replicas by their Kubernetes Ready condition, see [`baseten_pod_readiness`](https://docs.baseten.co/observability/export-metrics/supported-metrics#baseten_pod_readiness).

***

## Restarts

Tracks the cumulative number of times the model container has restarted. Application crashes, out-of-memory kills, or failed [liveness probes](https://docs.baseten.co/development/model/health-checks.md#liveness-probe) can cause restarts.

Frequent restarts usually indicate one of:

* A crash in `load()` or in your model code.
* An out-of-memory event: check the **Memory usage** graph.
* A liveness probe failing under load: review `restart_threshold_seconds` and any [custom health check logic](https://docs.baseten.co/development/model/health-checks.md#custom-health-check-logic).

***

## Concurrent requests

Total concurrent inference requests across replicas, including both requests currently being serviced and requests waiting to be processed. [Async inference requests](https://docs.baseten.co/inference/async.md) aren't included in this metric.

Concurrency drives [request-based autoscaling](https://docs.baseten.co/deployment/autoscaling/overview.md). BIS-LLM deployments use [in-flight tokens](https://docs.baseten.co/engines/performance-concepts/autoscaling-engines.md). For the full metric definition and labels, see [`baseten_concurrent_requests`](https://docs.baseten.co/observability/export-metrics/supported-metrics#baseten_concurrent_requests).

This metric is a sampled gauge. Short requests can begin and finish between samples, while inference volume counts completed responses over a time window. For steady traffic, the relationship is approximately:

`average concurrency ≈ requests per second × average end-to-end latency`

For example, 600 requests per minute at 80 ms average latency implies about 0.8 concurrent requests. Individual samples can still read zero. Compare concurrency with request rate and latency over the same period before interpreting a zero as no traffic.

***

## CPU usage and memory

In the aggregate view, **CPU usage** shows average CPU usage across replicas, in cores. **CPU memory** shows average working-set memory usage across replicas. Aggregation can hide brief spikes or one replica using more resources than the others. Use [per-replica metrics](#compare-replicas) to compare individual replicas.

Compare resource usage with latency and [deployment logs](https://docs.baseten.co/observability/logs.md) to assess whether a resource limit affects requests before changing instance size.

***

## GPU usage and memory

In the aggregate view:

* **GPU usage:** Average GPU utilization across replicas, as a percentage.
* **GPU memory:** Average memory used per GPU.
* **GPU temperature:** Average GPU temperature across replicas, in degrees Celsius.
* **GPU tensor core utilization:** Average tensor core utilization across replicas, as a percentage. Availability depends on GPU profiling support.
* **GPU memory bandwidth utilization:** Average memory read and write activity across GPUs, as a percentage.

In **Per replica** view, GPU memory reports the average memory used per GPU within each replica.

Use [per-replica metrics](#compare-replicas) to compare individual replicas.

Compare these graphs with response time, request volume, concurrent requests, and replica counts over the same period. Use [Customize your view](#customize-your-view) to show the graphs you need.

GPU usage and tensor core utilization measure different activity, so their values don't need to match.

See [`baseten_gpu_utilization`](https://docs.baseten.co/observability/export-metrics/supported-metrics#baseten_gpu_utilization) and [`baseten_gpu_memory_used`](https://docs.baseten.co/observability/export-metrics/supported-metrics#baseten_gpu_memory_used) for export units and hardware-specific behavior. The [exported metrics reference](https://docs.baseten.co/observability/export-metrics/supported-metrics.md) lists which dashboard metrics you can collect externally.

For diagnostic checks and corrective actions, see [GPU performance issues](https://docs.baseten.co/troubleshooting/inference.md#gpu-performance-issues).

***

## Organization GPU usage

The GPU graphs above follow the selected model scope. To see how many GPUs your whole workspace is using at once, organization admins can open the **GPU usage** tab in Organization settings. This view counts *active GPUs* (ready replicas multiplied by the GPUs each replica uses), aggregated across every model and deployment in the organization.

To view organization GPU usage:

1. Sign in to your workspace at [app.baseten.co](https://app.baseten.co) and open **Organization settings**.
2. Choose the **GPU usage** tab.
3. Use **Group by** to choose **GPU type** (the default) or **Model**.
4. Use the **GPU** filter to select the GPU types you want to view.
5. Use the time-range selector to choose a window up to the last 7 days.
6. To clear the GPU filter, choose **Reset**.

***

## vLLM and SGLang metrics

When your deployment serves an LLM with [vLLM](https://docs.baseten.co/examples/vllm.md) or [SGLang](https://docs.baseten.co/examples/sglang.md), Baseten surfaces engine-native metrics in the Metrics tab alongside the standard ones. These graphs report what the inference engine itself measures: token throughput, decode latency, cache usage, and the number of requests running or queued.

See [LLM token speed](#llm-token-speed) for how decode speed differs from aggregate token throughput.

### How detection works

Baseten scrapes your container's `/metrics` endpoint and looks for metrics that match the vLLM or SGLang format. When it finds them, the matching graphs appear in the Metrics tab automatically. Your engine must expose its metrics first. For SGLang, start the server with `--enable-metrics`; see [SGLang's metrics configuration](https://docs.sglang.io/docs/references/production_metrics).

If engine graphs are absent from **Customize view**, confirm that the selected deployment exposes Prometheus metrics on `/metrics`. For [custom servers](https://docs.baseten.co/development/model/custom-server.md), this route passes through to your server.

Detection uses cached results. Newly emitted metrics don't make graphs appear immediately. If graphs remain unavailable, check the endpoint and selected deployment, then [contact support](mailto:support@baseten.co).

### Show and hide graphs

Many of these engine graphs are hidden by default. Turn them on with [Customize your view](#customize-your-view).

The available data depends on what your engine version emits. Latency graphs show p50, p90, p95, and p99. Counter graphs show changes over each chart interval, or a rate where the graph specifies tokens per second.

### Export engine metrics

The Metrics tab shows a selection of engine graphs. You can also collect supported engine metrics through the [metrics export endpoint](https://docs.baseten.co/observability/export-metrics/overview.md). See [vLLM and SGLang metrics](https://docs.baseten.co/observability/export-metrics/supported-metrics.md#vllm-and-sglang-metrics) for the exact exported names, types, labels, and availability conditions.

***

## BIS-LLM metrics

When your deployment runs on the [BIS-LLM engine](https://docs.baseten.co/engines/bis-llm/overview.md), the Metrics tab adds engine graphs alongside the standard metrics above. The available graphs depend on the deployment configuration and enabled features.

* **Token throughput:** input and output tokens over time, with per-request distributions for input tokens, output tokens, and output tokens per second.
* **Decode tokens per second:** how quickly individual streams generate output after the first token.
* **KV cache hit rate:** the cache hit rates your workers observe. Compare hit rate with time to first byte to investigate changes in prefix reuse and prefill work.
* **Time to first byte:** on BIS-LLM deployments this graph is measured inside the engine, covering engine queueing and prefill but not platform routing, unlike the [standard time to first byte](#response-time), which includes routing time. [Response time](#response-time) still covers the end-to-end view.
* **In-flight tokens per worker:** the load signal the BIS-LLM autoscaler acts on, covering tokens being processed and queued at the router.

An acceptance rate graph is available when the deployment exposes speculative decoding metrics. Hide or show individual graphs with [Customize your view](#customize-your-view).

### Export engine metrics

Supported BIS-LLM export series use the `baseten_llm_*` prefix. Collect them in your observability stack through the [metrics export endpoint](https://docs.baseten.co/observability/export-metrics/overview.md). The reference includes accepted and draft token counters for speculative decoding. For the full list with types and labels, see [BIS-LLM metrics](https://docs.baseten.co/observability/export-metrics/supported-metrics.md#bis-llm-metrics).

***

## LLM token speed

Distinguish the speed of an individual response from the total number of tokens a deployment generates:

* **Decode tokens per second:** Output generation speed after the first token.
* **Output tokens per second per request:** Output tokens divided by the request's full processing time, including first-token delay.
* **Output token throughput:** Total output tokens generated per second across requests. Some engine graphs call this generation throughput.

Use decode speed to investigate streaming performance. Use output tokens per second per request to include first-token delay. Use aggregate output token throughput to measure total serving capacity.

The BIS-LLM and Model APIs time-per-output-token histogram records chunks that contain new output tokens after the first chunk. Each observation measures time since the previous chunk divided by new output tokens. A chunk containing several tokens has the same weight as a single-token chunk. Longer responses generally contribute more observations.

The decode mean derived from this histogram is `1 / mean(time per output token)`. It isn't the arithmetic mean of the tokens-per-second values for each chunk. vLLM and SGLang define their own engine histograms; see their links in the [engine metrics reference](https://docs.baseten.co/observability/export-metrics/supported-metrics.md#vllm-and-sglang-metrics).

### Compute decode tokens per second from exports

Baseten exports the [`baseten_llm_time_per_output_token_seconds`](https://docs.baseten.co/observability/export-metrics/supported-metrics#baseten_llm_time_per_output_token_seconds) histogram with these series suffixes: `_bucket_total`, `_count_total`, and `_sum_total`. Because throughput inverts latency, high latency quantiles describe the slow end of throughput. For example, the reciprocal of p99 latency estimates p1 throughput. Histogram quantiles are estimates based on bucket boundaries.

These queries aggregate replicas within one deployment over 5 minutes. Replace `<DEPLOYMENT_ID>` with your deployment ID. The histogram must be [available for your organization](https://docs.baseten.co/observability/export-metrics/supported-metrics.md#availability) and have observations in that window.

Mean decode rate derived from the histogram:

```promql theme={"system"}
  sum(rate(baseten_llm_time_per_output_token_seconds_count_total{deployment_id="<DEPLOYMENT_ID>"}[5m]))
/ sum(rate(baseten_llm_time_per_output_token_seconds_sum_total{deployment_id="<DEPLOYMENT_ID>"}[5m]))
```

Median (p50) decode tokens per second:

```promql theme={"system"}
1 / histogram_quantile(
  0.5,
  sum by (le) (rate(baseten_llm_time_per_output_token_seconds_bucket_total{deployment_id="<DEPLOYMENT_ID>"}[5m]))
)
```

Estimated slow tail (p1 throughput from p99 latency):

```promql theme={"system"}
1 / histogram_quantile(
  0.99,
  sum by (le) (rate(baseten_llm_time_per_output_token_seconds_bucket_total{deployment_id="<DEPLOYMENT_ID>"}[5m]))
)
```

***

## Model APIs metrics

[Model API](https://docs.baseten.co/inference/model-apis/overview.md) endpoints have their own Metrics tab. Because you call a shared endpoint rather than run your own replicas, the tab graphs request and token metrics, not the replica and hardware metrics above.

* **Inference volume:** response rate over time, segmented by HTTP status code.
* **Rate limited requests:** rate of requests the endpoint rejects for exceeding your [rate limits](https://docs.baseten.co/inference/model-apis/pricing-and-limits.md).
* **End-to-end response time:** time from request receipt to the last byte of the response, including queueing and inference.
* **Time to first token:** first-token latency for the endpoint. Its measurement depends on the serving path; compare it with end-to-end response time when investigating delays.
* **Request size** and **Response size:** request and response payload size distributions.
* **Decode tokens per second:** per-stream output token generation rate after the first token. See [LLM token speed](#llm-token-speed).
* **Total tokens:** tokens per second the endpoint processes for your workspace.

The latency and size graphs report the p50, p90, p95, and p99 percentiles.

### Export Model API metrics

Supported Model API export series use the `baseten_model_api_*` prefix. Collect them in your observability stack through the [metrics export endpoint](https://docs.baseten.co/observability/export-metrics/overview.md). That includes per-status-code request counts, so you can alert on `429` responses, and the split of cached versus uncached input tokens. For the full list with types and labels, see [Model API metrics](https://docs.baseten.co/observability/export-metrics/supported-metrics.md#model-api-metrics).

### Fetch Model API metrics with the Management API

To read request and token metrics on demand instead of exporting them, call [`GET /v1/model_apis/{model_api_name}/metrics`](https://docs.baseten.co/reference/management-api/model-apis/get-model-api-metrics). The endpoint returns each series labeled by `team_id` for the teams you can manage.

Set `mode` to `SUMMARY` for one value set across the window or `SERIES` for evenly spaced value sets. The default, `CURRENT`, returns one snapshot at the current time and takes no window.

The window defaults to the hour before the request and can span up to 7 days. Pass `metrics` to choose series. Without it, the endpoint returns `baseten_model_api_inference_requests_total`, `baseten_model_api_incoming_inference_requests_total`, and `baseten_model_api_tokens_total`. Pass `team_ids` to limit the response to specific teams. For every parameter, see [Get Model API metrics](https://docs.baseten.co/reference/management-api/model-apis/get-model-api-metrics.md).

**To fetch a summary of Model API request and token metrics**:

Set `BASETEN_API_KEY` to a [workspace API key](https://docs.baseten.co/organization/api-keys.md), replace `<model_api_name>` with the name from [List all Model APIs](https://docs.baseten.co/reference/management-api/model-apis/gets-all-model-apis.md), and run the following command:

```bash theme={"system"}
curl --get "https://api.baseten.co/v1/model_apis/<model_api_name>/metrics" \
  --header "Authorization: Bearer $BASETEN_API_KEY" \
  --data-urlencode "mode=SUMMARY" \
  --data-urlencode "metrics=baseten_model_api_inference_requests_total" \
  --data-urlencode "metrics=baseten_model_api_tokens_total"
```

The response contains one value set for the default one-hour window, with each series labeled by team. Check that it includes one value set for each requested metric and team.

**To fetch the same summary for the last 24 hours**:

Set the window in epoch milliseconds with `start_epoch_millis` and `end_epoch_millis`, then run the following command:

```bash theme={"system"}
END=$(( $(date +%s) * 1000 ))
START=$(( END - 24 * 60 * 60 * 1000 ))
curl --get "https://api.baseten.co/v1/model_apis/<model_api_name>/metrics" \
  --header "Authorization: Bearer $BASETEN_API_KEY" \
  --data-urlencode "mode=SUMMARY" \
  --data-urlencode "start_epoch_millis=$START" \
  --data-urlencode "end_epoch_millis=$END" \
  --data-urlencode "metrics=baseten_model_api_inference_requests_total" \
  --data-urlencode "metrics=baseten_model_api_tokens_total"
```

***

## Async queue metrics

* **Time in async queue:** Time spent waiting in the queue before processing begins, at p50, p90, p95, and p99.
* **Async queue size:** Requests waiting for a replica to pick them up.
* **Webhook requests:** Rate of [async webhook](https://docs.baseten.co/inference/async.md) delivery requests, grouped by HTTP status code.
* **Webhook latency:** Duration of webhook delivery calls, including retries within each call, at p50, p90, p95, and p99. Failed calls also contribute observations.

Queue size is a sampled gauge. Requests that pass through the queue between samples might not appear in it. Sustained queue growth means arrivals are outpacing processing; compare queue time, replica counts, and logs before tuning [async concurrency](https://docs.baseten.co/inference/async.md#sync-vs-async-concurrency).

## Use metrics for autoscaling

Compare request load, response time, and replica counts over the same period. Use event overlays and logs to investigate changes.

See [Autoscaling](https://docs.baseten.co/deployment/autoscaling/overview.md) for scaling controls, [Autoscaling engines](https://docs.baseten.co/engines/performance-concepts/autoscaling-engines.md) for engine-specific load signals, and [Autoscaling troubleshooting](https://docs.baseten.co/troubleshooting/deployments.md#autoscaling-issues) for diagnosis.
