Schema.ai· vLLM
vLLM official site Log in
All versions · Version range: v0.23.0

vllm:request_prefill_kv_computed_tokens

Histogram of new KV tokens computed during prefill, excluding cached tokens.

MetricPrometheusverified Sep 29

Version history

  • In vLLM v0.23.0, vllm:request_prefill_kv_computed_tokens is known to be registered by the PrometheusStatLogger (V1 metrics) as a Prometheus histogram carrying the label names model_name and engine.
  • In that same v0.23.0 scope, it records one histogram sample per finished request equal to prompt tokens minus non-negative cached tokens.
  • Also in v0.23.0, the value is computed during finished-request logging after the request completes, from num_prompt_tokens and num_cached_tokens.
  • Interpretively for v0.23.0, the metric reflects newly computed prefill KV work per completed request rather than total prompt length whenever caching contributes.
  • Guidance recorded for v0.23.0 is to compare its distributions under matched workloads alongside cached-token counters and to avoid reading a single bucket count as token throughput.

Identity

Prometheus type
histogram
Labels
model_nameengine
Buckets
Not recorded — bucket boundaries are computed at runtime from max_model_len, so no fixed values are true
Unit
Not recorded — vLLM registration code has no structured unit field, and units are not inferred from name suffixes

Semantic coverage

covered · Availability & namecovered · Structural identitycovered · Measurement semanticscovered · Causal/runtime semanticscovered · Interpretation & compositioncovered · Guarded guidance

Metric knowledge (6)

Related Use Cases (1)

Availability

vllm:request_prefill_kv_computed_tokens is registered as a Prometheus histogram in vLLM v0.23.0.
vllm.surface.prometheus_metricscomplete_inventoryPrometheusStatLogger metrics publisher

vLLM v0.23.0 v1 metrics loggers.py · vllm/v1/metrics/loggers.py:920-931