inference/research
verifiedhigh · 0.94updated 2026-10-04

TensorRT-LLM time-per-output-token (TPOT) histogram

tensorrt-llm · histogram

Fields

id
metric-exposures/w3m-tensorrt-llm-trtllm-time-per-output-token-seconds
Metric name
trtllm_time_per_output_token_seconds
Metric type
histogram
Unit
seconds
Exposure
prometheus
Endpoint
:8000/prometheus/metrics
Histogram buckets
0.010.0250.050.0750.10.150.20.30.40.50.7512.557.510204080
Labels
model_nameengine_type
Enabled by default
no
Phase scoped
yes
notes
TensorRT-LLM main, MetricsCollector in tensorrt_llm/metrics/collector.py, read 2026-10-04. collector.py line 32 carries the header comment 'Adapted from https://github.com/vllm-project/vllm/blob/v0.10.0rc1/vllm/engine/metrics.py#L30', so this is a vLLM fork with the prefix swapped to trtllm_. NOT ON BY DEFAULT: the collector is only constructed and /prometheus/metrics only mounted when --return_perf-metrics is set (llm_args default False). Endpoint is :8000/prometheus/metrics - NOT /metrics, and the server's own GET /metrics serves a JSON iteration-stats snapshot, so a scraper pointed at /metrics gets JSON rather than exposition text. Labels are model_name and engine_type. Named time_PER_output_token, not vLLM's request_time_per_output_token_seconds. Default ladder is vLLM's ITL ladder (0.01 .. 80.0).

Notes

TensorRT-LLM main, MetricsCollector in tensorrt_llm/metrics/collector.py, read 2026-10-04. collector.py line 32 carries the header comment 'Adapted from https://github.com/vllm-project/vllm/blob/v0.10.0rc1/vllm/engine/metrics.py#L30', so this is a vLLM fork with the prefix swapped to trtllm_. NOT ON BY DEFAULT: the collector is only constructed and /prometheus/metrics only mounted when --return_perf-metrics is set (llm_args default False). Endpoint is :8000/prometheus/metrics - NOT /metrics, and the server's own GET /metrics serves a JSON iteration-stats snapshot, so a scraper pointed at /metrics gets JSON rather than exposition text. Labels are model_name and engine_type. Named time_PER_output_token, not vLLM's request_time_per_output_token_seconds. Default ladder is vLLM's ITL ladder (0.01 .. 80.0).

Cross-references