-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
'Docker containers' dashboard displays 'No data' #239
Comments
Are all the containers coming up clean/successfully? What's the output of |
Yes:
Apparently cadvisor is working as expected: http://172.25.0.3:8080/docker/ Displays several entries for the containers, and if I pick one of them: http://172.25.0.3:8080/docker/e6582dc2147c3685cb1ceda0ea838389876045d4a6838b80bd102ece400d31e7 It displays graphs, such as CPU or RAM usage. |
Can you check the logs for Prometheus too? If cAdvisor is exporting metrics then we need to make sure it's making it's way over to Prometheus so Grafana can actually display. It would be worthwhile taking one of the queries that Grafana runs and running it directly on Prometheus too. |
@nightah I'm pretty sure the issue, if any, is in the dashboard, since I realize that another dashboard, 'Monitor Services', works as expected. For instance graph 'Container CPU Usage' is displaying data, and all running containers appears there, which I assume is because grafana -> prometheus -> cadvisor chain is working as expected. Is somebody else able to reproduce the issue? |
@nightah as soon as I created a new docker container outside the docker compose stack the aforementioned grafana dashboard started showing data. The weird thing is that couple of odd random docker container names appears as well. Anyways closing this task, since "expected behaviour" was wrong. Thanks for your time. |
If you do not name a container Docker will give it a random name, this is also expected behaviour for Docker. |
The think is that performing:
I was not able to detect any docker container which such a random name. |
Interim build containers are also considered so it might have been a transient container. |
First of all many thanks to all the people involved in this project for their time, I really appreciate it.
Steps to reproduce
WARNING: don't copy/paste this step commands unless you know what you are doing
Wait until you get back the shell prompt.
http://localhost:3000
Type username and password (admin, admin)
Type twice new password (12345, 12345)
Click 'Dashboards / Manage'
http://localhost:3000/dashboards
Click 'Docker Containers'
Click 'Last 15 Minutes' (top bar) and select 'Last 5 Minutes'
Expected behaviour
Graph 'Container CPU Usage' should display data
Found behaviour
Graph 'Container CPU Usage' displays 'No data'.
Errors
None
Context
In aforementioned dashboard below graphs are displaying data:
I would swear that during several tests I made it work, but now I'm not able to see data on the docker container graphs.
The text was updated successfully, but these errors were encountered: