Giter Club home page Giter Club logo

Comments (10)

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Hi @davidmir Are you adding the targets by IP or hostname? Hostname makes it much easier to differentiate within Grafana. Could you provide a query you are using in Grafana?

from prometheus.

davidmir avatar davidmir commented on May 13, 2024

Hi, I'm using the hostnames. This are my targets on prometheus.yml:

  • targets: ['localhost:9090','cadvisor:8080','node-exporter:9100','api.myapp.com:9100']

I'm using the Grafana Docker Dashboard. I have to make some changes in order to attach more nodes to the dashboard?

Thanks

from prometheus.

idnow-philicious avatar idnow-philicious commented on May 13, 2024

@davidmir if you are interested in node metrics, I can recommend https://grafana.net/dashboards/22 which is a Dashboard for a single node based on node-exporter and you can select the node with a dropdown. For the host/node metrics I use this one and for container metrics I use either Brian/my dashboard.
Theres also https://grafana.net/dashboards/405 now which has even more node metrics (also based on node-exporter). But I havent used it yet and cant tell more about it.

from prometheus.

davidmir avatar davidmir commented on May 13, 2024

My question goes in this direction: I have on another remote machine docker containers running. If I start cadvisor and node-exporter on that machine and add this machine to the targets they should not appear in Grafana?

from prometheus.

philicious avatar philicious commented on May 13, 2024

@davidmir ah ok, I understand. so then you also need to run cadvisor on that other node and add it as target. cadvisor collects the container metrics whereas node-exporter collects the hosts metrics.

from prometheus.

davidmir avatar davidmir commented on May 13, 2024

@philicious I'm already doing it. however it detects that the cadvisor continues below (i'm using the image in this repository). It may be that he was running in the container docker (network problems)?

from prometheus.

philicious avatar philicious commented on May 13, 2024

@davidmir ok so lets sum up so I get a better understanding of the setup:

  • you have node-exporter + cadvisor running on that second node?
  • and both are configured to send to your central prometheus ?
  • and in prometheus /targets all targets (=2x node-exporter + 2x cadvisor) are green and up ?

PS: the docker-compose.yml wasnt made for multi-node setup.
however for "Swarm Mode" there is work in progress.

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Hi @davidmir is this now resolved? Can we close this?

from prometheus.

ppraj avatar ppraj commented on May 13, 2024

Hi,

I'm interested an out of box solution for docker 1.12.3 swarm mode . I use service to deploy containers , and how thus this monitoring setup help . I tried to run cadvisor as service but then this will be load balanced by swarm mesh network .Please document the steps , if it can help

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 13, 2024

Hi @ppraj I would wait for 1.13 as I believe Prometheus will be integrated as an exporter which would resolve your issue. I've heard this should hit 1.13 - moby/swarmkit#1284

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.