For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/integrations/vllm.md. A documentation index is available at /llms.txt.

vLLM

Supported OS Linux Windows Mac OS

Integration version3.6.0

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email support@ddog-gov.com.

Overview

This check monitors vLLM through the Datadog Agent.

Minimum Agent version: 7.56.0

Setup

Follow the instructions below to install and configure this check for an Agent running on a host.

Installation

The vLLM check is included in the Datadog Agent package. No additional installation is needed on your server.

Configuration

  1. Edit the vllm.d/conf.yaml file, in the conf.d/ folder at the root of your Agent’s configuration directory to start collecting your vllm performance data. See the sample vllm.d/conf.yaml for all available configuration options.

    If vLLM runs as an NVIDIA Dynamo backend worker, set openmetrics_endpoint to the metrics URL of the worker’s system status server, such as http://<HOST>:<DYN_SYSTEM_PORT>/metrics. The port is set by the DYN_SYSTEM_PORT environment variable.

  2. Restart the Agent.

Validation

Run the Agent’s status subcommand and look for vllm under the Checks section.

Data Collected

Metrics

vllm.avg.generation_throughput.toks_per_s
(gauge)
Average generation throughput in tokens/s
vllm.avg.prompt.throughput.toks_per_s
(gauge)
Average prefill throughput in tokens/s
vllm.cache_config_info
(gauge)
Information on cache config
vllm.cpu_cache_usage_perc
(gauge)
CPU KV-cache usage. 1 means 100 percent usage
Shown as percent
vllm.e2e_request_latency.seconds.bucket
(count)
The observations of end to end request latency bucketed by seconds.
vllm.e2e_request_latency.seconds.count
(count)
The total number of observations of end to end request latency.
vllm.e2e_request_latency.seconds.sum
(count)
The sum of end to end request latency in seconds.
Shown as second
vllm.estimated_flops_per_gpu.count
(count)
Estimated floating-point operations per GPU.
Shown as operation
vllm.external_prefix_cache.hits.count
(count)
External prefix cache hits measured in cached tokens.
Shown as item
vllm.external_prefix_cache.queries.count
(count)
External prefix cache queries measured in queried tokens.
Shown as item
vllm.generation_tokens.count
(count)
Number of generation tokens processed.
vllm.gpu_cache_usage_perc
(gauge)
GPU KV-cache usage. 1 means 100 percent usage
Shown as percent
vllm.inter_token_latency.seconds.bucket
(count)
The observations of inter-token latency bucketed by seconds.
vllm.inter_token_latency.seconds.count
(count)
The total number of observations of inter-token latency.
vllm.inter_token_latency.seconds.sum
(count)
The sum of inter-token latency in seconds.
Shown as second
vllm.kv_cache_usage_perc
(gauge)
KV-cache usage. 1 means 100 percent usage. Replaces gpu_cache_usage_perc in newer vLLM versions.
Shown as percent
vllm.nixl.bytes_transferred.bucket
(count)
Bytes moved per NIXL KV cache transfer, by histogram bucket.
vllm.nixl.bytes_transferred.count
(count)
Number of NIXL KV cache transfers, counted by the bytes transferred histogram.
vllm.nixl.bytes_transferred.sum
(count)
Total bytes moved by NIXL KV cache transfers.
Shown as byte
vllm.nixl.num_descriptors.bucket
(count)
Descriptor count per NIXL KV cache transfer, by histogram bucket.
vllm.nixl.num_descriptors.count
(count)
Number of NIXL KV cache transfers, counted by the descriptor count histogram.
vllm.nixl.num_descriptors.sum
(count)
Total descriptors across NIXL KV cache transfers.
Shown as item
vllm.nixl.num_failed_notifications.count
(count)
Number of NIXL transfer completion notifications that failed to reach the prefill instance. Not counted in vllm.nixl.num_failed_transfers.
vllm.nixl.num_failed_transfers.count
(count)
Number of failed NIXL KV cache transfers, including handshake failures.
vllm.nixl.num_kv_expired_reqs.count
(count)
Number of requests whose KV blocks expired on the prefill instance before the decode instance read them.
Shown as request
vllm.nixl.num_notifications_after_expiry.count
(count)
Number of NIXL completion notifications received for a request that is no longer tracked, usually because its KV blocks expired.
vllm.nixl.post_time.seconds.bucket
(count)
Time to submit a NIXL KV cache transfer to the NIXL backend, by histogram bucket.
vllm.nixl.post_time.seconds.count
(count)
Number of NIXL KV cache transfer submissions, counted by the post time histogram.
vllm.nixl.post_time.seconds.sum
(count)
Total time spent submitting NIXL KV cache transfers to the NIXL backend.
Shown as second
vllm.nixl.xfer_time.seconds.bucket
(count)
Duration of NIXL KV cache transfers between prefill and decode instances, from submission until vLLM detects completion, by histogram bucket.
vllm.nixl.xfer_time.seconds.count
(count)
Number of NIXL KV cache transfers, counted by the transfer duration histogram.
vllm.nixl.xfer_time.seconds.sum
(count)
Total duration of NIXL KV cache transfers between prefill and decode instances, from submission until vLLM detects completion.
Shown as second
vllm.num_preemptions.count
(count)
Cumulative number of preemption from the engine.
vllm.num_requests.running
(gauge)
Number of requests currently running on GPU.
vllm.num_requests.swapped
(gauge)
Number of requests swapped to CPU.
vllm.num_requests.waiting
(gauge)
Number of requests waiting.
vllm.prefix_cache.hits.count
(count)
Prefix cache hits measured in cached tokens.
Shown as item
vllm.prefix_cache.queries.count
(count)
Prefix cache queries measured in queried tokens.
Shown as item
vllm.process.cpu_seconds.count
(count)
Total user and system CPU time spent in seconds.
Shown as second
vllm.process.max_fds
(gauge)
Maximum number of open file descriptors.
Shown as file
vllm.process.open_fds
(gauge)
Number of open file descriptors.
Shown as file
vllm.process.resident_memory_bytes
(gauge)
Resident memory size in bytes.
Shown as byte
vllm.process.start_time_seconds
(gauge)
Start time of the process since unix epoch in seconds.
Shown as second
vllm.process.virtual_memory_bytes
(gauge)
Virtual memory size in bytes.
Shown as byte
vllm.prompt_tokens.cached.count
(count)
Number of cached prompt tokens from local and external caches.
Shown as item
vllm.prompt_tokens.count
(count)
Number of prefill tokens processed.
vllm.python.gc.collections.count
(count)
Number of times this generation was collected
vllm.python.gc.objects.collected.count
(count)
Objects collected during gc
vllm.python.gc.objects.uncollectable.count
(count)
Uncollectable objects found during GC
vllm.python.info
(gauge)
Python platform information
vllm.request.decode_time.seconds.bucket
(count)
Request decode-time histogram buckets.
vllm.request.decode_time.seconds.count
(count)
Number of request decode-time observations.
vllm.request.decode_time.seconds.sum
(count)
Total request decode time.
Shown as second
vllm.request.generation_tokens.bucket
(count)
Number of generation tokens processed.
vllm.request.generation_tokens.count
(count)
Number of generation tokens processed.
vllm.request.generation_tokens.sum
(count)
Number of generation tokens processed.
vllm.request.params.best_of.bucket
(count)
Histogram of the best_of request parameter.
vllm.request.params.best_of.count
(count)
Histogram of the best_of request parameter.
vllm.request.params.best_of.sum
(count)
Histogram of the best_of request parameter.
vllm.request.params.n.bucket
(count)
Histogram of the n request parameter.
vllm.request.params.n.count
(count)
Histogram of the n request parameter.
vllm.request.params.n.sum
(count)
Histogram of the n request parameter.
vllm.request.prefill_kv_computed_tokens.bucket
(count)
Histogram buckets for new KV tokens computed during prefill.
vllm.request.prefill_kv_computed_tokens.count
(count)
Number of prefill KV token observations.
vllm.request.prefill_kv_computed_tokens.sum
(count)
Total new KV tokens computed during prefill.
Shown as item
vllm.request.prefill_time.seconds.bucket
(count)
Request prefill-time histogram buckets.
vllm.request.prefill_time.seconds.count
(count)
Number of request prefill-time observations.
vllm.request.prefill_time.seconds.sum
(count)
Total request prefill time.
Shown as second
vllm.request.prompt_tokens.bucket
(count)
Number of prefill tokens processed.
vllm.request.prompt_tokens.count
(count)
Number of prefill tokens processed.
vllm.request.prompt_tokens.sum
(count)
Number of prefill tokens processed.
vllm.request.queue_time.seconds.bucket
(count)
Request queue-time histogram buckets.
vllm.request.queue_time.seconds.count
(count)
Number of request queue-time observations.
vllm.request.queue_time.seconds.sum
(count)
Total request queue time.
Shown as second
vllm.request.success.count
(count)
Count of successfully processed requests.
vllm.request.time_per_output_token.seconds.bucket
(count)
The observations of per-request average time per output token bucketed by seconds.
vllm.request.time_per_output_token.seconds.count
(count)
The total number of observations of per-request average time per output token.
vllm.request.time_per_output_token.seconds.sum
(count)
The sum of per-request average time per output token in seconds.
Shown as second
vllm.spec_decode.num_accepted_tokens.count
(count)
Number of speculative decode tokens accepted.
Shown as item
vllm.spec_decode.num_accepted_tokens_per_pos.count
(count)
Number of accepted speculative decode tokens by draft position.
Shown as item
vllm.spec_decode.num_draft_tokens.count
(count)
Number of speculative decode draft tokens.
Shown as item
vllm.time_per_output_token.seconds.bucket
(count)
The observations of time per output token bucketed by seconds.
vllm.time_per_output_token.seconds.count
(count)
The total number of observations of time per output token.
vllm.time_per_output_token.seconds.sum
(count)
The sum of time per output token in seconds.
Shown as second
vllm.time_to_first_token.seconds.bucket
(count)
The observations of time to first token bucketed by seconds.
vllm.time_to_first_token.seconds.count
(count)
The total number of observations of time to first token.
vllm.time_to_first_token.seconds.sum
(count)
The sum of time to first token in seconds.
Shown as second

The following metrics are collected only when GPU Monitoring is enabled:

  • vllm.estimated_flops_per_gpu
  • vllm.external_prefix_cache
  • vllm.nixl (KV cache transfers between prefill and decode instances, available with the NVIDIA Inference Xfer Library connector)
  • vllm.prefix_cache
  • vllm.prompt_tokens.cached
  • vllm.request.decode_time
  • vllm.request.prefill_kv_computed_tokens
  • vllm.request.prefill_time
  • vllm.request.queue_time
  • vllm.spec_decode

Events

The vLLM integration does not include any events.

Service Checks

The vLLM integration does not include any service checks.

vllm.openmetrics.health

Returns CRITICAL if the Agent is unable to connect to the vLLM OpenMetrics endpoint, otherwise returns OK.

Statuses: ok, critical

Logs

Log collection is disabled by default in the Datadog Agent. If you are running your Agent as a container, see container installation to enable log collection. If you are running a host Agent, see host Agent instead. In either case, make sure that the source value for your logs is vllm. This setting ensures that the built-in processing pipeline finds your logs. To set your log configuration for a container, see log integrations.

Troubleshooting

Need help? Contact Datadog support.

Further Reading

Additional helpful documentation, links, and articles: