-
Notifications
You must be signed in to change notification settings - Fork 40k
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
CRI: Add Windows Podsandbox Stats #110754
Conversation
/assign @dchen1107 @derekwaynecarr |
f7b6d1c
to
d0a9667
Compare
/priority important-soon |
Given hyper-v containers will be supported in Containerd through CRI fairly soon, we'll need to see if we can find a nice intersection with the stats that make sense for containers (and we're using the same for the pod sandbox it seems) and the VM. For Windows for memory it seems like we only ever fill in the workingset for memory and leave the rest blank https://github.com/containerd/containerd/blob/7eae7f206ca04fe32ab05cab760bb39fb1fcf2c7/pkg/cri/server/container_stats_list_windows.go#L78 |
The hyperv stats collected for the VM are https://github.com/microsoft/hcsshim/blob/master/cmd/containerd-shim-runhcs-v1/stats/stats.proto#L47-L70 |
/milestone v1.25 |
b6ce850
to
6ec5588
Compare
Signed-off-by: James Sturtevant <jstur@microsoft.com>
6ec5588
to
295a975
Compare
/lgtm |
Part of kubernetes/enhancements#2371 Follow up to the initial work introducing CRI API fields for Windows metrics collection kubernetes#110754 Windows equivalent work for adding support for Windows podAndContainerStatsFromCRI kubernetes#103095, which will allow users to get Windows pod and container stats only from CRI. Signed-off-by: mansikulkarni96 <mankulka@redhat.com>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds fields to the cri api for Windows to collect metrics from the Container runtime.
Part of kubernetes/enhancements#2371
Follow up to the initial commit that added Linux stats #102789
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig node
/sig windows
/cc @dcantah @haircommander @bobbypage @marosset