-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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 fields for pod level stats to satisfy the /stats/summary API #102789
CRI: add fields for pod level stats to satisfy the /stats/summary API #102789
Conversation
86bce42
to
0e94fd0
Compare
// Stats pertaining to container logs usage of filesystem resources | ||
// Logs.UsedBytes is the number of bytes used for the container logs. | ||
FilesystemUsage logs = 5; |
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.
while discussed in the KEP, it's unclear to me right now whether this is the correct direciton. the paths for ContainerStatsProviders and HostStatsProvider are quite different, and querying cadvisor for the size of a path on the host does seem out of scope of "container and pod level stats", even if they're logs.
finally, CRI doesn't think much about logs besides ensuring they're written.
/priority important-soon |
/retest |
/triage accepted |
/cc |
0e94fd0
to
d1e9cd6
Compare
I originally had thought we were moving to CRI v1 more quickly than we are. I've updated with the changes to v1alpha2 as well |
d1e9cd6
to
dec522d
Compare
e06d685
to
9f315ac
Compare
updated kubernetes/enhancements#2812 and this with the review comments, excluding the PodSandboxAttributes->PodSandbox change, which I am not sold on :) |
Thanks for the updates. Make sense regarding keeping |
9f315ac
to
c54a100
Compare
missed a couple of comments, but I should be up to date now |
c54a100
to
49ca34c
Compare
/retest |
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
49ca34c
to
a9b7dcc
Compare
/lgtm |
/milestone v1.22 |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, mikebrow, mrunalp 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 |
Pending a decision on the exception request we are removing the milestone. /milestone clear |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds the necessary fields for the stats summary API to the CRI API, thus completing the first step of kubernetes/enhancements#2364
Which issue(s) this PR 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.: