Schema.ai· vLLM
vLLM official site Log in
All versions · Version range: v0.7.0–v0.29.0

vllm:prefix_cache_queries

Counter for prefix cache queries, in queried tokens.

MetricPrometheusverified Sep 29

Version history

  • In vLLM v0.23.0, vllm:prefix_cache_queries is exposed by the V1 PrometheusStatLogger as a Prometheus counter measured in queried tokens, accumulating the tokens presented to the first-party prefix-cache lookup rather than requests or cache blocks.
  • In that same version it is registered with the label names model_name and engine.
  • Also in v0.23.0, the counter increments from SchedulerStats.prefix_cache_stats.queries on each scheduler-stats logging update and observes first-party prefix-cache token reuse, while KV-connector reuse is reported separately by the vllm:external_prefix_cache_* counters.
  • For interpretation in v0.23.0, it serves as the token denominator of a same-label, same-window prefix-cache hit ratio, so it should be combined with prefix_cache_hits using rate or increase over a chosen window instead of reading the cumulative total as a rate.

Identity

Prometheus type
counter
Labels
model_nameengine
Unit
Not recorded — vLLM registration code has no structured unit field, and units are not inferred from name suffixes

Lifecycle

vLLM versionStateMetric name
v0.29.0presentvllm:prefix_cache_queries
v0.28.0presentvllm:prefix_cache_queries
v0.27.1presentvllm:prefix_cache_queries
v0.27.0presentvllm:prefix_cache_queries
v0.26.0presentvllm:prefix_cache_queries
v0.25.1presentvllm:prefix_cache_queries
v0.25.0presentvllm:prefix_cache_queries
v0.24.0presentvllm:prefix_cache_queries
v0.23.0presentvllm:prefix_cache_queries
v0.22.1presentvllm:prefix_cache_queries
v0.22.0presentvllm:prefix_cache_queries
v0.21.0presentvllm:prefix_cache_queries
v0.20.2presentvllm:prefix_cache_queries
v0.20.1presentvllm:prefix_cache_queries
v0.20.0presentvllm:prefix_cache_queries
v0.19.1presentvllm:prefix_cache_queries
v0.19.0presentvllm:prefix_cache_queries
v0.18.1presentvllm:prefix_cache_queries
v0.18.0presentvllm:prefix_cache_queries
v0.17.1presentvllm:prefix_cache_queries
v0.17.0presentvllm:prefix_cache_queries
v0.16.0presentvllm:prefix_cache_queries
v0.15.1presentvllm:prefix_cache_queries
v0.15.0presentvllm:prefix_cache_queries
v0.14.1presentvllm:prefix_cache_queries
v0.14.0presentvllm:prefix_cache_queries
v0.13.0presentvllm:prefix_cache_queries
v0.12.0presentvllm:prefix_cache_queries
v0.11.2presentvllm:prefix_cache_queries
v0.11.1presentvllm:prefix_cache_queries
v0.11.0presentvllm:prefix_cache_queries
v0.10.2presentvllm:prefix_cache_queries
v0.10.1.1presentvllm:prefix_cache_queries
v0.10.1presentvllm:prefix_cache_queries
v0.10.0presentvllm:prefix_cache_queries
v0.9.2presentvllm:prefix_cache_queries
v0.9.1presentvllm:gpu_prefix_cache_queries
v0.9.0.1presentvllm:gpu_prefix_cache_queries
v0.9.0presentvllm:gpu_prefix_cache_queries
v0.8.5.post1presentvllm:gpu_prefix_cache_queries
v0.8.5presentvllm:gpu_prefix_cache_queries
v0.8.4presentvllm:gpu_prefix_cache_queries
v0.8.3presentvllm:gpu_prefix_cache_queries
v0.8.2presentvllm:gpu_prefix_cache_queries
v0.8.1presentvllm:gpu_prefix_cache_queries
v0.8.0presentvllm:gpu_prefix_cache_queries
v0.7.3presentvllm:gpu_prefix_cache_queries
v0.7.2absentvllm:prefix_cache_queries
v0.7.1absentvllm:prefix_cache_queries
v0.7.0absentvllm:prefix_cache_queries

Semantic coverage

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

Metric knowledge (7)

Related Use Cases (3)

Availability

vllm:prefix_cache_queries is registered as a Prometheus counter 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:542-551