SGLang inter-token latency histogram
Fields
metric-exposures/w3m-sglang-sglang-inter-token-latency-secondsNotes
SGLang main, python/sglang/srt/observability/metrics_collector.py, read 2026-10-04. NOT ON BY DEFAULT: nothing is exported unless --enable-metrics (ServerArgs default False), which is also the only thing that mounts /metrics on the server port. Label keys are model_name, engine_type, tp_rank, pp_rank, moe_ep_rank (plus dp_rank under data parallelism, priority under priority scheduling, and anything in extra_metric_labels). Bucket ladders are overridable per histogram via get_histogram_conf_from_env. The observer divides each wall-clock interval by num_new_tokens and increments the bucket num_new_tokens times, so a speculative step carries more weight than a single-token step. That is why this and sglang:request_time_per_output_token_seconds are NOT interchangeable even though they share a bucket ladder.