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

Node-exporter first steps

parent 813a5f2b
No related branches found
No related tags found
No related merge requests found
version: '3' version: '3'
networks:
monitor:
driver: bridge
services: services:
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
ports:
- 9100:9100
restart: unless-stopped
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--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: prometheus:
image: prom/prometheus:latest image: prom/prometheus:latest
container_name: prometheus container_name: prometheus
...@@ -14,6 +40,8 @@ services: ...@@ -14,6 +40,8 @@ services:
restart: unless-stopped restart: unless-stopped
command: command:
- "--config.file=/etc/prometheus/prometheus.yml" - "--config.file=/etc/prometheus/prometheus.yml"
networks:
- monitor
grafana: grafana:
image: grafana/grafana:latest image: grafana/grafana:latest
...@@ -32,6 +60,9 @@ services: ...@@ -32,6 +60,9 @@ services:
- 27017:27017 - 27017:27017
volumes: volumes:
- mongodb:/data/db - mongodb:/data/db
networks:
- monitor
node: node:
restart: always restart: always
...@@ -46,6 +77,8 @@ services: ...@@ -46,6 +77,8 @@ services:
- mongodb - mongodb
environment: environment:
WAIT_HOSTS: mongodb:27017 WAIT_HOSTS: mongodb:27017
networks:
- monitor
volumes: volumes:
mongodb: mongodb:
... ...
......
File changed. Contains only whitespace changes. Show whitespace changes.
...@@ -14,5 +14,17 @@ scrape_configs: ...@@ -14,5 +14,17 @@ scrape_configs:
scrape_interval: 5s scrape_interval: 5s
# scheme: https # scheme: https
static_configs: static_configs:
- targets: ['192.168.0.230:5000'] - targets: ['192.168.178.45:5000']
- job_name: 'node-exporter'
honor_labels: true
scrape_interval: 5s
# scheme: https
static_configs:
- targets: ['node-exporter:9100']
#remote_write:
#- url: "localhost:3000"
# basic_auth:
# username: "admin"
# password: "admin"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment