> This page is for version v1.7.0.
> For other versions, use one of these documentation indexes:
> - Latest (v1.6.2) (default): https://docs.nvidia.com/dynamo/latest/llms.txt
> - dev: https://docs.nvidia.com/dynamo/dev/llms.txt
> - v1.6.2: https://docs.nvidia.com/dynamo/v1.6.2/llms.txt
> - v1.7.0: https://docs.nvidia.com/dynamo/v1.7.0/llms.txt
> - v1.6.1: https://docs.nvidia.com/dynamo/v1.6.1/llms.txt
> - v1.6.0: https://docs.nvidia.com/dynamo/v1.6.0/llms.txt
> - v1.5.1: https://docs.nvidia.com/dynamo/v1.5.1/llms.txt
> - v1.5.0: https://docs.nvidia.com/dynamo/v1.5.0/llms.txt
> - v1.4.2: https://docs.nvidia.com/dynamo/v1.4.2/llms.txt
> - v1.4.1: https://docs.nvidia.com/dynamo/v1.4.1/llms.txt
> - v1.4.0: https://docs.nvidia.com/dynamo/v1.4.0/llms.txt
> - v1.3.0: https://docs.nvidia.com/dynamo/v1.3.0/llms.txt
> - v1.2.1: https://docs.nvidia.com/dynamo/v1.2.1/llms.txt
> - v1.2.0: https://docs.nvidia.com/dynamo/v1.2.0/llms.txt
> - v1.1.1: https://docs.nvidia.com/dynamo/v1.1.1/llms.txt
> - v1.1.0: https://docs.nvidia.com/dynamo/v1.1.0/llms.txt
> - v1.0.2: https://docs.nvidia.com/dynamo/v1.0.2/llms.txt
> - v1.0.1: https://docs.nvidia.com/dynamo/v1.0.1/llms.txt
> - v1.0.0: https://docs.nvidia.com/dynamo/v1.0.0/llms.txt
> - v0.9.1: https://docs.nvidia.com/dynamo/v-0-9-1/llms.txt
> - v0.9.0: https://docs.nvidia.com/dynamo/v-0-9-0/llms.txt
> - v0.8.1: https://docs.nvidia.com/dynamo/v-0-8-1/llms.txt
> - v0.8.0: https://docs.nvidia.com/dynamo/v-0-8-0/llms.txt
> - v0.7.1: https://docs.nvidia.com/dynamo/v-0-7-1/llms.txt
> - v0.7.0: https://docs.nvidia.com/dynamo/v-0-7-0/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://docs.nvidia.com/dynamo/llms.txt. For full content including API reference and SDK examples, see https://docs.nvidia.com/dynamo/llms-full.txt.

# Metric Labels

Labels are the **dimensions** attached to Dynamo metric series, not metrics in their own right. A single metric such as `dynamo_component_requests_total` becomes many Prometheus time series once it is split by `dynamo_namespace`, `dynamo_component`, `dynamo_endpoint`, and the labels the scraper adds. This page catalogs those dimensions; for the metrics themselves see the [Metrics Catalog](/dynamo/v1.7.0/reference/observability/metrics-catalog).

A label reaches a series through one of four origins:

* **Auto-injected by the Dynamo runtime** — added to every metric registered through the namespace/component/endpoint hierarchy.
* **Added at registration time by backend code** — passed by the worker when it registers an endpoint, so presence depends on the backend.
* **Added by the metric itself** — specific to one metric family.
* **Injected by Prometheus/Kubernetes** — attached by the scraper, not present in the exposition text the process emits.

## Scope legend

Each label is tagged with the scope in which it appears:

* `[Shared]` — emitted by the Dynamo process itself; present whether you run locally or on Kubernetes.
* `[Kubernetes]` — attached by the Prometheus scraper in a Kubernetes deployment; absent when you scrape a process directly.

## Runtime-injected labels

Added by `create_metric()` in `lib/runtime/src/metrics.rs` for every metric registered through the namespace/component/endpoint hierarchy.

**`dynamo_namespace`** `string`

`[Shared]` The Dynamo runtime namespace — the logical scope shared by every component (router / prefill / decode / encode) in one deployment. **Not** the Kubernetes namespace. Example: `dynamo_cloud_vllm_v1_disagg_router_071de157`.

---

**`dynamo_component`** `string`

`[Shared]` Service role of the emitting component. See [Component names](#component-names) for the enumeration of values. Example: `backend`, `prefill`, `router`.

---

**`dynamo_endpoint`** `string`

`[Shared]` The RPC within that component. See [Endpoint names](#endpoint-names) for the enumeration of values. Example: `generate`, `clear_kv_blocks`, `worker_kv_query_source_1f3a9c2e7b4d`.

---

**`worker_id`** `string`

`[Shared]` Hex-encoded discovery instance ID of the endpoint, providing a stable per-worker identity that does not depend on Kubernetes. Injected only when the endpoint hierarchy has a connection ID. Example: `1a2b3c4d`.

On the per-worker frontend gauges (`dynamo_frontend_worker_*`), this label carries the routed worker's discovery instance ID in decimal instead: a worker whose own metrics carry `worker_id="1a2b3c4d"` appears there as `worker_id="439041101"`.

---

## Registration-time labels

Passed via `metrics_labels=` when the worker calls `serve_endpoint()`. Not auto-injected, so presence depends on the backend.

**`model`** `string`

`[Shared]` The model being served (OpenAI-style label). Added on inference endpoints by vLLM workers, and by SGLang and TensorRT-LLM workers other than image and video diffusion workers; TensorRT-LLM workers add it only with `--publish-kv-events`, `--publish-metrics`, or forward-pass metrics. Internal endpoints, such as `worker_kv_query_source_*`, do not carry it. [Component Metrics](/dynamo/v1.7.0/reference/observability/metrics-catalog#component-metrics) lists the labels each backend adds. Example: `Qwen/Qwen3-0.6B`.

---

**`model_name`** `string`

`[Shared]` Same model identifier under a second label name, retained for engine-native and dashboard back-compat. Added together with `model` by TensorRT-LLM workers, by SGLang multimodal encode workers, and by vLLM workers other than embedding, classify, and multimodal encode workers. Other SGLang workers add only `model`. Example: `Qwen/Qwen3-0.6B`.

---

## Metric-specific labels

Added by an individual metric family. Each label appears only on the metrics noted.

**`error_type`** `string`

`[Shared]` On `dynamo_component_errors_total` — the stage of request handling that failed. See [Component error types](#component-error-types) for the enumeration.

---

**`stage`** `string`

`[Shared]` On `dynamo_frontend_stage_requests` — the frontend pipeline stage a request currently occupies. See [Stage values](#stage-values).

Allowed values:

preprocess

route

dispatch

On `dynamo_epp_stage_duration_seconds` — one step of routing a request through the endpoint picker (EPP). See [EPP stage values](#epp-stage-values).

---

**`phase`** `string`

`[Shared]` On `dynamo_frontend_stage_requests` — the serving phase. See [Phase values](#phase-values). The empty value is used when the stage does not distinguish phases (e.g. `preprocess`).

Allowed values:

prefill

decode

aggregated

"" (empty)

---

**`task`** `string`

`[Shared]` On `dynamo_epp_task_poll_seconds` and `dynamo_epp_task_schedule_delay_seconds` — the kind of EPP task that held, or waited for, an async worker thread. See [EPP task values](#epp-task-values).

Allowed values:

ext_proc_stream

h2_connection

hyper

prefill_watcher

other

---

**`state`** `string`

`[Shared]` On `dynamo_frontend_inflight_input_tokens` — where an in-flight request is in its lifecycle. Summing over `state` gives all in-flight prompt tokens.

Allowed values:

awaiting_first_token

generating

---

**`worker_type`** `string`

`[Shared]` On `dynamo_frontend_worker_*`, `dynamo_frontend_router_queue_*`, the router worker inventory gauges (`dynamo_frontend_router_workers` and `dynamo_frontend_router_worker_state`), and the KV router metrics whose [Metrics Catalog](/dynamo/v1.7.0/reference/observability/metrics-catalog) rows list it — the worker role. Prefill workers report as `prefill`; decode and aggregated workers report as `decode`. Encode workers report as `encode` on the worker inventory gauges, but an Encode worker that serves Chat or Completions reports its `dynamo_frontend_worker_*` samples as `decode`.

Allowed values:

prefill

decode

encode

---

**`dp_rank`** `integer`

`[Shared]` On `dynamo_frontend_worker_*` — the data-parallel rank of the worker. Example: `0`.

---

**`request_phase`** `string`

`[Shared]` On `dynamo_frontend_worker_active_requests` — where a booked request is in its lifecycle: `prefill` until the worker returns the first output token, `decode` after. Unlike [`phase`](#phase-values), it does not name the serving leg; the worker role is in `worker_type`.

Allowed values:

prefill

decode

---

**`policy_class`** `string`

`[Shared]` On `dynamo_frontend_router_queue_*` — the resolved policy class. With flat classes, a request that names no class is counted under the default class, and a request whose class, after any request-classifier override, is unknown fails before it is queued, so these queue metrics do not count it. With a deprecated policy-family profile, a request that names an explicit class is counted under that class, and any other request under the class that its family selects for its uncached tokens, using the default family when it names no family. There, only a request-classifier override that names neither a family nor an explicit class fails before it is queued.

---

**`reason`** `string`

`[Shared]` On `dynamo_frontend_router_queue_backpressure_total` — the configured queue limit that rejected the request. On `dynamo_frontend_router_admission_rejected_total` — why admission rejected the attempt: `due_time_passed`, `queue_size_exceeded`, or the reserved `predicted_miss`.

---

**`migration_type`** `string`

`[Shared]` On request migration counters and the duration histogram — the category of request migration triggered by worker unavailability.

Allowed values:

new_request

ongoing_request

---

**`outcome`** `string`

`[Shared]` On `dynamo_frontend_model_migration_duration_seconds` — whether the migration recovered on another worker, ended without recovery, or was cancelled.

Allowed values:

success

failure

cancelled

---

**`request_type`** `string`

`[Shared]` On `dynamo_frontend_model_cancellation_total` — whether the cancelled request was unary or streaming.

Allowed values:

unary

stream

---

**`status`** `string`

`[Shared]` On `dynamo_component_kv_cache_events_applied` — the outcome of applying a KV cache event to the router's radix-tree index.

Allowed values:

ok

parent_block_not_found

block_not_found

invalid_block

capacity_exhausted

allocation_failed

ownership_degree_overflow

indexer_invariant_violation

---

**`outcome`** `string`

`[Shared]` On `dynamo_component_ckf_mutation_total`, and on `dynamo_kvrouter_ckf_mutation_total` from the standalone indexer — the block-level CKF mutation outcome. Both counters are registered but never incremented today, so no series carries this label in practice.

Allowed values:

unknown_remove

capacity_exhausted

---

**`event_type`** `string`

`[Shared]` On `dynamo_component_kv_cache_events_applied` — the kind of KV cache event.

Allowed values:

stored

removed

cleared

---

## Scraper-injected labels (Kubernetes)

Attached by the Prometheus scraper, not present in the exposition text the process emits. These appear only when Prometheus scrapes the pod in a Kubernetes deployment.

**`instance`** `string`

`[Kubernetes]` Scrape target as `<podIP>:<metricsPort>`. Example: `192.168.133.236:9090`.

---

**`pod`** `string`

`[Kubernetes]` Kubernetes pod name; the per-replica disambiguator. Example: `vllm-v1-disagg-router-decode-...`.

---

**`container`** `string`

`[Kubernetes]` Container name inside the pod (usually `main`). Example: `main`.

---

**`namespace`** `string`

`[Kubernetes]` Kubernetes namespace the pod runs in. **Not** the same as `dynamo_namespace`. Example: `dynamo-cloud`.

---

**`job`** `string`

`[Kubernetes]` Prometheus scrape-job name, `<k8s-namespace>/<service-name>`. Example: `dynamo-cloud/dynamo-worker`.

---

**`endpoint`** `string`

`[Kubernetes]` Named port on the Kubernetes Service that Prometheus scraped. **Not** the same as `dynamo_endpoint`. Example: `system`.

---

## Label collisions

> **Warning**
>
> Two pairs of labels share a name but mean different things depending on origin:
>
> * `dynamo_namespace` (Dynamo deployment scope, runtime-injected) vs. `namespace` (Kubernetes namespace, scraper-injected).
> * `dynamo_endpoint` (Dynamo RPC, runtime-injected) vs. `endpoint` (Kubernetes Service port name, scraper-injected).
>
> Always qualify with the `dynamo_` prefix when you mean the runtime dimension.

## Enumerations

### Component names

Values you will see in the `dynamo_component` label on `dynamo_component_*` series. The HTTP frontend (`python -m dynamo.frontend`) is **not** in this list — it exposes its own `dynamo_frontend_*` metric family, not `dynamo_component_*`.

| Value       | Meaning                                                                                                               |
| ----------- | --------------------------------------------------------------------------------------------------------------------- |
| `router`    | The standalone KV router (`python -m dynamo.router`).                                                                 |
| `Planner`   | The planner component (`python -m dynamo.planner`). Note the capital `P`.                                             |
| `prefill`   | The prefill worker in disaggregated serving (all backends).                                                           |
| `backend`   | The decode worker in disaggregated serving for all backends, **and** the combined worker for vLLM in aggregated mode. |
| `encode`    | The encode worker for vLLM, SGLang, and TRT-LLM.                                                                      |
| `diffusion` | The diffusion worker for TRT-LLM.                                                                                     |

Internal subsystems (e.g. `kvbm` from the block manager, `sequences` from the KV router) also create components and may appear in `dynamo_component_*` series. The default for vLLM/SGLang can be overridden by passing `--endpoint dyn://<ns>.<component>.<endpoint>` on the worker command line.

> **Note**
>
> The name `backend` for the decode worker is historical. The runtime has a TODO to introduce a `decode` constant and migrate to it (see `lib/runtime/src/metrics/prometheus_names.rs::component_names`).

### Endpoint names

Values you will see in the `dynamo_endpoint` label on backend workers.

| Value                         | Meaning                                                                                                                                                                                                                        |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `generate`                    | Main inference RPC; one increment per request received. On a prefill worker this counts prefill-stage `generate` calls; on a decode worker this counts decode-stage `generate` calls.                                          |
| `clear_kv_blocks`             | Admin RPC that flushes the worker's KV cache. Served by vLLM and SGLang prefill, decode, and aggregated workers.                                                                                                               |
| `worker_kv_query_source_{id}` | The router's queries to the worker's local KV indexer, used to recover the worker's KV index. One endpoint per KV event publisher; `{id}` is the publisher's event-plane ID in hex. Appears on workers that publish KV events. |

### Component error types

The `dynamo_component_errors_total` counter is labeled with `error_type`, identifying which stage of request handling failed.

| `error_type`       | Stage        | Meaning                                                                                                                                                                                                                                                                                                         |
| ------------------ | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `deserialization`  | Ingress      | Could not parse the incoming request payload.                                                                                                                                                                                                                                                                   |
| `invalid_message`  | Ingress      | Wire-format violation in the incoming message.                                                                                                                                                                                                                                                                  |
| `response_stream`  | Stream setup | Before calling `generate`, the worker could not open the response stream back to the frontend. Also counted when the input stream of a bidirectional streaming request cannot be opened and, on the `quic` and `velo` response planes, when the stream's first message cannot be sent after `generate` returns. |
| `generate`         | Engine       | The engine's `generate()` itself returned an error. This is the counter that reflects engine/inference failures.                                                                                                                                                                                                |
| `serialization`    | Streaming    | The worker could not encode a response chunk for the frontend. The stream ends without the final stream-complete marker.                                                                                                                                                                                        |
| `publish_response` | Streaming    | The engine produced response chunks but the worker could not push one back to the frontend. **Also fires on client cancellation** — the frontend disconnecting before the stream finishes — so this counter can be inflated by user-aborted requests.                                                           |
| `publish_final`    | Teardown     | All response chunks were sent, but the worker could not deliver the final stream-complete marker. The connection died right at the end.                                                                                                                                                                         |

### Stage values

`dynamo_frontend_stage_requests` decomposes the lifetime of an active frontend request into three sequential pipeline stages. A request is counted in exactly one stage at a time.

| Stage        | What it covers                                                                                                              | Enters when                                     | Exits when                                            |
| ------------ | --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | ----------------------------------------------------- |
| `preprocess` | Tokenization and chat-template application                                                                                  | The frontend enters `preprocess_request`        | Preprocessing returns                                 |
| `route`      | Worker selection (including parking in the KV-router queue while waiting for a worker)                                      | The router's `generate()` is called             | A worker is selected or the request is queued for one |
| `dispatch`   | Serialization, transport to the chosen worker, and waiting for the backend's first response (includes backend prefill time) | `generate()` is called in `AddressedPushRouter` | The first response is received from the backend       |

### Phase values

The `phase` label on `dynamo_frontend_stage_requests`.

| Phase        | Meaning                                                                                   |
| ------------ | ----------------------------------------------------------------------------------------- |
| `prefill`    | The request is being handled by a prefill worker in disaggregated serving.                |
| `decode`     | The request is being handled by a decode worker in disaggregated serving.                 |
| `aggregated` | Aggregated (non-disaggregated) serving — a single worker handles both prefill and decode. |
| `""` (empty) | The stage does not distinguish phases (used by `preprocess`).                             |

### EPP stage values

The `stage` label on `dynamo_epp_stage_duration_seconds`.

| Stage              | Measures                                                                                                                                                                                                                                                             |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `receive_body`     | From the request headers to the end of the request body: the gateway streaming the client's body to the EPP                                                                                                                                                          |
| `model_probe`      | Reading the `model` field out of the request body                                                                                                                                                                                                                    |
| `parse`            | Parsing the request body into the typed request                                                                                                                                                                                                                      |
| `blocking_wait`    | Waiting for a tokenization slot (one per core) and a blocking-pool thread before rendering the chat template, for chat requests                                                                                                                                      |
| `template`         | Rendering the chat template, for chat requests                                                                                                                                                                                                                       |
| `tokenize`         | Tokenizing the rendered prompt, or a text `/v1/completions` prompt; for the latter it includes the waits for a tokenization slot and a blocking-pool thread                                                                                                          |
| `select`           | Choosing the prefill and decode workers, including router queueing                                                                                                                                                                                                   |
| `book`             | Registering the request with the router's load bookkeeping                                                                                                                                                                                                           |
| `pick`             | The whole worker pick: `parse` through `book` and the waits between them                                                                                                                                                                                             |
| `rewrite`          | Rewriting the forwarded body: injecting `nvext.token_data`, stripping `nvext`, setting the cache salt                                                                                                                                                                |
| `response_headers` | From the routing decision to the response headers: the gateway sending the body to the sidecar, and the sidecar reading it and answering. Streamed 2xx responses only                                                                                                |
| `first_response`   | From the routing decision to the first non-empty response chunk: the gateway, sidecar and worker producing the first token. Streamed 2xx responses only                                                                                                              |
| `epp_ttft`         | From the request headers to the first non-empty response chunk: the time to first token as the EPP sees it. The client's time to first token minus this is the time spent outside the EPP's view, without comparing clocks across nodes. Streamed 2xx responses only |

`parse` through `book` are recorded when the EPP discovers Dynamo workers. In standalone mode, which tokenizes through a render service, only `receive_body`, `model_probe`, `pick`, `rewrite`, `response_headers`, `first_response` and `epp_ttft` are recorded.

### EPP task values

The `task` label on `dynamo_epp_task_poll_seconds` and `dynamo_epp_task_schedule_delay_seconds`.

| Task              | Does                                                                                                                                                                                           |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ext_proc_stream` | One ext_proc stream: reads the gateway's messages, picks a worker and relays the response                                                                                                      |
| `h2_connection`   | One gateway connection: TLS and every HTTP/2 frame of every stream on it                                                                                                                       |
| `hyper`           | A task hyper-util spawns: one per HTTP/2 request the EPP serves, which hands an ext_proc stream's responses to its connection, and the connection tasks of the EPP's own HTTP and gRPC clients |
| `prefill_watcher` | The once-a-second scan for prefill workers                                                                                                                                                     |
| `other`           | Any other task                                                                                                                                                                                 |

## Related

* [Metrics Catalog](/dynamo/v1.7.0/reference/observability/metrics-catalog) — the `dynamo_*` metrics these labels attach to.
* [Operator Metrics](/dynamo/v1.7.0/reference/observability/operator-metrics) — Kubernetes operator metrics and their distinct label sets.
* [Environment Variables](/dynamo/v1.7.0/reference/observability/environment-variables) — variables that enable and configure metric emission.