In vLLM v0.23.0, vllm:prefix_cache_hits is a Prometheus counter measured in cached (hit) tokens — it counts tokens, not requests or cache blocks.
MetricvLLM v0.23.0confidence: highverified 11 min agoverified-code
Metric
prefix_cache_hitsApplies when
PrometheusStatLogger metrics publisherV1 metrics
Evidence
vLLM v0.23.0 v1 metrics loggers.py(vllm/v1/metrics/loggers.py:553-561)
definesprimarysource_codecode_introspection
vLLM v0.23.0 v1 metrics loggers.py(vllm/v1/metrics/loggers.py:1083-1088)
supportssecondarysource_codecode_introspection
Does not establish
- a healthy hit-rate threshold
- request-level cache behavior (the unit is tokens, not requests)
- cache sizing guidance
Guards
vllm_version= v0.23.0metric_name=vllm:prefix_cache_hitsruntime_component=kv_cache