From 0e47cc52a4b317c7daf8d7d330d67187fd31a313 Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sun, 29 Dec 2019 04:04:00 -0800 Subject: [PATCH] comments --- dashboards.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dashboards.sh b/dashboards.sh index 9dabe2f..2e674d5 100755 --- a/dashboards.sh +++ b/dashboards.sh @@ -16,6 +16,7 @@ DASHMAP[11315]="UniFi-Poller_ Client Insights - Prometheus.json" DASHMAP[10418]="UniFi-Poller_ Client Insights - InfluxDB.json" DASHMAP[11310]="UniFi-Poller_ Client DPI - Prometheus.json" +# Simple function to make sure no stray files got uploaded. function check { SAVEIFS=$IFS # unobtainium @@ -43,6 +44,8 @@ function check { IFS=$SAVEIFS } +# Upload all the dashboards to grafana.com. +# How about just the changed dashboards? mhm.. function deploy { for i in ${!DASHMAP[@]}; do echo "curl -H \"Content-Type: multipart/form-data\" \