Comments (28)
I removed the / volume and restarted everything, its been running for over 5 minutes now just fine. Looks like its not needed after all!
from prometheus.
Hello @llitfkitfk is your data source configured and test connection? Also can you try to do a manual query on one of the graphs?
Let me know.
from prometheus.
Hello @llitfkitfk Let me know the current status so I can help you. Please let me know how if you performed test connection and if manual queries work.
from prometheus.
from prometheus.
Hmm strange @llitfkitfk Are you able to run manual queries?
from prometheus.
@llitfkitfk Please check the date, change it to Jul 18 for example.
from prometheus.
Good catch @haimoura I believe @llitfkitfk needs to adjust the date of Grafan
from prometheus.
Change time range to Last 6 Hours, then verify that the data source on each panel is pointing to the correct data source. Also make sure you can actually pull up http://prometheus:9090 in your browser.
from prometheus.
Closing this issue as I believe this was a time/date setting in the dashboard. Let me know otherwise I open it back up. Thx.
from prometheus.
from prometheus.
I'm having a similar problem as llitfkitfk on a Mac and followed the above directions:
adjusting the grafana date/time range to the last 3 hours, verified each panel is referring to the correct data source, verified the data source, and also changed the docker-compose.yml to change the Prometheus service to ports 9090:9090 and verified I can hit http://localhost:9090/metrics. I get some partial data but not all for some reason.
from prometheus.
@ckmason Have you add File shareing in docker for mac?
from prometheus.
@llitfkitfk I see this, it looks like your screen shot. I have not explicitly shared anything though. Are these directories automatically shared with Docker for mac?
from prometheus.
because cadvisor use
volumes:
- /:/rootfs:ro
I add / to file sharing
Can you screen shot the cadvisor logs?
from prometheus.
Hey @llitfkitfk , thanks for the hint. I was not able to share / with docker from my Mac but, I was able to update the docker-compose.yml like so and got it to work:
volumes:
- /tmp/cadivsorrootfs:/rootfs:ro
Thank you!
from prometheus.
@ckmason I think thats not going to work. / is mounted to /rootfs ro = read-only. so cadvisor wants to read things there. If you mount a random (empty) folder, cadvisor will fail to read whatever it expects to be there
from prometheus.
@philicious agree
from prometheus.
Hello @llitfkitfk and @vegasbrianc , I had it working when I did share - /tmp/cadivsorrootfs:/rootfs:ro as I mentioned above -- it worked for awhile anyway and then it all just disappeared. Here is a screenshot:
I've not got it to work since then.
If I try to share / with Docker, I get the following error below. So, how do I share / with Docker on a Mac:
Thanks guys!
from prometheus.
@llitfkitfk Is this fixed now?
from prometheus.
@vegasbrianc @philicious I was not able to share the / dir with Docker due to the error above (probably because I don't know what I am doing).
I did export - /tmp/cadivsorrootfs:/rootfs:ro for cadvisor in the docker-compose.yml file to work around, and it seems to be working.
It's been running for about 8 hours now... I too was surprised that the /tmp/cadivsorrootfs:/rootfs:ro would work but, it seems to.
Why would cadvisor need to read from the / dir anyway?
Thanks.
from prometheus.
@ckmason cc @vegasbrianc actually I dont know why / should be shared. I just checked some other sources and they dont have that / volume. only the other three.
so imho, that / volume could be removed entirely. @ckmason would you mind trying ?
from prometheus.
Sure, I'll give it a whirl! Standby..
from prometheus.
@vegasbrianc
It works find on my mac and vps.
For the problem described by @ckmason ,I asked Docker for Mac Forum https://forums.docker.com/t/file-sharing-problem/19124
from prometheus.
I'm running this on Docker for Mac and have never required doing anything within file sharing.
from prometheus.
Hi, maybe different docker versions?
Carltons-MacBook-Pro:prometheus ckmason$ docker --version
Docker version 1.12.0-rc4, build e4a0dbc, experimental
Carltons-MacBook-Pro:prometheus ckmason$ docker-compose --version
docker-compose version 1.8.0-rc2, build c72c966
from prometheus.
Hi @ckmason I'm running the same exact versions as Docker for Mac is auto updated with the latest versions. Did you upgrade from Docker Toolbox?
I would recommend uninstalling Docker for Mac and reinstalling as maybe a previous version is conflicting somewhere.
from prometheus.
Hi @vegasbrianc, I think I am OK. Since there is no need to share the local / with Docker since it is unnecessary for cadvisor (and I have removed it from my local copy of the docker-compose.yml), then I don't have a file sharing problem.
Since, this line (- /:/rootfs:ro) in the volumes section of the cadvisor service in the docker-compose.yml is unnecessary, perhaps it should be removed from this project.
Thank you folks for putting this Prometheus Docker monitoring stack together, it saved me a lot of time.
from prometheus.
@ckmason Cheers! And you can also tryout the new feature: alertmananger
from prometheus.
Related Issues (20)
- iframe displays “refused to connect” for Grafana HOT 1
- Prometheus docker image. Config file missing? HOT 3
- Cadvisor is not working HOT 7
- How to add Grafana plugin HOT 2
- node-exporter container keeps running even after kill the container HOT 2
- panic: runtime error: slice bounds out of range HOT 5
- CPU Usage and Memory usage data not fetching from the Prometheus serveron grafana dashboard HOT 3
- Why is this? HOT 2
- Prometheus container keeps restarting HOT 5
- Your tests are failing, per the README.md HOT 5
- Adding coverage test results in metrics HOT 2
- can add a database? HOT 1
- Not showing some data HOT 5
- ec2 instnace is not showing on prometheus_UI when setting as target/job in prometheus .yml HOT 2
- Can not change default grafana default port HOT 2
- Login not working HOT 2
- When running this on linux out of the box it does not work. HOT 2
- Prometheus does never start up. Permission denied for /etc/prometheus/prometheus.yml HOT 2
- etc/prometheus/prometheus.yml: operation not permitted HOT 1
- Alert Manager not working on Slack HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus.