Schema.ai· vLLM
vLLM official site Log in
vLLM v0.23.0 · Version scoped

vllm:prompt_tokens

Counter for the number of prefill tokens processed.

MetricPrometheusverified Sep 29

Summary

In vLLM v0.23.0, under V1 metrics published by PrometheusStatLogger, vllm:prompt_tokens counts prefill tokens processed across iterations. In that same version and V1 PrometheusStatLogger context, the metric is registered as a Prometheus counter. It is registered with the label names model_name and engine. At runtime in v0.23.0, the counter increments from IterationStats.num_prompt_tokens during iteration logging. Interpretively, in v0.23.0 it represents aggregate prefill work and does not by itself distinguish cached prompt tokens from newly computed ones. Accordingly, in v0.23.0 use rate over this counter for prompt throughput, and pair it with cached/computed-token and queue/TTFT metrics before drawing efficiency conclusions.

Version history

  • In the only version covered here, v0.23.0, vllm:prompt_tokens is registered as a Prometheus counter carrying the label names model_name and engine under the V1 PrometheusStatLogger publisher.
  • In v0.23.0 it counts prefill tokens processed across iterations, incrementing from IterationStats.num_prompt_tokens during iteration logging.
  • In v0.23.0 it reflects aggregate prefill work without distinguishing cached from newly computed prompt tokens, so it should be read as a rate for prompt throughput and paired with cached/computed-token and queue/TTFT metrics before drawing efficiency conclusions.

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 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:628-635