mirror of
https://github.com/ItsDrike/network-monitor.git
synced 2024-12-26 05:54:34 +00:00
add main nodexporter
This commit is contained in:
parent
77c23ff33f
commit
aa69e558e3
|
@ -67,3 +67,22 @@ services:
|
|||
image: stefanwalther/speedtest-exporter
|
||||
networks:
|
||||
- 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
|
||||
|
||||
|
|
|
@ -51,3 +51,7 @@ scrape_configs:
|
|||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: ping:9115 # The blackbox exporter's real hostname:port.
|
||||
|
||||
- job_name: 'nodeexp'
|
||||
static_configs:
|
||||
- targets: ['nodeexp:9100']
|
Loading…
Reference in a new issue