I want to define the following things ahead of time, so I can just upload my provision files onto a new system and have it set up:
- Create Teams / define Permissions
- Create Dashboards in a Folder
- Define Panels on those Dashboards
- Define Alert Contact Point
- Define Alerts on Dashboards
- Define Data Sources
I am trying to accomplish this with provisioning, but having great difficulty. On a Linux system (currently Redhat, but that may change) I am attempting to use provisioning, but when I make changes in grafana/provisioning
. I do not see any of the expected changes when I launch Grafana and view it at localhost:3000
.
I download Grafana from docker (docker pull grafana/grafana). There are two directories that contain grafana/provisioning, and I’m not sure which is correct but I’ve tried both.
./.local/share/containers/storage/overlay/6a7cb7a452b8ea4bb8afca328aa190b6c4ac4f6b891e8ad4f45c0b1961c3608a/diff/usr/share/grafana/conf/provisioning
and ./.local/share/containers/storage/overlay/2e57c23fa705eda6690fbedc996a312dae133202f7fa8f70ad25f24d0e34eb4e/diff/etc/grafana/provisioning
. I have tried making a default.yaml file in provisioning, or going into each subdirectory (ex: dashboards) and modifying the sample.yaml files.
I follow instructions here (Start the Grafana server | Grafana documentation) and start Grafana with sudo systemctl daemon-reload
, sudo systemctl start grafana-server
.
Another approach, I follow the instructions here (Run Grafana Docker image | Grafana documentation) to setup Docker volumes.
I download docker compose, and create a docker compose file. I launch with docker compose up -d
and stop the container with docker compose down
.
Sometimes this launches successfully, sometimes I hit various launch errors, but I never see the changes I expected to see from my provisioned files. I don’t see the teams T1/T2. I don’t see the folder ABCD or the Dashboards D1/D2.
If I’m making any fundamental errors, provisioning is a bad method to achieve what I described, or if anything I listed above is not able to be provisioned, please let me know. Thank you!