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_tokensis known to be registered by thePrometheusStatLogger(V1metrics) as a Prometheus histogram carrying the label namesmodel_nameandengine. - In that same
v0.23.0scope, 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, fromnum_prompt_tokensandnum_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.0is 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