feat: add ability to get individual controller stats#53
feat: add ability to get individual controller stats#53AkihiroSuda merged 1 commit intoopencontainers:mainfrom
Conversation
f8a0dd5 to
7c07d8a
Compare
|
Hi @kolyshkin |
|
Hi @haircommander |
|
would love to see some unit tests, and maybe even a POC of it being used in an end user project like CRI-O |
I have added the unit tests
I'm not very familiar with codebase of CRI-O, but I can get a quick POC in |
9a446c9 to
3bc182c
Compare
|
LGTM thank you! |
|
@haircommander metrics output |
|
great thanks! cc @kolyshkin @AkihiroSuda @dims @dgrisonnet |
be7f526 to
a8d3912
Compare
e9a61a9 to
5a20778
Compare
|
I updated the poc sambhav-jain-16/cadvisor#3 and CI is green with integration tests and unit tests |
kolyshkin
left a comment
There was a problem hiding this comment.
Forgot to send the review comments. PTAL @sambhav-jain-16
This adds methods to retrieve statistics for individual cgroup controllers (CPU, memory, pids, IO, hugetlb, rdma, misc) instead of requiring all stats to be fetched at once. This enables tools like cadvisor to collect specific metrics with different housekeeping intervals, reducing computational overhead. Fixes: opencontainers#44 Signed-off-by: Sambhav Jain <jnsmbhv@gmail.com>
|
LGTM, great work @sambhav-jain-16 |
|
Thanks @haircommander and @kolyshkin for the approvals. |
|
Technically, we have 2 approvals (@haircommander is a maintainer here, the status is not shown because he's not a member of opencontainers org, which I don't know how to fix), so I am going to merge this by the end of this week unless there are new objections/comments. |
Filed opencontainers/tob#149 |
|
I seem to have approval power now, do we manually merge or is there a bot that does it after 2 approvals? |
|
@AkihiroSuda any last minute review comments? |
This PR aims to add methods to retrieve statistics for individual cgroup controllers
(CPU, memory, pids, IO, hugetlb, rdma, misc) instead of requiring all
stats to be fetched at once.
Fixes: #44