cgroup2: implement docker stats#40657
Merged
AkihiroSuda merged 1 commit intomoby:masterfrom Apr 2, 2020
Merged
Conversation
Member
Author
|
@Zyqsempai Are you interested in filling up missing EDIT: What we can add now seems only FailCnt, and this is not urgent (not used by docker CLI) |
This was referenced Mar 9, 2020
Closed
|
@AkihiroSuda Yes I am, thanks! |
5d5fd69 to
570d706
Compare
Member
Author
|
Added blkio stats. Should be ready to review and merge. |
cpuguy83
reviewed
Mar 10, 2020
Member
Author
|
@thaJeztah PTAL? |
Member
Author
|
@kolyshkin PTAL? |
Member
Author
|
Can we merge this? |
Member
|
IIUC, some information will be different / not present depending on if V1 or V2 is used? If so, perhaps we should add a note to the swagger docs to mention this? I'm ok if that's done in a follow-up |
The following fields are unsupported: * BlkioStats: all fields other than IoServiceBytesRecursive * CPUStats: CPUUsage.PercpuUsage * MemoryStats: MaxUsage and Failcnt Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Member
Author
|
added swagger doc |
570d706 to
3802830
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
Implemented
docker statsfor cgroup2.The following fields are unsupported (not used by
dockerCLI):BlkioStats: all fields other thanIoServiceBytesRecursiveCPUStats:CPUUsage.PercpuUsageMemoryStats:MaxUsageandFailcnt- How I did it
See the code.
- How to verify it
Tested on Ubuntu 19.10, containerd/containerd@936b7b0, crun v0.13.
- Description for the changelog
cgroup2: implement
docker stats- A picture of a cute animal (not mandatory but encouraged)
🐧