This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
full_url="http://your_graphana_host_here" | |
name="dashboards" | |
create_slug () { | |
echo "$1" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z | |
} | |
process_db_json() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
D0=$(TZ=UTC date --date="$(date --date="2015-12-07T08:27:12+0000")"); | |
for block in `seq 398784 16616 $((382168 + (16616*48)))`; | |
do DD=$(TZ=UTC date --date="$(date --date="$D0") +727 hours +5 minutes +2 seconds"); | |
D0=$DD; | |
echo "$block - $DD"; | |
done |