cki_tools.grafana

Tool to backup and restore Grafana data

Downloads configuration into locally stored JSON files, which can be later be modified and re-uploaded.

python3 -m cki_tools.grafana download|upload [--path PATH]
  • download option uses Grafana API to download datasources, notification channels and dashboards and saves them to PATH.

  • upload takes the json files stored in PATH and restores them to the Grafana server.

GRAFANA_URL and GRAFANA_TOKEN environment variables need to be configured. Follow the instructions on the Grafana Docs to learn how to get an API Token.