summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2017-11-18 17:08:42 -0800
committerBryan Sullivan <bryan.sullivan@att.com>2017-11-18 17:08:42 -0800
commit376f01d813554c3c5fa028e580554bd5647b8764 (patch)
treec031b63d549cdd024c9fe2177634e371ba5bb63b
parentfe7c7a9c85bf1b7070ed65899a64830cd3d12bbc (diff)
Correct dashboard import
JIRA: MODELS-2 Change-Id: I8996ccb4d49fa8f7bd55aa55cb96339436f5ad3e Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
-rw-r--r--tools/prometheus/prometheus-tools.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/prometheus/prometheus-tools.sh b/tools/prometheus/prometheus-tools.sh
index f713f01..04a2623 100644
--- a/tools/prometheus/prometheus-tools.sh
+++ b/tools/prometheus/prometheus-tools.sh
@@ -171,7 +171,7 @@ EOF
# To add additional dashboards, browse the URL above and import the dashboard via the id displayed for the dashboard
# Select the home icon (upper left), Dashboards / Import, enter the id, select load, and select the Prometheus datasource
- cd ~/models/tools/prometheus/dashboards
+ cd $WORK_DIR/dashboards
boards=$(ls)
for board in $boards; do
curl -X POST -u admin:admin -H "Accept: application/json" -H "Content-type: application/json" -d @${board} http://$grafana_ip:3000/api/dashboards/db
@@ -198,6 +198,7 @@ function run_and_connect_grafana() {
log "connect_grafana complete"
}
+export WORK_DIR=$(pwd)
nodes=$2
case "$1" in
setup)