summaryrefslogtreecommitdiffstats
path: root/monitor/monitoring.sh
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2017-07-20 13:07:25 +0800
committeryuyang <Gabriel.yuyang@huawei.com>2017-07-20 13:13:00 +0800
commitd18c32459fffc12d967b34c9166eb9b6ef76a9fc (patch)
treec32a86ba0768f40da57775a19dc23cf8fcea7b1a /monitor/monitoring.sh
parent962b6269fdee0991251304a2b16cba78961d4b42 (diff)
Add Grafana for displaying time series from Prometheus
JIRA: BOTTLENECK-172 Add Grafana for the monitoring result dashboarding Change-Id: I9b17f4bd745c8556e2b551c6b499d77e3406cbf4 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'monitor/monitoring.sh')
-rw-r--r--monitor/monitoring.sh21
1 files changed, 15 insertions, 6 deletions
diff --git a/monitor/monitoring.sh b/monitor/monitoring.sh
index deae07a0..8ad388a3 100644
--- a/monitor/monitoring.sh
+++ b/monitor/monitoring.sh
@@ -9,9 +9,11 @@
##############################################################################
MONITOR_CONFIG="/home/opnfv/bottlenecks/monitor/config"
+GRAFANA="/home/opnfv/bottlenecks/monitor/grafana"
# Node-Exporter
-sudo docker run -d -p 9100:9100 \
+sudo docker run --name bottlenecks-node-exporter \
+ -d -p 9100:9100 \
-v "/proc:/host/proc:ro" \
-v "/sys:/host/sys:ro" \
-v "/:/rootfs:ro" \
@@ -22,18 +24,25 @@ sudo docker run -d -p 9100:9100 \
-collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
# Collectd
-sudo docker run -d \
+sudo docker run --name bottlenecks-collectd -d \
--privileged \
-v ${MONITOR_CONFIG}:/etc/collectd:ro \
-v /proc:/mnt/proc:ro \
fr3nd/collectd
# Collectd-Exporter
-sudo docker run -d -p 9103:9103 \
+sudo docker run --name bottlenecks-collectd-exporter \
+ -d -p 9103:9103 \
-p 25826:25826/udp prom/collectd-exporter \
-collectd.listen-address=":25826"
# Prometheus
-sudo docker run -d -p 9090:9090 \
- -v ${MONITOR_CONFIG}/prometheus.yaml:/etc/prometheus/prometheus.yaml \
- prom/prometheus \ No newline at end of file
+sudo docker run --name bottlenecks-prometheus \
+ -d -p 9090:9090 \
+ -v ${MONITOR_CONFIG}/prometheus.yaml:/etc/prometheus/prometheus.yml \
+ prom/prometheus
+
+$ Grafana
+sudo docker run --name bottlenecks-grafana \
+ -d -p 3000:3000 \
+ grafana/grafana