Supported OS Linux Windows Mac OS

Versión de integración2.3.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.

Información general

Este check monitoriza vLLM a través del Datadog Agent.

Configuración

Sigue las instrucciones a continuación para instalar y configurar este check para un Agent que se ejecuta en un host.

Instalación

El check de vLLM está incluido en el paquete del Datadog Agent. No es necesaria ninguna instalación adicional en tu servidor.

Configuración

  1. Edita el archivo vllm.d/conf.yaml, en la carpeta conf.d/ en la raíz de tu directorio de configuración del Agent para comenzar a recopilar los datos de rendimiento de tu vllm. Consulta el vllm.d/conf.yaml de ejemplo para conocer todas las opciones disponibles de configuración.

  2. Reinicia el Agent.

Validación

Ejecuta el subcomando de estado del Agent y busca vllm en la sección Check.

Datos recopilados

Métricas

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

Eventos

La integración de vLLM no incluye ningún evento.

Checks de servicio

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

La recopilación de logs está desactivada por defecto en el Datadog Agent. Si estás ejecutando tu Agent como contenedor, consulta Instalación del contenedor para activar la recopilación de logs. Si estás ejecutando un Agent de host, consulta el Agent de host en su lugar. En cualquier caso, asegúrate de que el valor de source para tus logs es vllm. Esta configuración garantiza que el pipeline de procesamiento integrado encuentre tus logs. Para establecer tu configuración de logs para un contenedor, consulta integraciones de log.

Solucionar problemas

¿Necesitas ayuda? Ponte en contacto con el equipo de asistencia de Datadog.

Referencias adicionales

Documentación útil adicional, enlaces y artículos: