-
-
Save mkol5222/5a415b16fb44a6edfe2bacdd42b2a9eb to your computer and use it in GitHub Desktop.
Grafana Backup
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
BASEURL=http://username:password@127.0.0.1:3000 | |
for dash in $(curl -s -k "${BASEURL}/api/search" | jq -r '.[].title'); do | |
curl -k "${BASEURL}/api/dashboards/db/${dash}" > "${dash}.json" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment