Skip to content

cgroups location different for k8 vs docker #367

@sahilsuneja1

Description

@sahilsuneja1

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions