Schema.ai· vLLM
vLLM v0.23.0API up

The metric of interest is the ratio, not the counters you can see

known failingretrievalhonestyvLLM v0.23.0

The nuance

The vLLM design docs record prefix-cache activity as two token-denominated counters but state the metric of interest is the derived hit rate. The rationale section never names the real metrics (its PromQL example uses placeholder names), so no keyword search over the raw source can join the counter an operator sees to the compute-the-ratio guidance Schema's interpretation claim is the only place that join exists. The question arrives in the source's own vocabulary ("tokens queried" / "queried tokens"), which a web-grounded frontier model resolved to the wrong metrics entirely (prompt/generation tokens).

Expected behavior

All variants should serve the prefix-cache counter claims together with the hit-rate interpretation claim (rate over exposition _total series, tokens not requests), with the hit-rate-thresholds gap explicit never a synthesized healthy range.

Try the questions (3)

This scenario is documented as known failing: some variants do not yet serve the expected blocks. Running them shows today's real behavior — the failure is recorded, not hidden.

what are the prometheus metrics for vllm for: number of tokens queried and the number of queried tokensrun →number of tokens queried and the number of queried tokensrun →How do I interpret vllm:prefix_cache_hits and the prefix cache hit rate?run →

Grounding claims

Topics, entities, and gaps

Eval fixtures

eval.vllm.metric.prefix-cache.hit-rate-blocks

Counterfactual evidence

What a general model did with these questions (repo artifacts).

docs/research/handoff_inbox/vllm-prometheus-metrics-session-handoff.md

docs/research/handoff_inbox/chatgpt_review_claim_1.md

Status notes

known_failing (2026-07-15): the first variant retrieves the scheduler/KV claims generic framing tokens swamp the discriminative doc-phrase (BACKLOG: Query Retrieval: Discriminative-Phrase Ranking). The bare phrase and the interpretation-question variants work. Counter-name entry points also do not co-serve the interpretation claim (BACKLOG: Claim Anatomy, contrast-sets item). Promote to works_today when both land, and convert the failing variant into a golden fixture.