comments
This commit is contained in:
parent
8a73d031a7
commit
0e47cc52a4
|
|
@ -16,6 +16,7 @@ DASHMAP[11315]="UniFi-Poller_ Client Insights - Prometheus.json"
|
||||||
DASHMAP[10418]="UniFi-Poller_ Client Insights - InfluxDB.json"
|
DASHMAP[10418]="UniFi-Poller_ Client Insights - InfluxDB.json"
|
||||||
DASHMAP[11310]="UniFi-Poller_ Client DPI - Prometheus.json"
|
DASHMAP[11310]="UniFi-Poller_ Client DPI - Prometheus.json"
|
||||||
|
|
||||||
|
# Simple function to make sure no stray files got uploaded.
|
||||||
function check {
|
function check {
|
||||||
SAVEIFS=$IFS
|
SAVEIFS=$IFS
|
||||||
# unobtainium
|
# unobtainium
|
||||||
|
|
@ -43,6 +44,8 @@ function check {
|
||||||
IFS=$SAVEIFS
|
IFS=$SAVEIFS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Upload all the dashboards to grafana.com.
|
||||||
|
# How about just the changed dashboards? mhm..
|
||||||
function deploy {
|
function deploy {
|
||||||
for i in ${!DASHMAP[@]}; do
|
for i in ${!DASHMAP[@]}; do
|
||||||
echo "curl -H \"Content-Type: multipart/form-data\" \
|
echo "curl -H \"Content-Type: multipart/form-data\" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue