Add cgroup cpu/mem/disk usage metrics#16472
Conversation
|
Added a few comments but overall, the change looks good to me. Were you able to validate that you were getting the right values for these? One way would be to test your assumptions in Docker and see if your numbers match with what Docker sees. |
Yeah tested in docker to see the formats match. But for cpu usage percentage, where do you want me to confirm from ? |
The Docker desktop UI displays CPU usage for a container, but I'm not 100% sure if even Docker does it right. But if it does, it'll give you additional confidence. |
I have tested with Datadog, even though the %s aren't exactly matching up, the spikes are matching. So I think it is safe to assume working fine. |
47cca7f to
ba6fea9
Compare
suneet-s
left a comment
There was a problem hiding this comment.
Thanks @adithyachakilam !
Description
This PRs expands the existing metrics reported by the Cgroup monitors. Specifically adds the usage for cpu, memory and disk.
Release note
Introduces new usage metrics for cpu and memory cgroups
Key changed/added classes in this PR
CgroupCpuMonitor.javaCgroupMemoryMonitor.javaCgroupDiskMonitor.javaThis PR has: