Skip to content

Commit 2c55427

Browse files
lambert0312tarinkk
authored andcommitted
Modify metrics service endpoint (sgl-project#3443)
1 parent 52ba04b commit 2c55427

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/sglang/srt/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,8 @@ async def authentication(request, call_next):
784784
return await call_next(request)
785785
if request.url.path.startswith("/health"):
786786
return await call_next(request)
787+
if request.url.path.startswith("/metrics"):
788+
return await call_next(request)
787789
if request.headers.get("Authorization") != "Bearer " + api_key:
788790
return ORJSONResponse(content={"error": "Unauthorized"}, status_code=401)
789791
return await call_next(request)

0 commit comments

Comments
 (0)