GithubHelp home page GithubHelp logo

Comments (28)

carltonmason avatar carltonmason commented on May 10, 2024 1

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.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

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.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

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.

llitfkitfk avatar llitfkitfk commented on May 10, 2024
  1. docker-compose up -d
    image
  2. add data source
    image
  3. import
    image
  4. save & open
    image

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

Hmm strange @llitfkitfk Are you able to run manual queries?

from prometheus.

haimoura avatar haimoura commented on May 10, 2024

@llitfkitfk Please check the date, change it to Jul 18 for example.

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

Good catch @haimoura I believe @llitfkitfk needs to adjust the date of Grafan

from prometheus.

Krylon360 avatar Krylon360 commented on May 10, 2024

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.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

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.

llitfkitfk avatar llitfkitfk commented on May 10, 2024

Thanks, It works!
image

from prometheus.

carltonmason avatar carltonmason commented on May 10, 2024

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.
partialgraph

from prometheus.

llitfkitfk avatar llitfkitfk commented on May 10, 2024

@ckmason Have you add File shareing in docker for mac?
image

from prometheus.

carltonmason avatar carltonmason commented on May 10, 2024

@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?
fs

from prometheus.

llitfkitfk avatar llitfkitfk commented on May 10, 2024

because cadvisor use

volumes:
      - /:/rootfs:ro

I add / to file sharing

Can you screen shot the cadvisor logs?

from prometheus.

carltonmason avatar carltonmason commented on May 10, 2024

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.

philicious avatar philicious commented on May 10, 2024

@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.

llitfkitfk avatar llitfkitfk commented on May 10, 2024

@philicious agree

from prometheus.

carltonmason avatar carltonmason commented on May 10, 2024

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:
prom

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:
root

Thanks guys!

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

@llitfkitfk Is this fixed now?

from prometheus.

carltonmason avatar carltonmason commented on May 10, 2024

@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.

philicious avatar philicious commented on May 10, 2024

@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.

carltonmason avatar carltonmason commented on May 10, 2024

Sure, I'll give it a whirl! Standby..

from prometheus.

llitfkitfk avatar llitfkitfk commented on May 10, 2024

@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.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

I'm running this on Docker for Mac and have never required doing anything within file sharing.

from prometheus.

carltonmason avatar carltonmason commented on May 10, 2024

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.

vegasbrianc avatar vegasbrianc commented on May 10, 2024

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.

carltonmason avatar carltonmason commented on May 10, 2024

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.

llitfkitfk avatar llitfkitfk commented on May 10, 2024

@ckmason Cheers! And you can also tryout the new feature: alertmananger

from prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.