TensorRT-LLM end-to-end request latency histogram
Fields
metric-exposures/w3m-tensorrt-llm-trtllm-e2e-request-latency-secondsNotes
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. The docstrings give the intervals explicitly, which is the useful part: prefill is (first_token_time - first_scheduled_time), decode is (last_token_time - first_token_time), inference is (last_token_time - first_scheduled_time). Prefill's ladder is finer at the low end (starts 0.001, steps 0.025) than the shared request ladder.