-
Notifications
You must be signed in to change notification settings - Fork 29
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
Adding metrics for request total, latency and size #177
Conversation
|
Hi @courageJ. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
cc @JeffLuoo |
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small comment, otherwise lgtm
/lgtm |
/assign @terrytangyuan |
/hold I would like to take a look, I will do so tomorrow if you don't mind |
/ok-to-test |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3713596
to
a93aa22
Compare
3ab406c
to
b324502
Compare
Signed-off-by: Jie WU <wujie@google.com> add request metrics Signed-off-by: Jie WU <wujie@google.com> rename api and metrics fix go mod Adding metrics handler Signed-off-by: Jie WU <wujie@google.com> Adding metrics handler Signed-off-by: Jie WU <wujie@google.com> add request metrics rename api and metrics fix mod Updated request metrics to be handled in server processing loop Signed-off-by: Jie WU <wujie@google.com> Updated request metrics to be handled in server processing loop Signed-off-by: Jie WU <wujie@google.com> fix go mod Signed-off-by: Jie WU <wujie@google.com> fix go mod Signed-off-by: Jie WU <wujie@google.com> remove preconfigured buffered response Signed-off-by: Jie WU <wujie@google.com> Add streamed response Signed-off-by: Jie WU <wujie@google.com> Handle latency with response Signed-off-by: Jie WU <wujie@google.com> refactor Signed-off-by: Jie WU <wujie@google.com> fmt Signed-off-by: Jie WU <wujie@google.com> fmt Signed-off-by: Jie WU <wujie@google.com> fmt Signed-off-by: Jie WU <wujie@google.com> refactor server Signed-off-by: Jie WU <wujie@google.com> metrics auth add docs and go mod tidy refactor move file move file
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, courageJ, liu-cong 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 |
The PR adds the metrics handler and basic metrics for requests.
The request latency metrics now will only work if the response mode is buffered.
The request counter only covers the success case now. A follow-up PR will be added to record request errors and update to record request counter for failure cases.