Skip to content
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

Add running request gauge metric #604

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

JeffLuoo
Copy link
Contributor

@JeffLuoo JeffLuoo commented Mar 28, 2025

Tested locally and compare the result with vLLM requests count gauge metrics:

AHrAuANCCxVH8Pc

Blue Line: vLLM

Green Line: EPP

Resolve #593

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 28, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 28, 2025
Copy link

netlify bot commented Mar 28, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 319587c
🔍 Latest deploy log https://app.netlify.com/sites/gateway-api-inference-extension/deploys/67eb0eff228a460008f298bf
😎 Deploy Preview https://deploy-preview-604--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JeffLuoo
Copy link
Contributor Author

cc: @ahg-g @courageJ

@@ -322,6 +323,7 @@ func (s *StreamingServer) HandleRequestBody(
if !ok {
return reqCtx, errutil.Error{Code: errutil.BadRequest, Msg: "model not found in request"}
}
metrics.IncRunningRequests(model)
Copy link
Contributor

@ahg-g ahg-g Mar 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to increment this only if we successfully responded with a picked endpoint? @smarterclayton wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If an endpoint is not picked, the gauge will decrease immediately in the error handling so I think it should be fine to increase the request number it here.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 31, 2025
@JeffLuoo JeffLuoo requested review from kfswain and ahg-g March 31, 2025 21:52
@ahg-g
Copy link
Contributor

ahg-g commented Mar 31, 2025

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 31, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, JeffLuoo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 31, 2025
@k8s-ci-robot k8s-ci-robot merged commit 4d392ce into kubernetes-sigs:main Mar 31, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add running requests metric
4 participants