Update README

This commit is contained in:
gbanyan
2025-10-27 21:06:53 +08:00
parent 57f3096f7e
commit 2eebcdbef4

View File

@@ -10,21 +10,10 @@ This repository stores the JSON dashboards that TrueNAS Grafana loads via provis
## Workflow ## Workflow
1. Modify dashboards in Grafana and export via the API or provisioning scripts. 1. Already set provisioning in Grafana dashboard, it will auto detect change and pull
2. Save updates into this directory structure. 2. Modify dashboards file and then Grafana will load automatically
3. Currently I adopt local storage repo, Grafana can also use remote git repo.
3. Commit and push changes so Grafana provisioning always matches Git. 3. Commit and push changes so Grafana provisioning always matches Git.
## Sync commands
``` PS: Provisioning is enabled via environment 'GF_FEATURE_TOGGLES_ENABLE=provisioning'
cd /mnt/RAID10/Apps/obs/grafana/provisioning
# Pull latest changes from remote
git pull --rebase
# Stage and commit local updates
git add .
git commit -m "Update dashboards"
# Push to Gitea remote
git push
```
Provisioning is enabled via `/usr/share/grafana/conf/custom.ini`, which is bind-mounted from `/mnt/RAID10/Apps/obs/grafana/conf/custom.ini`.