Revert "monitoring: run node_exporter on host network"
This reverts commit d48713cb15.
This commit is contained in:
@@ -210,10 +210,6 @@ services:
|
|||||||
nodeexporter:
|
nodeexporter:
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
container_name: nodeexporter
|
container_name: nodeexporter
|
||||||
# Host network so the netdev collector (netlink) reads the HOST interfaces, not
|
|
||||||
# the container's idle veth — required for node_network_* (bandwidth) to be real.
|
|
||||||
# network_mode:host is exclusive with networks/expose, so those are removed.
|
|
||||||
network_mode: host
|
|
||||||
volumes:
|
volumes:
|
||||||
- /proc:/host/proc:ro
|
- /proc:/host/proc:ro
|
||||||
- /sys:/host/sys:ro
|
- /sys:/host/sys:ro
|
||||||
@@ -224,6 +220,10 @@ services:
|
|||||||
- '--path.sysfs=/host/sys'
|
- '--path.sysfs=/host/sys'
|
||||||
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
|
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
expose:
|
||||||
|
- 9100
|
||||||
|
networks:
|
||||||
|
- chains
|
||||||
labels:
|
labels:
|
||||||
- "prometheus-scrape.enabled=true"
|
- "prometheus-scrape.enabled=true"
|
||||||
- "prometheus-scrape.port=9100"
|
- "prometheus-scrape.port=9100"
|
||||||
|
|||||||
Reference in New Issue
Block a user