Comments (10)
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.
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.
@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.
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.
@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.
@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.
@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.
Hi @davidmir is this now resolved? Can we close this?
from prometheus.
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.
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)
- 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.