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

Not able to read memory metrics with cgroup v2 and latest docker + ubuntu 22.04 #14961

Open
mesiu84 opened this issue Jun 17, 2022 · 2 comments
Labels
area/engine Issue affects Docker engine/daemon lifecycle/frozen lifecycle/stale

Comments

@mesiu84
Copy link

mesiu84 commented Jun 17, 2022

I'm trying to read docker memory metrics from /sys/fs.
What worked previously on Ubuntu 18.04 and 20.04 doesn't work with latest ubuntu 22.04 and latest available docker: Docker version 20.10.17, build 100c701

Previously we were reading metrics from /sys/fs/cgroup/memory/docker/CONTAINER_ID/ and since now we have cgroup v2 then according to official documentation we should be reading those from: /sys/fs/cgroup/docker/CONTAINER_ID/ but /sys/fs/cgroup/docker doesn't exist.

root@srv01:/home/tuser# docker info | grep -i driver
Storage Driver: overlay2
Logging Driver: json-file
Cgroup Driver: systemd

@craig-osterhout craig-osterhout added the area/engine Issue affects Docker engine/daemon label Aug 2, 2022
@docker-robott
Copy link
Collaborator

There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

@mesiu84
Copy link
Author

mesiu84 commented Jan 3, 2023

/lifecycle frozen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine Issue affects Docker engine/daemon lifecycle/frozen lifecycle/stale
Projects
None yet
Development

No branches or pull requests

3 participants