-
Notifications
You must be signed in to change notification settings - Fork 16
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
Sensor fails to detect containers #7
Comments
Hello, |
Sure, : |
Hello,
I think the first step could be activated with a cli flag, when type does not matter, but I'm not sure how to properly handle the second point, any idea ? Allow overriding them with a cli option ? I'd like to make a PR for this, to avoid maintaining a fork for our centos platform. Besides, I suspect we might encounter other system where these paths have other values. |
I almost forgot, I still have a pending PR for the first point : #5 |
I'm having some problem related to this, i.e., deploying in Kubernetes. Any clues on how to fix this? Btw, my Kernel has the |
Hello @marceloamaral, For now, the only way to get the sensor work for this kind of environment is to disable the unified hierarchy, and to setup the Kubernetes cluster to use |
Thanks, I'll check it out! |
Hi, I deployed hwpc-sensor in the cluster with cgroup v1. The sensor finds the VMs running in the system but not the containers....
Any idea how to debug/fix that? |
Hi,
I have a system where the sensor fails to detect any running container, both when using docker or kubernetes directly.
When looking at the source code, I see that the sensor
ll /sys/fs/cgroup/perf_event/
(can be changed with the-p
flaghwpc-sensor/src/target.c
Line 56 in adfcb65
perf_event/docker/...
for dockerperf_event/kubepods/...
for kubernetesOn my system,
/sys/fs/cgroup/perf_event/kubepods.slice/
, are detected but fail type validation/sys/fs/cgroup/perf_event/system.slice/
are detected but fail type validation tooAs a consequences, no container is monitored.
Maybe we could bypass type detection and file validation altogether, as I proposed in the old #2 PR ? That should solve this issue.
Finally, I have no idea on why the
/sys/fs/cgroup/perf_event
the system is diffferent on this system. It's a centos 7.2, I usually use debian and ubuntu systems and never had this issue before.Please let me know if I can add something useful or if you have any idea to get me started on this issue.
The text was updated successfully, but these errors were encountered: