Add repository README

This commit is contained in:
gbanyan
2025-10-27 19:07:25 +08:00
parent 08ac297dc4
commit 7f788d4be2

View File

@@ -1,3 +1,30 @@
# grafana-dashboard
# Grafana Provisioning Dashboards
Provisioned Grafana dashboards exported from TrueNAS
This repository stores the JSON dashboards that TrueNAS Grafana loads via provisioning.
## Directory structure
- `HomeLab/` — dashboards for services in the HomeLab folder.
- `GBarmUB/` — dashboards for the GBarmUB folder.
- `prometheus-2-0-stats.json` — dashboard kept in the root folder.
## Workflow
1. Modify dashboards in Grafana and export via the API or provisioning scripts.
2. Save updates into this directory structure.
3. Commit and push changes so Grafana provisioning always matches Git.
## Sync commands
```
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`.