vllm:kv_cache_usage_perc
Gauge for KV-cache usage where 1 means 100 percent usage.
Summary
In vLLM v0.23.0, under V1 metrics published by the PrometheusStatLogger, vllm:kv_cache_usage_perc is a Prometheus gauge for KV-cache usage (scheduler runtime component) in which a value of 1 means 100 percent usage. As a measurement, it is a point-in-time gauge in which 1 represents fully used KV block capacity, again for v0.23.0 with V1 metrics and the PrometheusStatLogger. In that same v0.23.0 PrometheusStatLogger/V1 metrics setting, the metric is registered with the label names model_name and engine. Its value comes from SchedulerStats.kv_cache_usage in the V1 scheduler stats, so in v0.23.0 it observes KV-cache usage pressure. Mechanically, in v0.23.0 the metric is set from SchedulerStats.kv_cache_usage rather than being incremented from completed requests. Interpretively, for v0.23.0 it describes active used capacity and is not a counter of reusable cached prefixes or of completed work. Accordingly, in v0.23.0 use it as a pressure signal alongside waiting and progress metrics, and do not infer cache effectiveness from it alone.
Version history
- In
v0.23.0, the only version covered here,vllm:kv_cache_usage_percis exposed by thePrometheusStatLoggerunderV1metrics as a point-in-time Prometheus gauge of KV-cache usage in which a value of 1 means fully used KV block capacity (100 percent). - In that same version its value is set directly from
SchedulerStats.kv_cache_usage— observing scheduler-side KV-cache usage pressure — rather than being incremented from completed requests. - In
v0.23.0the gauge is registered with the label namesmodel_nameandengine. - In
v0.23.0it describes active used capacity and is not a counter of reusable cached prefixes or of completed work. - Accordingly, in
v0.23.0it should be read as a pressure signal alongside waiting and progress metrics, and cache effectiveness should not be inferred from it alone.
Identity
- Prometheus type
- gauge
- Labels
- model_nameengine
- Unit
- Not recorded — vLLM registration code has no structured unit field, and units are not inferred from name suffixes
Semantic coverage
Metric knowledge (7)
Related Use Cases (1)
Availability
vllm:kv_cache_usage_perc is registered as a Prometheus gauge in vLLM v0.23.0.