sdk-go
sdk-go copied to clipboard
Read cpu and memory usage from cgroup files
DO NOT MERGE: This PR is only for testing.
What was changed
Read CPU and memory usage from cgroup files.
Why?
Currently CPU and memory usage is read using the library github.com/shirou/gopsutil. This will return the usage values of the host machine if worker is running in containers. We have to read cgroup memory and cpu usage to get a container's memory usage.
Checklist
-
Closes
-
How was this tested:
-
Any docs updates needed?