In vLLM v0.23.0, queued_time is computed as req_stats.scheduled_ts - req_stats.queued_ts; the source comment describes the queued interval as from first QUEUED event to first SCHEDULED.
MetricvLLM v0.23.0confidence: highverified 2 hr agoverified-code
Metric
request_queue_time_secondsApplies when
V1 metricsIterationStats.update_from_finished_request finished-request accounting
Evidence
vLLM v0.23.0 v1 metrics stats.py(vllm/v1/metrics/stats.py:439-440)
definesprimarysource_codecode_introspection
Does not establish
- typical or healthy queue-time durations (workload-dependent)
- that
queued_tsreflects the firstQUEUEDevent if a request emits multipleQUEUEDevents (IterationStats.update_from_eventsassignsqueued_tson eachQUEUEDevent processed, so the source comment's "firstQUEUEDevent" wording is not enforced by the visible assignment) - queue interval semantics in vLLM versions other than v0.23.0
Guards
vllm_version= v0.23.0metric_name=vllm:request_queue_time_secondsruntime_component= scheduler