2 ##############################################################################
3 # Copyright (c) 2017 Huawei Tech and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 MONITOR_CONFIG="/home/opnfv/bottlenecks/monitor/config"
14 sudo docker run -d -p 9100:9100 \
15 -v "/proc:/host/proc:ro" \
16 -v "/sys:/host/sys:ro" \
19 quay.io/prometheus/node-exporter \
20 -collector.procfs /host/proc \
21 -collector.sysfs /host/sys \
22 -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
27 -v ${MONITOR_CONFIG}:/etc/collectd:ro \
28 -v /proc:/mnt/proc:ro \
32 sudo docker run -d -p 9103:9103 \
33 -p 25826:25826/udp prom/collectd-exporter \
34 -collectd.listen-address=":25826"
37 sudo docker run -d -p 9090:9090 \
38 -v ${MONITOR_CONFIG}/prometheus.yaml:/etc/prometheus/prometheus.yaml \