summaryrefslogtreecommitdiffstats
path: root/monitor/monitoring.sh
diff options
context:
space:
mode:
authorRutuja Surve <rutuja.r.surve@gmail.com>2017-11-14 04:36:23 +0000
committerRutuja Surve <rutuja.r.surve@gmail.com>2017-11-14 04:43:55 +0000
commit1baf04d3b5f2348977dc3481fd2dd5fac181d84c (patch)
tree949adb56ffaf0cfe732baac1c0e6e24b8978efb0 /monitor/monitoring.sh
parent2b84ec5fef4272cf7df6f9c0ae5fb2c239a5b7cc (diff)
Cadvisor Client-Server installation automation script
JIRA: BOTTLENECK-181 Automated the installation for cadvisor client from jump server host and added docker installation of cadvisor in monitoring script. Change-Id: I906b5237bc0ed320106309c1a29e8dd72a05a427 Signed-off-by: Rutuja Surve <rutuja.r.surve@gmail.com>
Diffstat (limited to 'monitor/monitoring.sh')
-rw-r--r--monitor/monitoring.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/monitor/monitoring.sh b/monitor/monitoring.sh
index b8409d47..16cb3086 100644
--- a/monitor/monitoring.sh
+++ b/monitor/monitoring.sh
@@ -48,3 +48,23 @@ sudo docker run --name bottlenecks-grafana \
-v ${GRAFANA}/config/grafana.ini:/etc/grafana/grafana.ini \
grafana/grafana:4.5.0
+# Cadvisor
+sudo docker run \
+ --volume=/:/rootfs:ro \
+ --volume=/var/run:/var/run:rw \
+ --volume=/sys:/sys:ro \
+ --volume=/var/lib/docker/:/var/lib/docker:ro \
+ --volume=/dev/disk/:/dev/disk:ro \
+ --publish=8080:8080 \
+ --detach=true \
+ --name=cadvisor \
+ google/cadvisor:v0.25.0 \ -storage_driver=Prometheus
+
+# Automate Collectd Client
+python automate_collectd_client.py
+
+# Automate Cadvisor Client
+python automate_cadvisor_client.py
+
+# Automate Prometheus Datasource and Grafana Dashboard creation
+python automated-dashboard-datasource.py