Skip to main content
Version: Next

Monitoring

Inference service exposes Prometheus metrics for monitoring system stats.

vLLM runtime​

vLLM exposes Prometheus metrics at the /metrics endpoint. These metrics provide detailed insights into the system's performance, resource utilization, and request processing statistics. The following table lists the metrics that vLLM exposes with its default settings, and the metrics that LoRA adapters and speculative decoding add:

vLLM version: 0.32.0

CategoryMetric NameTypeDescription
System Stats - Schedulervllm:num_requests_runningGaugeNumber of requests in model execution batches
System Stats - Schedulervllm:num_requests_waitingGaugeNumber of requests waiting to be processed
System Stats - Schedulervllm:num_requests_waiting_by_reasonGaugeNumber of waiting requests by reason: capacity (waiting for scheduling capacity) or deferred (deferred by transient constraints such as the LoRA budget or a KV transfer). The sum over all reasons equals vllm:num_requests_waiting
System Stats - Schedulervllm:engine_sleep_stateGaugeEngine sleep state, by sleep_state: awake is 1 when the engine is awake and 0 when it is sleeping, weights_offloaded is 1 at sleep level 1, discard_all is 1 at sleep level 2
System Stats - Schedulervllm:lora_requests_infoGaugeRunning stats on LoRA requests. Exposed only when LoRA adapters are enabled
System Stats - Cachevllm:kv_cache_usage_percGaugeKV-cache usage. 1 means 100 percent usage
System Stats - Cachevllm:prefix_cache_queries_totalCounterPrefix cache queries, in terms of number of queried tokens
System Stats - Cachevllm:prefix_cache_hits_totalCounterPrefix cache hits, in terms of number of cached tokens
System Stats - Cachevllm:external_prefix_cache_queries_totalCounterExternal prefix cache queries from KV connector cross-instance cache sharing, in terms of number of queried tokens
System Stats - Cachevllm:external_prefix_cache_hits_totalCounterExternal prefix cache hits from KV connector cross-instance cache sharing, in terms of number of cached tokens
System Stats - Cachevllm:mm_cache_queries_totalCounterMulti-modal cache queries, in terms of number of queried items
System Stats - Cachevllm:mm_cache_hits_totalCounterMulti-modal cache hits, in terms of number of cached items
System Stats - Cachevllm:cache_config_infoGaugeAlways 1. The labels carry the engine's cache configuration
Iteration Statsvllm:num_preemptions_totalCounterCumulative number of preemption from the engine
Iteration Statsvllm:prompt_tokens_totalCounterNumber of prefill tokens processed
Iteration Statsvllm:prompt_tokens_by_source_totalCounterNumber of prompt tokens by source
Iteration Statsvllm:prompt_tokens_cached_totalCounterNumber of cached prompt tokens (local and external)
Iteration Statsvllm:prompt_tokens_cached_by_source_totalCounterPrefix-cache hit tokens by the cache tier that supplied them (source): device, host, disk, p2p or external_unspecified
Iteration Statsvllm:generation_tokens_totalCounterNumber of generation tokens processed
Iteration Statsvllm:iteration_tokens_totalHistogramNumber of tokens per engine_step
Iteration Statsvllm:time_to_first_token_secondsHistogramTime to first token in seconds
Iteration Statsvllm:inter_token_latency_secondsHistogramInter-token latency in seconds
Request Statsvllm:e2e_request_latency_secondsHistogramEnd to end request latency in seconds
Request Statsvllm:request_queue_time_secondsHistogramTime spent in WAITING phase for request
Request Statsvllm:request_inference_time_secondsHistogramTime spent in RUNNING phase for request
Request Statsvllm:request_prefill_time_secondsHistogramTime spent in PREFILL phase for request
Request Statsvllm:request_decode_time_secondsHistogramTime spent in DECODE phase for request
Request Statsvllm:request_time_per_output_token_secondsHistogramTime per output token in seconds, per request
Request Statsvllm:request_prompt_tokensHistogramNumber of prefill tokens processed per request
Request Statsvllm:request_generation_tokensHistogramNumber of generation tokens processed per request
Request Statsvllm:request_max_num_generation_tokensHistogramMaximum number of requested generation tokens
Request Statsvllm:request_params_nHistogramThe 'n' request parameter
Request Statsvllm:request_params_max_tokensHistogramThe 'max_tokens' request parameter
Request Statsvllm:request_num_preemptionsHistogramNumber of times a request was preempted
Request Statsvllm:request_prefill_kv_computed_tokensHistogramNew KV tokens computed during prefill, excluding cached tokens
Request Statsvllm:request_success_totalCounterCount of successfully processed requests, by finished_reason
Request Statsvllm:admission_rejections_totalCounterNumber of admission attempts rejected by a queue limit, by reason
Model FLOPs Utilizationvllm:estimated_flops_per_gpu_totalCounterEstimated number of floating point operations per GPU. Stays 0 unless vLLM runs with --enable-mfu-metrics
Model FLOPs Utilizationvllm:estimated_read_bytes_per_gpu_totalCounterEstimated number of bytes read from memory per GPU. Stays 0 unless vLLM runs with --enable-mfu-metrics
Model FLOPs Utilizationvllm:estimated_write_bytes_per_gpu_totalCounterEstimated number of bytes written to memory per GPU. Stays 0 unless vLLM runs with --enable-mfu-metrics
Speculative Decodingvllm:spec_decode_num_drafts_totalCounterNumber of speculative decoding drafts. The metrics in this category are exposed only when speculative decoding is enabled
Speculative Decodingvllm:spec_decode_num_draft_tokens_totalCounterNumber of draft tokens
Speculative Decodingvllm:spec_decode_num_accepted_tokens_totalCounterNumber of accepted tokens
Speculative Decodingvllm:spec_decode_num_accepted_tokens_per_pos_totalCounterAccepted tokens per draft position

Features that are off by default, such as KV cache offloading, add metrics of their own. See vLLM Production Metrics for the full list.

Metrics renamed or removed since vLLM 0.8.2​

Earlier versions of this page listed the metrics of vLLM 0.8.2. Dashboards, alerts and autoscaling rules that still use the old names return no data with the current vLLM version:

vLLM 0.8.2vLLM 0.32.0
vllm:gpu_cache_usage_percvllm:kv_cache_usage_perc
vllm:gpu_prefix_cache_queries_totalvllm:prefix_cache_queries_total
vllm:gpu_prefix_cache_hits_totalvllm:prefix_cache_hits_total
vllm:time_per_output_token_secondsvllm:inter_token_latency_seconds
vllm:num_requests_swapped, vllm:cpu_cache_usage_perc, vllm:cpu_prefix_cache_hit_rate, vllm:gpu_prefix_cache_hit_rateremoved
vllm:spec_decode_draft_acceptance_rate, vllm:spec_decode_efficiency, vllm:spec_decode_num_emitted_tokens_totalremoved