add main nodexporter

This commit is contained in:
Max Rydahl Andersen 2018-10-08 00:01:07 +02:00
parent 77c23ff33f
commit aa69e558e3
2 changed files with 23 additions and 0 deletions

View file

@ -67,3 +67,22 @@ services:
image: stefanwalther/speedtest-exporter image: stefanwalther/speedtest-exporter
networks: networks:
- back-tier - back-tier
nodeexp:
privileged: true
image: prom/node-exporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
ports:
- 9100:9100
restart: always
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
networks:
- back-tier

View file

@ -51,3 +51,7 @@ scrape_configs:
target_label: instance target_label: instance
- target_label: __address__ - target_label: __address__
replacement: ping:9115 # The blackbox exporter's real hostname:port. replacement: ping:9115 # The blackbox exporter's real hostname:port.
- job_name: 'nodeexp'
static_configs:
- targets: ['nodeexp:9100']