summaryrefslogtreecommitdiffstats
path: root/monitor/automated-dashboard-datasource.py
diff options
context:
space:
mode:
authorYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2018-04-27 08:37:52 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-27 08:37:52 +0000
commitb73ce0809f17d08ab03f719dbb3a4637c49d4848 (patch)
tree3d987ce8213f14771061d2c8bd156388396b45b6 /monitor/automated-dashboard-datasource.py
parentdff85c2483e71cd7a4fe1fe48e62b09923bb0ffd (diff)
parent4b89af12f547bd8eebc01572e1b9a02f89c5fa7c (diff)
Merge "Barometer automated installation script for jump server and compute/controller nodes"
Diffstat (limited to 'monitor/automated-dashboard-datasource.py')
-rw-r--r--monitor/automated-dashboard-datasource.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor/automated-dashboard-datasource.py b/monitor/automated-dashboard-datasource.py
index 1e1b42f7..69f3ebe6 100644
--- a/monitor/automated-dashboard-datasource.py
+++ b/monitor/automated-dashboard-datasource.py
@@ -63,7 +63,9 @@ def post(url, data):
ip_address = socket.gethostbyname(socket.gethostname())
+_create_data_source(ip_address, 3000)
_create_dashboard(ip_address, 3000, '/var/lib/grafana/' +
'dashboards/' +
'prometheus-system_rev1.json')
-_create_data_source(ip_address, 3000)
+_create_dashboard(ip_address, 3000,
+ 'prototype_dashboard_collapsible.json')