Skip to content
Snippets Groups Projects
Commit ce811e8b authored by Markus Klose's avatar Markus Klose
Browse files

node-exporter connection

parent d909df0e
No related branches found
No related tags found
No related merge requests found
version: '3'
networks:
monitor:
driver: bridge
services:
node-exporter:
image: prom/node-exporter:latest
......@@ -17,15 +13,14 @@ services:
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
#- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
expose:
- 9100
deploy:
mode: global
networks:
- monitor
prometheus:
image: prom/prometheus:latest
......@@ -40,8 +35,6 @@ services:
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
networks:
- monitor
grafana:
image: grafana/grafana:latest
......@@ -60,9 +53,6 @@ services:
- 27017:27017
volumes:
- mongodb:/data/db
networks:
- monitor
node:
restart: always
......@@ -77,9 +67,8 @@ services:
- mongodb
environment:
WAIT_HOSTS: mongodb:27017
networks:
- monitor
volumes:
mongodb:
prometheus:
......
......@@ -14,7 +14,7 @@ scrape_configs:
scrape_interval: 5s
# scheme: https
static_configs:
- targets: ['192.168.178.45:5000']
- targets: ['192.168.56.1:5000']
- job_name: 'node-exporter'
honor_labels: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment