From: Yang (Gabriel) Yu Date: Tue, 31 Jul 2018 02:45:44 +0000 (+0800) Subject: bug-fix: node-exporter on centos7 isolated with host net X-Git-Tag: opnfv-7.1.0~18 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F60407%2F1;p=bottlenecks.git bug-fix: node-exporter on centos7 isolated with host net Node-exporter container need to be isolated with host net to make the port mapping work. Change-Id: Id04ad458ea56ef4080bba8346a7a1bf034956e0d Signed-off-by: Yang (Gabriel) Yu --- diff --git a/monitor/monitoring.sh b/monitor/monitoring.sh index 54146d8a..758f77ec 100644 --- a/monitor/monitoring.sh +++ b/monitor/monitoring.sh @@ -104,7 +104,6 @@ sudo docker run --name bottlenecks-node-exporter \ -v "/proc:/host/proc:ro" \ -v "/sys:/host/sys:ro" \ -v "/:/rootfs:ro" \ - --net="host" \ quay.io/prometheus/node-exporter:v0.14.0 \ -collector.procfs /host/proc \ -collector.sysfs /host/sys \