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

TGI batch-concatenation counter by reason

text-generation-inference · counter

Fields

id
metric-exposures/w3m-text-generation-inference-tgi-batch-concat
Metric name
tgi_batch_concat
Metric type
counter
Unit
requests
Exposure
prometheus
Endpoint
:9000/metrics
Labels
reason
Enabled by default
yes
notes
TGI main, router/src/server.rs plus backends/v3/src/{backend,queue,lib}.rs, read 2026-10-04. On by default: the Prometheus recorder is built unconditionally with PrometheusBuilder and an HTTP listener on prometheus_port, default 9000, so nothing has to be opted into. Label keys are method (prefill|decode) on the batch families, err on tgi_request_failure, and reason on tgi_batch_concat - there are no model or engine labels, so every series is fleet-wide. reason in {backpressure, chunking, wait_exceeded}. These are the three ways TGI admits less work than it could, which is the observable trace of an overloaded system.

Notes

TGI main, router/src/server.rs plus backends/v3/src/{backend,queue,lib}.rs, read 2026-10-04. On by default: the Prometheus recorder is built unconditionally with PrometheusBuilder and an HTTP listener on prometheus_port, default 9000, so nothing has to be opted into. Label keys are method (prefill|decode) on the batch families, err on tgi_request_failure, and reason on tgi_batch_concat - there are no model or engine labels, so every series is fleet-wide. reason in {backpressure, chunking, wait_exceeded}. These are the three ways TGI admits less work than it could, which is the observable trace of an overloaded system.

Cross-references