-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Get Windows network stats directly for Containerd #105744
Get Windows network stats directly for Containerd #105744
Conversation
/triage accepted |
@wgahnagl: The label(s) In response to this:
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/test-infra repository. |
/priority important-longterm |
/sig windows |
/milestone v1.23 |
018aa96
to
adbecd4
Compare
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.
/approve
/hold
Adding hold to give you a chance to address comments. Remove when you are satisfied
type windowsNetworkStatsProvider interface { | ||
HNSListEndpointRequest() ([]hcsshim.HNSEndpoint, error) | ||
GetHNSEndpointStats(endpointName string) (*hcsshim.HNSEndpointStats, error) | ||
Now() time.Time |
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.
Not sure Now() belongs in the interface. Adding a k8s.io/utils/clock.Clock to the cri stats provider seems better.
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.
makes sense, i've made this adjustment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dashpole, jsturtevant 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 |
/cc @bobbypage @qiutongs FYI |
c421931
to
b9672c3
Compare
b9672c3
to
f225a9d
Compare
f225a9d
to
ec0c4cf
Compare
ec0c4cf
to
ab2e58c
Compare
/hold cancel |
/lgtm |
Thank you @jsturtevant for adding this. I wanted to point out the KEP that me and @haircommander are working on to move all of the stats from pod / container stats from the kubelet to the underlying container runtime (this includes network stats). So long term, it would be great to get these stats implemented directly in containerd CRI API (and get support on windows!). Happy to chat more about this offline, will ping you on slack :) |
yup been following the effort! lets chat in slack |
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it:
This ensures we have Network stats for containerd on Windows by querying for the stats were directly. By going to network component directly we also minimize the calls the to listing containers (#104285)
Which issue(s) this PR fixes:
Fixes #104286 #104285
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: