Open stefanpoensgen opened 1 year ago
I had the same problem, but it just a warning.
caller=klog.go:108 level=warn integration=cadvisor func=Warningf msg="Cannot detect current cgroup on cgroup v2"
I was still able to get metrics
Adding that I'm getting this too. Setting up the hosted grafana agent on a server and getting this message.
I am getting this message too. plz share if any solution for this. Thx
Any updates here? I am facing same error. Thanks
I find this article but I don't understand complitly: https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva
This may be related to https://github.com/google/cadvisor/issues/3232, we also have updated the dependencies so if you are affected by this give it another try and let us know.
I also see all memory related stats as 0, along with the error message of the title. (even though I have cgroup_enable=memory, on Deb 12). Would be cool to get this working so I can see mem stats for my containers, anyone feel free to ping me if there's a fix.
@discapes I had this exact issue and I discoved that I was using gcr.io/cadvisor/cadvisor:latest
- which is not the latest version, it's from 2020. What worked for me was using gcr.io/cadvisor/cadvisor:v0.47.2
instead; now memory stats work fine.
Thank You!!!
@discapes I had this exact issue and I discoved that I was using
gcr.io/cadvisor/cadvisor:latest
- which is not the latest version, it's from 2020. What worked for me was usinggcr.io/cadvisor/cadvisor:v0.47.2
instead; now memory stats work fine.
Thank You!!! This fixed the problem causing my logs to be empty with the error in the title, as well my memory metrics which I had spent a few hours debugging at this point. The version as of writing this post is v0.49.1
Hi there :wave:
On April 9, 2024, Grafana Labs announced Grafana Alloy, the spirital successor to Grafana Agent and the final form of Grafana Agent flow mode. As a result, Grafana Agent has been deprecated and will only be receiving bug and security fixes until its end-of-life around November 1, 2025.
To make things easier for maintainers, we're in the process of migrating all issues tagged variant/flow to the Grafana Alloy repository to have a single home for tracking issues. This issue is likely something we'll want to address in both Grafana Alloy and Grafana Agent, so just because it's being moved doesn't mean we won't address the issue in Grafana Agent :)
Let's add a disclaimer to cadvisor component to reference not using latest.
gcr.io/cadvisor/cadvisor:v0.47.2
@jjgmckenzie you're saving my life, tysm!
I'm currently testing the agent to gather all my metrics and logs. At first it looks to work but the cadvisor part is reporting "Cannot detect current cgroup on cgroup v2" Any tipps how to solve this?
docker-compose.yml looks like
agent.yml looks like