vllm:iteration_tokens_total
Histogram of the number of tokens per engine step.
Summary
In vLLM v0.23.0, under the PrometheusStatLogger metrics publisher with V1 metrics, vllm:iteration_tokens_total is registered as a Prometheus histogram. Its registration in that same v0.23.0 PrometheusStatLogger/V1 metrics path declares the label names model_name and engine. The v0.23.0 registration also declares 13 literal histogram bucket boundaries, ranging from 1.0 to 16384.0. In v0.23.0 with PrometheusStatLogger and V1 metrics, the metric observes one histogram sample per engine step, whose value is the computed prompt tokens plus generated tokens. These samples are populated from iteration-level work after each IterationStats update in v0.23.0. Despite the word "total" in its declared name, in v0.23.0 the metric describes the distribution of batch/step work rather than acting as a cumulative token counter. Accordingly, in v0.23.0 use its distribution to inspect batching, and do not calculate token throughput from bucket counts without elapsed-time counters.
Version history
- In vLLM
v0.23.0, under thePrometheusStatLoggerpublisher withV1metrics,vllm:iteration_tokens_totalis registered as a Prometheus histogram carrying the label namesmodel_nameandengine. - Its
v0.23.0registration declares 13 literal histogram bucket boundaries spanning 1.0 to 16384.0. - In
v0.23.0the metric observes one histogram sample per engine step equal to computed prompt tokens plus generated tokens. - That
v0.23.0sampling is driven by iteration-level work, with the metric populated after each IterationStats update. - Despite the word total in its declared name, in
v0.23.0it describes the distribution of batch/step work rather than acting as a cumulative token counter. - Accordingly, in
v0.23.0the recommended use is to inspect batching through its distribution and not to calculate token throughput from bucket counts without elapsed-time counters.
Identity
- Prometheus type
- histogram
- Labels
- model_nameengine
- Buckets
- 13 boundaries · 1 → 16384
- 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:iteration_tokens_total is registered as a Prometheus histogram in vLLM v0.23.0.