---
title: llm-d
description: Monitor llm-d request routing, scheduling, and disaggregated serving
breadcrumbs: Docs > Integrations > llm-d
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# llm-d
Supported OS 
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

[llm-d](https://llm-d.ai/) is a Kubernetes-native distributed inference stack that routes requests across model servers with an Endpoint Picker (EPP), and splits inference into prefill and decode stages with a prefill/decode (P/D) sidecar. This check collects Prometheus metrics from the llm-d components:

- **Router (EPP)**: request throughput, errors and outcomes, time to first token, inter-token latency, token counts, InferencePool load, scheduling, prefix cache, KV-cache index, and Flow Control metrics
- **P/D sidecar**: disaggregated requests, and encode, prefill, and decode stage latency and errors
- **Coordinator**: request, pipeline step, and upstream call metrics

Model server metrics are collected by the [vLLM](https://docs.datadoghq.com/integrations/vllm.md) or [SGLang](https://docs.datadoghq.com/integrations/sglang.md) integrations.

Histogram buckets are submitted as Datadog distributions by default, so percentile aggregations are available for latency and token-count metrics.

This integration is part of [GPU Monitoring](https://docs.datadoghq.com/gpu_monitoring.md) and runs only when GPU Monitoring is enabled.

**Minimum Agent version:** 7.87.0

**Supported llm-d versions:** v1.0.0 and later

## Setup{% #setup %}

Use the following instructions to configure this check for an Agent running on Kubernetes. See the [Autodiscovery integration templates](https://docs.datadoghq.com/containers/kubernetes/integrations.md) for more guidance.

### Prerequisites{% #prerequisites %}

Enable GPU Monitoring in the Datadog Agent configuration:

```yaml
gpu:
  enabled: true
```

The equivalent environment variable is `DD_GPU_ENABLED=true`. When GPU Monitoring is disabled, the Agent skips every configured llm-d instance.

### Installation{% #installation %}

The llm-d check is included in the [Datadog Agent](https://app.datadoghq.com/account/settings/agent/latest) package. No additional installation is needed.

### Configuration{% #configuration %}

Configure one instance per llm-d `/metrics` endpoint. See the [sample llm_d.d/conf.yaml](https://github.com/DataDog/integrations-core/blob/master/llm_d/datadog_checks/llm_d/data/conf.yaml.example) for all available configuration options.

#### Router (EPP){% #router-epp %}

The EPP serves metrics on port 9090 of the `epp` container. Metrics endpoint authentication (`--metrics-endpoint-auth`) is enabled by default, so the EPP only accepts bearer tokens from identities with `get` permission on the `/metrics` non-resource URL. To grant this permission to the Agent's ServiceAccount, create a ClusterRole and ClusterRoleBinding:

```yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: llm-d-metrics-reader
rules:
- nonResourceURLs: ["/metrics"]
  verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: llm-d-metrics-reader
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: llm-d-metrics-reader
subjects:
- kind: ServiceAccount
  name: <AGENT_SERVICE_ACCOUNT>
  namespace: <AGENT_NAMESPACE>
```

Replace `<AGENT_NAMESPACE>` with the namespace the Agent runs in, and `<AGENT_SERVICE_ACCOUNT>` with the Agent's ServiceAccount. With the Datadog Helm chart, the ServiceAccount is named after the release (for example, `datadog` for a release named `datadog`). With the Datadog Operator, it is `<DATADOGAGENT_NAME>-agent` (for example, `datadog-agent`).

Then annotate the router pod so the Agent sends its ServiceAccount token:

```yaml
metadata:
  annotations:
    ad.datadoghq.com/epp.checks: |
      {
        "llm_d": {
          "instances": [
            {
              "openmetrics_endpoint": "http://%%host%%:9090/metrics",
              "auth_token": {
                "reader": {"type": "file", "path": "/var/run/secrets/kubernetes.io/serviceaccount/token"},
                "writer": {"type": "header", "name": "Authorization", "value": "Bearer <TOKEN>"}
              }
            }
          ]
        }
      }
```

Keep `<TOKEN>` as written. The Agent replaces it with the token it reads from the file.

To serve `/metrics` without authentication instead, install the llm-d router chart with `router.monitoring.prometheus.auth.enabled: false` and omit `auth_token`.

#### P/D sidecar{% #pd-sidecar %}

The sidecar metrics endpoint is disabled by default. Start the sidecar with `--metrics-port` (for example, `--metrics-port=9090`) and add an instance for that port on the sidecar container.

#### Coordinator{% #coordinator %}

The coordinator serves unauthenticated metrics on its metrics port (default 9090). Add an instance for that port on the coordinator container.

#### Model servers{% #model-servers %}

Collect model server metrics with the vLLM or SGLang integration. On decode pods that run the P/D sidecar, the sidecar listens on port 8000 and vLLM listens on the model server port (default 8200). Point the vLLM check at the model server port, not the sidecar port.

#### Tags{% #tags %}

The `inference_pool` tag groups router, sidecar, and model server metrics by deployment. The tag comes only from a pod annotation, so add the following annotation to the router and model server pods:

```yaml
metadata:
  annotations:
    ad.datadoghq.com/tags: '{"inference_pool": "<INFERENCE_POOL_NAME>"}'
```

EPP request metrics (`llm_d_inference.epp.request.*`) don't include a pool label. The integration collects the pool name that the EPP reports on its pool and Flow Control metrics as the `llm_d_pool` tag. In standalone mode (`--endpoint-selector`, without an InferencePool), pool metrics report the EPP Deployment name.

To tag model server metrics with their disaggregation role, map the `llm-d.ai/role` pod label to the `llm_d_role` tag. Set `datadog.podLabelsAsTags` in the Datadog Helm chart, or `spec.global.podLabelsAsTags` in the Datadog Operator:

```yaml
podLabelsAsTags:
  llm-d.ai/role: llm_d_role
```

### Validation{% #validation %}

Run the [Agent status command](https://docs.datadoghq.com/agent/guide/agent-commands.md#agent-status-and-information) and look for `llm_d` under the Checks section.

## Data collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **llm_d_inference.coordinator.conditional_decode_probes.count**(count)                  | Total number of conditional-decode probes, by the worker's answer.*Shown as request*                                                                        |
| **llm_d_inference.coordinator.encode_subrequests**(gauge)                                | Encode subrequests produced by one client request (distribution).*Shown as request*                                                                         |
| **llm_d_inference.coordinator.encode_subrequests.count**(count)                          | Encode subrequests produced by one client request (observation count).                                                                                      |
| **llm_d_inference.coordinator.encode_subrequests.sum**(count)                            | Encode subrequests produced by one client request (sum of observations).*Shown as request*                                                                  |
| **llm_d_inference.coordinator.execution_path.count**(count)                              | Total number of client requests, by the disaggregation phases executed.*Shown as request*                                                                   |
| **llm_d_inference.coordinator.force_stream.buffered_bytes**(gauge)                      | Bytes reserved against the force-stream buffer budget by in-flight forced requests.*Shown as byte*                                                          |
| **llm_d_inference.coordinator.force_stream.count**(count)                                | Total number of force-stream candidate requests, by outcome.*Shown as request*                                                                              |
| **llm_d_inference.coordinator.info**(gauge)                                               | Coordinator build information.                                                                                                                              |
| **llm_d_inference.coordinator.media_download_duration.seconds**(gauge)                  | Duration of one outbound media download attempt (distribution).*Shown as second*                                                                            |
| **llm_d_inference.coordinator.media_download_duration.seconds.count**(count)            | Duration of one outbound media download attempt (observation count).                                                                                        |
| **llm_d_inference.coordinator.media_download_duration.seconds.sum**(count)              | Duration of one outbound media download attempt (sum of observations).*Shown as second*                                                                     |
| **llm_d_inference.coordinator.media_items**(gauge)                                       | Media items of one type found in one client request (distribution).*Shown as item*                                                                          |
| **llm_d_inference.coordinator.media_items.count**(count)                                 | Media items of one type found in one client request (observation count).                                                                                    |
| **llm_d_inference.coordinator.media_items.sum**(count)                                   | Media items of one type found in one client request (sum of observations).*Shown as item*                                                                   |
| **llm_d_inference.coordinator.orchestration_overhead.seconds**(gauge)                    | Coordinator wall time outside request parsing and pipeline steps (distribution).*Shown as second*                                                           |
| **llm_d_inference.coordinator.orchestration_overhead.seconds.count**(count)              | Coordinator wall time outside request parsing and pipeline steps (observation count).                                                                       |
| **llm_d_inference.coordinator.orchestration_overhead.seconds.sum**(count)                | Coordinator wall time outside request parsing and pipeline steps (sum of observations).*Shown as second*                                                    |
| **llm_d_inference.coordinator.prompt_token_mismatch.count**(count)                      | Decode responses whose prompt token count differed from the rendered token count.*Shown as response*                                                        |
| **llm_d_inference.coordinator.request.count**(count)                                      | Total number of inbound client requests, including malformed ones.*Shown as request*                                                                        |
| **llm_d_inference.coordinator.request.duration.seconds**(gauge)                           | End-to-end request latency (distribution).*Shown as second*                                                                                                 |
| **llm_d_inference.coordinator.request.duration.seconds.count**(count)                     | End-to-end request latency (observation count).                                                                                                             |
| **llm_d_inference.coordinator.request.duration.seconds.sum**(count)                       | End-to-end request latency (sum of observations).*Shown as second*                                                                                          |
| **llm_d_inference.coordinator.request.error.count**(count)                                | Total number of failed client requests.*Shown as error*                                                                                                     |
| **llm_d_inference.coordinator.request.input_tokens**(gauge)                              | Prompt token count per request, measured after render (distribution).*Shown as token*                                                                       |
| **llm_d_inference.coordinator.request.input_tokens.count**(count)                        | Prompt token count per request, measured after render (observation count).                                                                                  |
| **llm_d_inference.coordinator.request.input_tokens.sum**(count)                          | Prompt token count per request, measured after render (sum of observations).*Shown as token*                                                                |
| **llm_d_inference.coordinator.request.running**(gauge)                                    | Requests currently being processed by the coordinator.*Shown as request*                                                                                    |
| **llm_d_inference.coordinator.request.size.bytes**(gauge)                                 | Request body size (distribution).*Shown as byte*                                                                                                            |
| **llm_d_inference.coordinator.request.size.bytes.count**(count)                           | Request body size (observation count).                                                                                                                      |
| **llm_d_inference.coordinator.request.size.bytes.sum**(count)                             | Request body size (sum of observations).*Shown as byte*                                                                                                     |
| **llm_d_inference.coordinator.response.size.bytes**(gauge)                                | Bytes written to the client per request (distribution).*Shown as byte*                                                                                      |
| **llm_d_inference.coordinator.response.size.bytes.count**(count)                          | Bytes written to the client per request (observation count).                                                                                                |
| **llm_d_inference.coordinator.response.size.bytes.sum**(count)                            | Bytes written to the client per request (sum of observations).*Shown as byte*                                                                               |
| **llm_d_inference.coordinator.step.duration.seconds**(gauge)                              | Wall time of each pipeline step (distribution).*Shown as second*                                                                                            |
| **llm_d_inference.coordinator.step.duration.seconds.count**(count)                        | Wall time of each pipeline step (observation count).                                                                                                        |
| **llm_d_inference.coordinator.step.duration.seconds.sum**(count)                          | Wall time of each pipeline step (sum of observations).*Shown as second*                                                                                     |
| **llm_d_inference.coordinator.step.errors.count**(count)                                  | Total number of pipeline step failures.*Shown as error*                                                                                                     |
| **llm_d_inference.coordinator.step.running**(gauge)                                       | Requests currently executing each pipeline step.*Shown as request*                                                                                          |
| **llm_d_inference.coordinator.upstream.request.count**(count)                             | Total number of outbound calls to upstream services.*Shown as request*                                                                                      |
| **llm_d_inference.coordinator.upstream.request.duration.seconds**(gauge)                  | Latency of a single outbound call to an upstream service (distribution).*Shown as second*                                                                   |
| **llm_d_inference.coordinator.upstream.request.duration.seconds.count**(count)            | Latency of a single outbound call to an upstream service (observation count).                                                                               |
| **llm_d_inference.coordinator.upstream.request.duration.seconds.sum**(count)              | Latency of a single outbound call to an upstream service (sum of observations).*Shown as second*                                                            |
| **llm_d_inference.epp.datalayer.extract_errors.count**(count)                            | Extract errors per source and extractor type.*Shown as error*                                                                                               |
| **llm_d_inference.epp.datalayer.poll_duration.seconds**(gauge)                           | Data-source poll duration (distribution).*Shown as second*                                                                                                  |
| **llm_d_inference.epp.datalayer.poll_duration.seconds.count**(count)                     | Data-source poll duration (observation count).                                                                                                              |
| **llm_d_inference.epp.datalayer.poll_duration.seconds.sum**(count)                       | Data-source poll duration (sum of observations).*Shown as second*                                                                                           |
| **llm_d_inference.epp.datalayer.poll_errors.count**(count)                               | Data-source poll errors per source type.*Shown as error*                                                                                                    |
| **llm_d_inference.epp.datalayer.polls.count**(count)                                      | Data-source polls per source type and outcome.*Shown as operation*                                                                                          |
| **llm_d_inference.epp.disagg_decision.count**(count)                                     | Total number of disaggregation routing decisions, by decision type.*Shown as request*                                                                       |
| **llm_d_inference.epp.endpoint.nixl.failed_notifications.count**(count)                  | Failed NIXL KV cache notifications reported by each model server endpoint.*Shown as error*                                                                  |
| **llm_d_inference.epp.endpoint.nixl.failed_transfers.count**(count)                      | Failed NIXL KV cache transfers reported by each model server endpoint.*Shown as error*                                                                      |
| **llm_d_inference.epp.endpoint.nixl.kv_expired_requests.count**(count)                  | Requests whose KV cache expired before it was read, reported by each model server endpoint.*Shown as request*                                               |
| **llm_d_inference.epp.endpoint.queue_size**(gauge)                                       | Number of requests pending in the queue of each model server endpoint.*Shown as request*                                                                    |
| **llm_d_inference.epp.endpoint_health.ejections.count**(count)                           | Endpoints marked unhealthy by the endpoint health filter, by reason.*Shown as instance*                                                                     |
| **llm_d_inference.epp.endpoint_health.excluded_endpoints**(gauge)                       | Endpoints the endpoint health filter currently excludes from scheduling.*Shown as instance*                                                                 |
| **llm_d_inference.epp.endpoint_health.fail_open.count**(count)                          | Filter calls in which every candidate was unhealthy and all were kept.                                                                                      |
| **llm_d_inference.epp.endpoint_health.readmissions.count**(count)                        | Unhealthy marks cleared by the endpoint health filter, by reason.*Shown as instance*                                                                        |
| **llm_d_inference.epp.extproc.stream_duration.seconds**(gauge)                           | Duration an ext_proc gRPC stream stays open (distribution).*Shown as second*                                                                                |
| **llm_d_inference.epp.extproc.stream_duration.seconds.count**(count)                     | Duration an ext_proc gRPC stream stays open (observation count).                                                                                            |
| **llm_d_inference.epp.extproc.stream_duration.seconds.sum**(count)                       | Duration an ext_proc gRPC stream stays open (sum of observations).*Shown as second*                                                                         |
| **llm_d_inference.epp.extproc.streams.count**(count)                                      | Total number of ext_proc gRPC streams completed, by gRPC status code.*Shown as connection*                                                                  |
| **llm_d_inference.epp.extproc.streams_inflight**(gauge)                                  | Number of ext_proc gRPC streams currently open.*Shown as connection*                                                                                        |
| **llm_d_inference.epp.flow_control.capacity_utilization_bytes**(gauge)                 | Fraction of a priority band's byte-size capacity in use.*Shown as fraction*                                                                                 |
| **llm_d_inference.epp.flow_control.capacity_utilization_requests**(gauge)              | Fraction of a priority band's request-count capacity in use.*Shown as fraction*                                                                             |
| **llm_d_inference.epp.flow_control.detector_saturation**(gauge)                         | Saturation reported by each saturation detector.*Shown as fraction*                                                                                         |
| **llm_d_inference.epp.flow_control.dispatch_cycle_duration.seconds**(gauge)            | Duration of each Flow Control dispatch cycle (distribution).*Shown as second*                                                                               |
| **llm_d_inference.epp.flow_control.dispatch_cycle_duration.seconds.count**(count)      | Duration of each Flow Control dispatch cycle (observation count).                                                                                           |
| **llm_d_inference.epp.flow_control.dispatch_cycle_duration.seconds.sum**(count)        | Duration of each Flow Control dispatch cycle (sum of observations).*Shown as second*                                                                        |
| **llm_d_inference.epp.flow_control.global_capacity_utilization_bytes**(gauge)         | Fraction of the global byte-size capacity in use.*Shown as fraction*                                                                                        |
| **llm_d_inference.epp.flow_control.global_capacity_utilization_requests**(gauge)      | Fraction of the global request-count capacity in use.*Shown as fraction*                                                                                    |
| **llm_d_inference.epp.flow_control.pending_reclaim**(gauge)                             | Outstanding and cooling pending-reclaim debits, in saturation units.                                                                                        |
| **llm_d_inference.epp.flow_control.pool_saturation**(gauge)                             | Pool saturation signal that gates Flow Control dispatch. A value of 1.0 is the gating set point.*Shown as fraction*                                         |
| **llm_d_inference.epp.flow_control.queue_bytes**(gauge)                                 | Size of requests held in the Flow Control queue.*Shown as byte*                                                                                             |
| **llm_d_inference.epp.flow_control.queue_size**(gauge)                                  | Number of requests held in the Flow Control queue.*Shown as request*                                                                                        |
| **llm_d_inference.epp.flow_control.reclaim_target**(gauge)                              | Last computed reclamation deficit, in saturation units.                                                                                                     |
| **llm_d_inference.epp.flow_control.request_enqueue_duration.seconds**(gauge)           | Time taken to enqueue requests into the Flow Control layer (distribution).*Shown as second*                                                                 |
| **llm_d_inference.epp.flow_control.request_enqueue_duration.seconds.count**(count)     | Time taken to enqueue requests into the Flow Control layer (observation count).                                                                             |
| **llm_d_inference.epp.flow_control.request_enqueue_duration.seconds.sum**(count)       | Time taken to enqueue requests into the Flow Control layer (sum of observations).*Shown as second*                                                          |
| **llm_d_inference.epp.flow_control.request_queue_duration.seconds**(gauge)             | Time requests spend in the Flow Control layer, from enqueue to final outcome (distribution).*Shown as second*                                               |
| **llm_d_inference.epp.flow_control.request_queue_duration.seconds.count**(count)       | Time requests spend in the Flow Control layer, from enqueue to final outcome (observation count).                                                           |
| **llm_d_inference.epp.flow_control.request_queue_duration.seconds.sum**(count)         | Time requests spend in the Flow Control layer, from enqueue to final outcome (sum of observations).*Shown as second*                                        |
| **llm_d_inference.epp.flow_control.requests.count**(count)                               | Total number of requests processed by the Flow Control layer, by outcome.*Shown as request*                                                                 |
| **llm_d_inference.epp.flow_control.revocation_confirmation.seconds**(gauge)             | Time from revocation to confirmed stream termination (distribution).*Shown as second*                                                                       |
| **llm_d_inference.epp.flow_control.revocation_confirmation.seconds.count**(count)       | Time from revocation to confirmed stream termination (observation count).                                                                                   |
| **llm_d_inference.epp.flow_control.revocation_confirmation.seconds.sum**(count)         | Time from revocation to confirmed stream termination (sum of observations).*Shown as second*                                                                |
| **llm_d_inference.epp.flow_control.revocations.count**(count)                            | Total number of in-flight eviction revocations, by terminal outcome.*Shown as request*                                                                      |
| **llm_d_inference.epp.flow_control.revocations_issued.count**(count)                    | Total number of in-flight eviction revocations issued.*Shown as request*                                                                                    |
| **llm_d_inference.epp.flow_control.stale_endpoints**(gauge)                             | Candidate endpoints whose metrics are missing or stale.*Shown as instance*                                                                                  |
| **llm_d_inference.epp.inflight.requests**(gauge)                                          | Requests in flight on each endpoint, as tracked by the in-flight load producer.*Shown as request*                                                           |
| **llm_d_inference.epp.inflight.tokens**(gauge)                                            | Tokens in flight on each endpoint, as tracked by the in-flight load producer.*Shown as token*                                                               |
| **llm_d_inference.epp.info**(gauge)                                                       | EPP build information.                                                                                                                                      |
| **llm_d_inference.epp.kv_cache_events.active_subscribers**(gauge)                      | Number of ZMQ subscribers currently managed.*Shown as connection*                                                                                           |
| **llm_d_inference.epp.kv_cache_events.dedup_removed_hashes_forwarded.count**(count)  | Block hashes forwarded for eviction after the KV-event dedup filter.*Shown as key*                                                                          |
| **llm_d_inference.epp.kv_cache_events.dedup_removed_hashes_suppressed.count**(count) | Block hashes whose removal was suppressed by the KV-event dedup filter.*Shown as key*                                                                       |
| **llm_d_inference.epp.kv_cache_events.messages_received.count**(count)                 | Total number of messages received from ZMQ subscribers.*Shown as message*                                                                                   |
| **llm_d_inference.epp.kv_cache_events.pool_capacity**(gauge)                           | Number of worker shards in the KV-event processing pool.*Shown as shard*                                                                                    |
| **llm_d_inference.epp.kv_cache_events.pool_queue_depth**(gauge)                       | Messages queued across KV-event pool workers.*Shown as message*                                                                                             |
| **llm_d_inference.epp.kv_cache_events.removals_skipped.count**(count)                  | KV-cache removal events skipped for groups excluded from prefix indexing.*Shown as event*                                                                   |
| **llm_d_inference.epp.kv_cache_events.stores_skipped.count**(count)                    | KV-cache store events skipped before prefix indexing.*Shown as event*                                                                                       |
| **llm_d_inference.epp.kv_cache_events.subscriber_reconnections.count**(count)          | Total number of ZMQ subscriber reconnection attempts.*Shown as connection*                                                                                  |
| **llm_d_inference.epp.kv_cache_events.zmq_errors.count**(count)                        | Total number of ZMQ subscriber errors.*Shown as error*                                                                                                      |
| **llm_d_inference.epp.kv_cache_index.admissions.count**(count)                          | Total number of KV blocks admitted to the index.*Shown as block*                                                                                            |
| **llm_d_inference.epp.kv_cache_index.evictions.count**(count)                           | Total number of KV blocks evicted from the index.*Shown as eviction*                                                                                        |
| **llm_d_inference.epp.kv_cache_index.lookup_hits.count**(count)                        | Contiguous prefix blocks matched by the best pod per lookup.*Shown as block*                                                                                |
| **llm_d_inference.epp.kv_cache_index.lookup_latency.seconds**(gauge)                   | Index lookup latency (distribution).*Shown as second*                                                                                                       |
| **llm_d_inference.epp.kv_cache_index.lookup_latency.seconds.count**(count)             | Index lookup latency (observation count).                                                                                                                   |
| **llm_d_inference.epp.kv_cache_index.lookup_latency.seconds.sum**(count)               | Index lookup latency (sum of observations).*Shown as second*                                                                                                |
| **llm_d_inference.epp.kv_cache_index.lookup_requests.count**(count)                    | Total number of index lookups.*Shown as query*                                                                                                              |
| **llm_d_inference.epp.kv_cache_index.max_pod_hit_count.count**(count)                | Longest contiguous per-pod prefix chain observed per lookup.*Shown as block*                                                                                |
| **llm_d_inference.epp.plugin.duration.seconds**(gauge)                                    | Plugin processing latency per extension point and plugin (distribution).*Shown as second*                                                                   |
| **llm_d_inference.epp.plugin.duration.seconds.count**(count)                              | Plugin processing latency per extension point and plugin (observation count).                                                                               |
| **llm_d_inference.epp.plugin.duration.seconds.sum**(count)                                | Plugin processing latency per extension point and plugin (sum of observations).*Shown as second*                                                            |
| **llm_d_inference.epp.pool.average_kv_cache_utilization**(gauge)                       | Average KV cache utilization across the InferencePool.*Shown as fraction*                                                                                   |
| **llm_d_inference.epp.pool.average_queue_size**(gauge)                                  | Average number of requests pending in model server queues across the InferencePool.*Shown as request*                                                       |
| **llm_d_inference.epp.pool.average_running_requests**(gauge)                            | Average number of running requests across model servers in the InferencePool.*Shown as request*                                                             |
| **llm_d_inference.epp.pool.ready_endpoints**(gauge)                                      | Number of ready endpoints in the InferencePool.*Shown as instance*                                                                                          |
| **llm_d_inference.epp.pool.std_dev_kv_cache_utilization**(gauge)                      | Standard deviation of KV cache utilization across the InferencePool.*Shown as fraction*                                                                     |
| **llm_d_inference.epp.pool.std_dev_queue_size**(gauge)                                 | Standard deviation of model server queue size across the InferencePool.*Shown as request*                                                                   |
| **llm_d_inference.epp.pool.std_dev_running_requests**(gauge)                           | Standard deviation of running requests across model servers in the InferencePool.*Shown as request*                                                         |
| **llm_d_inference.epp.prefix.best_available_cached_tokens**(gauge)                     | Highest predicted prefix-cache hit among a request's candidate endpoints before filtering (distribution).*Shown as token*                                   |
| **llm_d_inference.epp.prefix.best_available_cached_tokens.count**(count)               | Highest predicted prefix-cache hit among a request's candidate endpoints before filtering (observation count).                                              |
| **llm_d_inference.epp.prefix.best_available_cached_tokens.sum**(count)                 | Highest predicted prefix-cache hit among a request's candidate endpoints before filtering (sum of observations).*Shown as token*                            |
| **llm_d_inference.epp.prefix.best_predicted_cached_tokens**(gauge)                     | Highest predicted prefix-cache hit among the endpoints the scheduler selected from (distribution).*Shown as token*                                          |
| **llm_d_inference.epp.prefix.best_predicted_cached_tokens.count**(count)               | Highest predicted prefix-cache hit among the endpoints the scheduler selected from (observation count).                                                     |
| **llm_d_inference.epp.prefix.best_predicted_cached_tokens.sum**(count)                 | Highest predicted prefix-cache hit among the endpoints the scheduler selected from (sum of observations).*Shown as token*                                   |
| **llm_d_inference.epp.prefix.predicted_cached_tokens**(gauge)                           | Prompt tokens predicted to hit the chosen endpoint's prefix cache (distribution).*Shown as token*                                                           |
| **llm_d_inference.epp.prefix.predicted_cached_tokens.count**(count)                     | Prompt tokens predicted to hit the chosen endpoint's prefix cache (observation count).                                                                      |
| **llm_d_inference.epp.prefix.predicted_cached_tokens.sum**(count)                       | Prompt tokens predicted to hit the chosen endpoint's prefix cache (sum of observations).*Shown as token*                                                    |
| **llm_d_inference.epp.prefix.prompt_tokens**(gauge)                                      | Prompt tokens the prefix-cache prediction is measured against (distribution).*Shown as token*                                                               |
| **llm_d_inference.epp.prefix.prompt_tokens.count**(count)                                | Prompt tokens the prefix-cache prediction is measured against (observation count).                                                                          |
| **llm_d_inference.epp.prefix.prompt_tokens.sum**(count)                                  | Prompt tokens the prefix-cache prediction is measured against (sum of observations).*Shown as token*                                                        |
| **llm_d_inference.epp.prefix_indexer.hit_bytes**(gauge)                                 | Length of the prefix match per lookup (distribution).*Shown as byte*                                                                                        |
| **llm_d_inference.epp.prefix_indexer.hit_bytes.count**(count)                           | Length of the prefix match per lookup (observation count).                                                                                                  |
| **llm_d_inference.epp.prefix_indexer.hit_bytes.sum**(count)                             | Length of the prefix match per lookup (sum of observations).*Shown as byte*                                                                                 |
| **llm_d_inference.epp.prefix_indexer.hit_ratio**(gauge)                                 | Ratio of prefix length matched to total prefix length per lookup (distribution).*Shown as fraction*                                                         |
| **llm_d_inference.epp.prefix_indexer.hit_ratio.count**(count)                           | Ratio of prefix length matched to total prefix length per lookup (observation count).                                                                       |
| **llm_d_inference.epp.prefix_indexer.hit_ratio.sum**(count)                             | Ratio of prefix length matched to total prefix length per lookup (sum of observations).*Shown as fraction*                                                  |
| **llm_d_inference.epp.prefix_indexer.size**(gauge)                                       | Number of entries in the approximate prefix index.*Shown as entry*                                                                                          |
| **llm_d_inference.epp.request.cached_tokens**(gauge)                                     | Prompt tokens read from cache per request (distribution).*Shown as token*                                                                                   |
| **llm_d_inference.epp.request.cached_tokens.count**(count)                               | Prompt tokens read from cache per request (observation count).                                                                                              |
| **llm_d_inference.epp.request.cached_tokens.sum**(count)                                 | Prompt tokens read from cache per request (sum of observations).*Shown as token*                                                                            |
| **llm_d_inference.epp.request.count**(count)                                              | Total number of requests processed by the EPP.*Shown as request*                                                                                            |
| **llm_d_inference.epp.request.duration.seconds**(gauge)                                   | End-to-end request latency (distribution).*Shown as second*                                                                                                 |
| **llm_d_inference.epp.request.duration.seconds.count**(count)                             | End-to-end request latency (observation count).                                                                                                             |
| **llm_d_inference.epp.request.duration.seconds.sum**(count)                               | End-to-end request latency (sum of observations).*Shown as second*                                                                                          |
| **llm_d_inference.epp.request.error.count**(count)                                        | Total number of request errors.*Shown as error*                                                                                                             |
| **llm_d_inference.epp.request.input_tokens**(gauge)                                      | Input token count per request (distribution).*Shown as token*                                                                                               |
| **llm_d_inference.epp.request.input_tokens.count**(count)                                | Input token count per request (observation count).                                                                                                          |
| **llm_d_inference.epp.request.input_tokens.sum**(count)                                  | Input token count per request (sum of observations).*Shown as token*                                                                                        |
| **llm_d_inference.epp.request.ntpot.seconds**(gauge)                                      | Normalized time per output token (distribution).*Shown as second*                                                                                           |
| **llm_d_inference.epp.request.ntpot.seconds.count**(count)                                | Normalized time per output token (observation count).                                                                                                       |
| **llm_d_inference.epp.request.ntpot.seconds.sum**(count)                                  | Normalized time per output token (sum of observations).*Shown as second*                                                                                    |
| **llm_d_inference.epp.request.outcome.count**(count)                                      | Total number of requests, by how they ended.*Shown as request*                                                                                              |
| **llm_d_inference.epp.request.output_tokens**(gauge)                                     | Output token count per request (distribution).*Shown as token*                                                                                              |
| **llm_d_inference.epp.request.output_tokens.count**(count)                               | Output token count per request (observation count).                                                                                                         |
| **llm_d_inference.epp.request.output_tokens.sum**(count)                                 | Output token count per request (sum of observations).*Shown as token*                                                                                       |
| **llm_d_inference.epp.request.processing_duration.seconds**(gauge)                       | EPP request processing latency, from request receipt until the request body is handled, including admission control (distribution).*Shown as second*        |
| **llm_d_inference.epp.request.processing_duration.seconds.count**(count)                 | EPP request processing latency, from request receipt until the request body is handled, including admission control (observation count).                    |
| **llm_d_inference.epp.request.processing_duration.seconds.sum**(count)                   | EPP request processing latency, from request receipt until the request body is handled, including admission control (sum of observations).*Shown as second* |
| **llm_d_inference.epp.request.running**(gauge)                                            | Current number of running requests.*Shown as request*                                                                                                       |
| **llm_d_inference.epp.request.size.bytes**(gauge)                                         | Request body size (distribution).*Shown as byte*                                                                                                            |
| **llm_d_inference.epp.request.size.bytes.count**(count)                                   | Request body size (observation count).                                                                                                                      |
| **llm_d_inference.epp.request.size.bytes.sum**(count)                                     | Request body size (sum of observations).*Shown as byte*                                                                                                     |
| **llm_d_inference.epp.request.streaming_itl.seconds**(gauge)                             | Inter-token latency for streaming requests (distribution).*Shown as second*                                                                                 |
| **llm_d_inference.epp.request.streaming_itl.seconds.count**(count)                       | Inter-token latency for streaming requests (observation count).                                                                                             |
| **llm_d_inference.epp.request.streaming_itl.seconds.sum**(count)                         | Inter-token latency for streaming requests (sum of observations).*Shown as second*                                                                          |
| **llm_d_inference.epp.request.streaming_tpot.seconds**(gauge)                            | Time per output token for streaming requests (distribution).*Shown as second*                                                                               |
| **llm_d_inference.epp.request.streaming_tpot.seconds.count**(count)                      | Time per output token for streaming requests (observation count).                                                                                           |
| **llm_d_inference.epp.request.streaming_tpot.seconds.sum**(count)                        | Time per output token for streaming requests (sum of observations).*Shown as second*                                                                        |
| **llm_d_inference.epp.request.ttft.seconds**(gauge)                                       | Time to first token (distribution).*Shown as second*                                                                                                        |
| **llm_d_inference.epp.request.ttft.seconds.count**(count)                                 | Time to first token (observation count).                                                                                                                    |
| **llm_d_inference.epp.request.ttft.seconds.sum**(count)                                   | Time to first token (sum of observations).*Shown as second*                                                                                                 |
| **llm_d_inference.epp.response.processing_duration.seconds**(gauge)                      | EPP response processing latency, summed over chunks for streamed responses (distribution).*Shown as second*                                                 |
| **llm_d_inference.epp.response.processing_duration.seconds.count**(count)                | EPP response processing latency, summed over chunks for streamed responses (observation count).                                                             |
| **llm_d_inference.epp.response.processing_duration.seconds.sum**(count)                  | EPP response processing latency, summed over chunks for streamed responses (sum of observations).*Shown as second*                                          |
| **llm_d_inference.epp.response.size.bytes**(gauge)                                        | Response body size (distribution).*Shown as byte*                                                                                                           |
| **llm_d_inference.epp.response.size.bytes.count**(count)                                  | Response body size (observation count).                                                                                                                     |
| **llm_d_inference.epp.response.size.bytes.sum**(count)                                    | Response body size (sum of observations).*Shown as byte*                                                                                                    |
| **llm_d_inference.epp.scheduler.attempts.count**(count)                                   | Total number of scheduling attempts.*Shown as attempt*                                                                                                      |
| **llm_d_inference.epp.scheduler.e2e_duration.seconds**(gauge)                            | End-to-end scheduling latency (distribution).*Shown as second*                                                                                              |
| **llm_d_inference.epp.scheduler.e2e_duration.seconds.count**(count)                      | End-to-end scheduling latency (observation count).                                                                                                          |
| **llm_d_inference.epp.scheduler.e2e_duration.seconds.sum**(count)                        | End-to-end scheduling latency (sum of observations).*Shown as second*                                                                                       |
| **llm_d_inference.epp.scheduler.failures.count**(count)                                   | Total number of failed scheduling attempts, by reason.*Shown as attempt*                                                                                    |
| **llm_d_inference.sidecar.decode_duration.seconds**(gauge)                               | Decode stage latency (distribution).*Shown as second*                                                                                                       |
| **llm_d_inference.sidecar.decode_duration.seconds.count**(count)                         | Decode stage latency (observation count).                                                                                                                   |
| **llm_d_inference.sidecar.decode_duration.seconds.sum**(count)                           | Decode stage latency (sum of observations).*Shown as second*                                                                                                |
| **llm_d_inference.sidecar.disagg_requests.count**(count)                                 | Requests routed through disaggregation, by disaggregation type.*Shown as request*                                                                           |
| **llm_d_inference.sidecar.encode_duration.seconds**(gauge)                               | Encode stage latency (distribution).*Shown as second*                                                                                                       |
| **llm_d_inference.sidecar.encode_duration.seconds.count**(count)                         | Encode stage latency (observation count).                                                                                                                   |
| **llm_d_inference.sidecar.encode_duration.seconds.sum**(count)                           | Encode stage latency (sum of observations).*Shown as second*                                                                                                |
| **llm_d_inference.sidecar.info**(gauge)                                                   | P/D sidecar build information.                                                                                                                              |
| **llm_d_inference.sidecar.prefill_duration.seconds**(gauge)                              | Prefill stage latency (distribution).*Shown as second*                                                                                                      |
| **llm_d_inference.sidecar.prefill_duration.seconds.count**(count)                        | Prefill stage latency (observation count).                                                                                                                  |
| **llm_d_inference.sidecar.prefill_duration.seconds.sum**(count)                          | Prefill stage latency (sum of observations).*Shown as second*                                                                                               |
| **llm_d_inference.sidecar.request_errors.count**(count)                                  | Encode, prefill, and decode stage errors, by stage.*Shown as error*                                                                                         |
| **llm_d_inference.sidecar.requests.count**(count)                                         | Requests on the intercepted inference API paths, by API type.*Shown as request*                                                                             |

The integration renames the following labels:

- `name` and `inference_pool` (the pool name that the EPP reports) become `llm_d_pool`.
- `namespace` becomes `endpoint_namespace`.
- `port` becomes `endpoint_port`.

The `namespace` and `port` labels describe the model server endpoint that a request was scheduled to, not the scraped pod.

### Events{% #events %}

The llm-d integration does not include any events.

### Service checks{% #service-checks %}

**llm_d_inference.openmetrics.health**

Returns `CRITICAL` if the Agent is unable to connect to the llm-d OpenMetrics endpoint, otherwise returns `OK`.

*Statuses: ok, critical*

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
