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

vllm:prompt_tokens_cached

Counter for cached prompt tokens, local plus external.

MetricPrometheusverified Sep 29

Version history

  • The only version covered here is v0.23.0, where vllm:prompt_tokens_cached is registered as a Prometheus counter with the label names model_name and engine under the PrometheusStatLogger V1 metrics publisher.
  • In v0.23.0 it counts cached prompt tokens reused during processing, combining local and external sources.
  • In v0.23.0 the counter increments from the per-iteration PromptTokenStats.cached_tokens field.
  • In v0.23.0 it represents aggregate saved prompt-token work and is not by itself a per-request cache-hit percentage.
  • For v0.23.0, the guidance is to compare its rate with prompt-token demand under matching labels and windows, separating local and external attribution when required.

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

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:prompt_tokens_cached 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:653-660