-
Notifications
You must be signed in to change notification settings - Fork 125
feat: Make metrics stale time configurable #1046
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
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nayihz The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
12f8bfe
to
2d42a53
Compare
a339897
to
1005486
Compare
1005486
to
9b1e7e2
Compare
9b1e7e2
to
12943a7
Compare
/cc @liu-cong |
12943a7
to
518655c
Compare
518655c
to
e54be57
Compare
I found that it becomes very inconvenient to write unit tests after updating |
@nayihz I don’t want to nitpick too much, but to be honest I’m not sure why the interface change was required. |
I mean - to leave PodGetAll function as is.. and use the ListPod with that predicate only in the specific places it’s needed. would that help? |
6bde389
to
bff4272
Compare
make sense to me. |
1fbad64
to
75047b3
Compare
gateway-api-inference-extension/pkg/epp/requestcontrol/director.go Lines 197 to 204 in 2ae867d
Will change d.datastore.PodGetAll to d.datastore.PodList(backendmetrics.FreshMetricsFn) in a follow up because we should refractor the unit test. @nirrozenbaum
|
Heya @nayihz do you mind rebasing? I can take a look tomorrow once this is up to date |
75047b3
to
dfbfce2
Compare
…only fresh metrics
dfbfce2
to
32ddd96
Compare
Sorry for the delay here, finally got some time to rebase this, PTAL. |
PR needs rebase. 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. |
fix: #336
changes ref: #336 (comment)