vegasbrianc / prometheus

A docker-compose stack for Prometheus monitoring
MIT License
4.41k stars 1.53k forks source link

Cadvisor is not working #163

Closed SebastianRzk closed 3 years ago

SebastianRzk commented 3 years ago

The cadvisor docker container does not start up.

Error message in log:

F0704 07:55:09.784574       1 cadvisor.go:146] Failed to create a Container Manager: mountpoint for cpu not found
F0704 07:55:10.424694       1 cadvisor.go:146] Failed to create a Container Manager: mountpoint for cpu not found
F0704 07:55:11.225999       1 cadvisor.go:146] Failed to create a Container Manager: mountpoint for cpu not found

docker ps:

df36127d4c74   google/cadvisor                 "/usr/bin/cadvisor -…"   18 seconds ago   Restarting (255) Less than a second ago                                               prometheus_cadvisor_1

Expected Behaviour

Current Behaviour

Possible Solution

The cadvisor image in docker hub is outdated (nearly 2 years old).

The official cadvisor Readme suggests to use

gcr.io/cadvisor/cadvisor as docker image source. With the current image everything works fine.

Steps to Reproduce (for bugs)

docker-compose up

Your Environment

Docker version 20.10.7

Linux, x86, 64 bit, kernel version 5.11+

github-actions[bot] commented 3 years ago

Awesome! Thanks for taking the time to open an issue. We will have a look and answer as soon as we can.' first issue

SebastianRzk commented 3 years ago

Fix in pull request #164

ducalpha commented 3 years ago

I got the same issue, the cAvisor DockerHub says "DEPRECATED: New images will NOT be pushed. Please use gcr.io/cadvisor/cadvisor instead." Updating the docker-stack.yml to use gcr.io/cadvisor/cadvisor fixed the issue.

github-actions[bot] commented 3 years ago

This issue has seen no activity and is marked as stale

SebastianRzk commented 3 years ago

Pull request has been merged :-)

gh0sthx commented 3 years ago

Error response from daemon: Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

i am in china

zhangnew commented 2 years ago

Error response from daemon: Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

i am in china

@gh0sthx I push gcr.io/cadvisor/cadvisor to https://hub.docker.com/r/zhangnew/cadvisor you can use docker pull zhangnew/cadvisor