Skip to content

fix: log avg_request_queue_latency metric #6574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions python/sglang/srt/metrics/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def log_stats(self, stats: SchedulerStats) -> None:
self._log_gauge(self.num_grammar_queue_reqs, stats.num_grammar_queue_reqs)
self._log_gauge(self.cache_hit_rate, stats.cache_hit_rate)
self._log_gauge(self.spec_accept_length, stats.spec_accept_length)
self._log_gauge(self.avg_request_queue_latency, stats.avg_request_queue_latency)

# Disaggregation metrics
self._log_gauge(
Expand Down