summaryrefslogtreecommitdiffstats
path: root/monitor/monitoring.sh
diff options
context:
space:
mode:
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