Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read cpu and memory usage from cgroup files #1630

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prathyushpv
Copy link

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

  1. Closes

  2. How was this tested:

  3. Any docs updates needed?

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.

1 participant