diff options
author | Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com> | 2018-07-31 10:45:44 +0800 |
---|---|---|
committer | Yu Yang (Gabriel) <Gabriel.yuyang@huawei.com> | 2018-07-31 02:51:05 +0000 |
commit | d5d78d499b8e0e4df8201370935996e04824a8f0 (patch) | |
tree | 3066725874f1d56eec61add25f13f8094fd4df4a | |
parent | 14404f05d92233ebb04a8d0d45f4f73f6a1be28e (diff) |
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 <Gabriel.yuyang@huawei.com>
(cherry picked from commit 738adfa7ad0f7ef8d9d2d6c60153c0d97008caaf)
-rw-r--r-- | monitor/monitoring.sh | 1 |
1 files changed, 0 insertions, 1 deletions
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 \ |