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"
12 GRAFANA="/home/opnfv/bottlenecks/monitor/grafana"
15 sudo docker run --name bottlenecks-node-exporter \
17 -v "/proc:/host/proc:ro" \
18 -v "/sys:/host/sys:ro" \
21 quay.io/prometheus/node-exporter \
22 -collector.procfs /host/proc \
23 -collector.sysfs /host/sys \
24 -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
27 sudo docker run --name bottlenecks-collectd -d \
29 -v ${MONITOR_CONFIG}:/etc/collectd:ro \
30 -v /proc:/mnt/proc:ro \
34 sudo docker run --name bottlenecks-collectd-exporter \
36 -p 25826:25826/udp prom/collectd-exporter \
37 -collectd.listen-address=":25826"
40 sudo docker run --name bottlenecks-prometheus \
42 -v ${MONITOR_CONFIG}/prometheus.yaml:/etc/prometheus/prometheus.yml \
46 sudo docker run --name bottlenecks-grafana \