Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(benchmark): scrape native SGLang sidecar metrics - #367

Open
connorcarpenter15 wants to merge 3 commits into
NVIDIA:mainfrom
connorcarpenter15:fix/sglang-sidecar-metrics
Open

fix(benchmark): scrape native SGLang sidecar metrics#367
connorcarpenter15 wants to merge 3 commits into
NVIDIA:mainfrom
connorcarpenter15:fix/sglang-sidecar-metrics

Conversation

@connorcarpenter15

Copy link
Copy Markdown
Contributor

Summary

  • Scrape standalone Dynamo SGLang sidecar worker metrics from native leader HTTP ports.
  • Keep Dynamo worker routing endpoints on system ports.
  • Add regression coverage for disaggregated leader and follower endpoint rendering.

Why

Native sglang.launch_server exposes sglang: engine metrics on its HTTP port, while the Dynamo system port remains the routing endpoint. Advertising the system port to AIPerf caused otherwise successful sidecar benchmarks to fail validators that require SGLang metrics.

Testing

  • uv run pytest tests/test_benchmarks.py::TestCustomBenchmarkRunner -q — 13 passed.
  • uv run ruff check src/srtctl/cli/mixins/benchmark_stage.py — passed.
  • Validated on a GB300 AgentX sidecar run: AIPerf reached both metrics endpoints, accepted the required sglang: prefix, and completed 1,106 measured requests with zero errors.

@codecov-commenter

codecov-commenter commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@eff7836). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/srtctl/backends/sglang.py 88.88% 1 Missing ⚠️
src/srtctl/cli/mixins/benchmark_stage.py 94.11% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #367   +/-   ##
=======================================
  Coverage        ?   72.48%           
=======================================
  Files           ?       99           
  Lines           ?    13572           
  Branches        ?        0           
=======================================
  Hits            ?     9838           
  Misses          ?     3734           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants