From 2a0b5f4ddb2ff83508f1b99a154dfc5134ac507a Mon Sep 17 00:00:00 2001 From: Hans-Nikolai Viessmann Date: Thu, 21 May 2026 14:38:04 +0200 Subject: [PATCH] add readme --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ec89309 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +Grafana Resources Backup +======================== + +Collection of scripts and main storage for all the JSON resources from +our Grafana instance. + +Scripts are run on a schedule and any updates to the Grafana resourcesa +are saved locally and commited automatically. + +Run Manully +----------- + +Call the `./grafana-save.sh` script, this will call all other scripts +and update/add the Grafana resource JSON files. Remember you need to +set the `API_TOKEN=...` environment variable beforehand! + +You can of course call the individual scripts directly. + +API Token +--------- + +Since Grafana V11/V12 there is only way to get a API token and that is to +create a "Service Account". Within the service account there is an option +to generate token(s), this helps to better bind tokens to accounts which +themselves have specific roles (and in the backend RBAC defined permissions +and scopes).