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

cgroups location different for k8 vs docker #367

Open
sahilsuneja1 opened this issue Jul 12, 2018 · 0 comments
Open

cgroups location different for k8 vs docker #367

sahilsuneja1 opened this issue Jul 12, 2018 · 0 comments

Comments

@sahilsuneja1
Copy link
Contributor

sahilsuneja1 commented Jul 12, 2018

Description

Rupesh pointed out that the crawler is unable to crawl cpu / memory for containers created using k8 (works for containers created directly using docker).
Turns out cgroupfs location for containers is different in both cases.
While crawler expects them to be at /sys/fs/cgroup/memory/docker/container-id, k8 puts them in /sys/fs/cgroup/memory/kubepods/burstable/pod-id/container-id or /sys/fs/cgroup/memory/kubepods/besteffort/pod-id/container-id.

Fix is to update the search path for the crawler for the containers' cgroupfs, but this goes back into the bigger discussion of making crawler k8-aware.

@nadgowdas @tatsuhirochiba

How to Reproduce

Log Output

Debugging Commands Output

Output of docker version:

(paste your output here)

Output of docker info:

(paste your output here)

Output of python --version:

(paste your output here)

Output of pip freeze:

(paste your output here)
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

No branches or pull requests

1 participant