Skip to content

stats/v1: export per-cgroup stats - #100

Merged
estesp merged 1 commit into
containerd:masterfrom
fuweid:me-support-cgroupstats
Oct 11, 2019
Merged

stats/v1: export per-cgroup stats#100
estesp merged 1 commit into
containerd:masterfrom
fuweid:me-support-cgroupstats

Conversation

@fuweid

@fuweid fuweid commented Oct 9, 2019

Copy link
Copy Markdown
Member

The cgroupstats provides information from taskstats which help us to
know how busy tasks in one cgroup are right now. With Metric API in
shim, it can enhance monitor capability.

For more information:

Signed-off-by: Wei Fu fuweid89@gmail.com

The cgroupstats provides information from taskstats which help us to
know how `busy` tasks in one cgroup are right now. With Metric API in
shim, it can enhance monitor capability.

For more information:

* https://github.com/torvalds/linux/blob/master/include/uapi/linux/cgroupstats.h
* https://www.kernel.org/doc/Documentation/accounting/cgroupstats.txt
* https://www.kernel.org/doc/Documentation/accounting/taskstats.txt

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@codecov-io

codecov-io commented Oct 9, 2019

Copy link
Copy Markdown

Codecov Report

Merging #100 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #100   +/-   ##
=======================================
  Coverage   45.42%   45.42%           
=======================================
  Files          23       23           
  Lines        1638     1638           
=======================================
  Hits          744      744           
  Misses        768      768           
  Partials      126      126

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bec0ecb...fccf4d4. Read the comment docs.

@crosbymichael

Copy link
Copy Markdown
Member

So these stats are provided via a netlink socket?

@fuweid

fuweid commented Oct 10, 2019

Copy link
Copy Markdown
Member Author

So these stats are provided via a netlink socket?

Yes. It seems efficient I think.

@crosbymichael

Copy link
Copy Markdown
Member

Where is the implementation going to come from? the Shims?

@fuweid

fuweid commented Oct 11, 2019

Copy link
Copy Markdown
Member Author

Where is the implementation going to come from? the Shims?

Yes. It is for kata container. We put the collector in the agent. It will export the data through Mertic Shim API.

@Ace-Tang

Ace-Tang commented Oct 11, 2019

Copy link
Copy Markdown

We decide to use metric-server get load information instead of using cadvisor(we make runc and kata provide load information, and passed by shim metric interface). So add a interface in containerd/cgroup libbrary.

@crosbymichael

Copy link
Copy Markdown
Member

LGTM

@estesp estesp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp
estesp merged commit 5fbad35 into containerd:master Oct 11, 2019
@fuweid
fuweid deleted the me-support-cgroupstats branch October 12, 2019 10:06
thaJeztah added a commit to thaJeztah/docker that referenced this pull request Oct 31, 2019
full diff: containerd/cgroups@c4b9ac5...5fbad35

- containerd/cgroups#82 Add go module support
- containerd/cgroups#96 Move metrics proto package to stats/v1
- containerd/cgroups#97 Allow overriding the default /proc folder in blkioController
- containerd/cgroups#98 Allows ignoring memory modules
- containerd/cgroups#99 Add Go 1.13 to Travis
- containerd/cgroups#100 stats/v1: export per-cgroup stats

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Oct 31, 2019
full diff: containerd/cgroups@c4b9ac5...5fbad35

- containerd/cgroups#82 Add go module support
- containerd/cgroups#96 Move metrics proto package to stats/v1
- containerd/cgroups#97 Allow overriding the default /proc folder in blkioController
- containerd/cgroups#98 Allows ignoring memory modules
- containerd/cgroups#99 Add Go 1.13 to Travis
- containerd/cgroups#100 stats/v1: export per-cgroup stats

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 27552ceb15bca544820229e574427d4c1d6ef585
Component: engine
thaJeztah added a commit to thaJeztah/docker that referenced this pull request Dec 3, 2019
full diff: containerd/cgroups@c4b9ac5...5fbad35

- containerd/cgroups#82 Add go module support
- containerd/cgroups#96 Move metrics proto package to stats/v1
- containerd/cgroups#97 Allow overriding the default /proc folder in blkioController
- containerd/cgroups#98 Allows ignoring memory modules
- containerd/cgroups#99 Add Go 1.13 to Travis
- containerd/cgroups#100 stats/v1: export per-cgroup stats

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 27552ce)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Jan 23, 2020
full diff: containerd/cgroups@c4b9ac5...5fbad35

- containerd/cgroups#82 Add go module support
- containerd/cgroups#96 Move metrics proto package to stats/v1
- containerd/cgroups#97 Allow overriding the default /proc folder in blkioController
- containerd/cgroups#98 Allows ignoring memory modules
- containerd/cgroups#99 Add Go 1.13 to Travis
- containerd/cgroups#100 stats/v1: export per-cgroup stats

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 27552ceb15bca544820229e574427d4c1d6ef585)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 9ab162a73ac9e133a21cffbadd3339cbb5213939
Component: engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants