-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add support for Podman containers #2424
Comments
cAdvisor only supports getting names from a specific set of container runtimes. Each container runtime integrates with cAdvisor individually. There is a directory for each supported container runtime here: https://github.com/google/cadvisor/tree/master/container |
Sorry, I might be a little confused regarding this low level container stuff and how they all relate to each other, but would this mean that Podman should be treated as an additional container runtime - a new directory to be precise. So it's yet another piece of code needed, next to Docker, CRI-O and containerd? I thought the whole point with OCI and stuff like runc meant that projects like cAdvisor wouldn't have to deal with each individual tool used to create the containers. Maybe I was a bit too optimistic. 🤷♂ |
From what I understand, OCI just refers to the spec of how to define containers. cAdvisor interacts with cgroups, which AFAIK do not have a notion of container name. |
Please add support for podman! |
I've put together a simple podman integration based on the docker compatibility API, see PR #2794 |
Please add Podman support |
Kindly incorporate backing for Podman. |
Any updates here? Is this dead? Can I somehow help? |
Hi everyone, any updates for podman support? I m trying to use cadvisor for podman. But It s getting error when I want to reach /docker window. Also this is my command for installation: podman run --volume=/:/rootfs:ro -v /opt/visoft/.local/share/containers --pid=host --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/opt/visoft/.local/share/containers/:/var/lib/containers:ro --volume=/dev/disk/:/dev/disk:ro --privileged --device=/dev/kmsg --publish=8180:8080 --name=monitoring_cadvisor --volume=/etc/machine-id:/etc/machine-id:ro --rm -d gcr.io/cadvisor/cadvisor:v0.47.2 --podman="unix:///run/user/600/podman/podman.sock" PS: My podman is working as rootless Could you guve me an update on this issue? Thank you |
#3021 from @Creatone is merged to master, but there is no new version of cadvisor created yet. |
Hi,
I am running cAdvisor inside a container on RHEL 8.1. I can get it to run but the metrics I get from it doesn't contain the name of the containers.
Note that since I'm on RHEL/CentOS 8 I do not use Docker, instead I am using Podman to run my containers.
I run cAdvisor like this:
Then I started a few other containers. When I go to
localhost:8080/metrics
I see the containers, but they only have the ID/machine.slice/libpod-<ID>.scope
, there is no label with their name:Either cAdvisor only supports getting names for Docker containers, in which case I ask for a feature request making cAdvisor work with any OCI container.
Or there is a bug in the version I am using (0.35.0), and cAdvisor should be able to get the names of OCI containers. In that case I am reporting a bug.
Or I am doing something wrong in my setup of cAdvisor, in which case I believe that the documentation should mention this to help users like me who want to use cAdvisor to monitor Podman containers.
Thanks!
The text was updated successfully, but these errors were encountered: