Provision a Dashboard into a Folder
A 3-step recipe with Grafana. We can help you get access.
Recipe · 3 steps
Provision a Dashboard into a Folder
with Grafana · Analytics & BI Management
Create a folder and save a dashboard into it, then verify the save.
- Create the folder that will own the dashboard. Folders are the unit that Grafana attaches permissions to, so provisioning one per team or per service is what makes access control manageable later.
- Save the dashboard JSON into the folder created above. Grafana returns the assigned UID, the version number, and the URL to reach it.
- Read the saved dashboard back by UID to confirm it landed in the intended folder and to capture the stored model and metadata.
What you'll need to have ready
- folderTitle: Title of the folder to create (e.g. "Platform - Production").
- folderUid: Optional stable UID for the folder. Supplying your own UID makes the run idempotent across environments.
- folderDescription: Optional description for the folder.
- parentUid: Optional parent folder UID, when using nested folders.
- dashboard: The dashboard model as JSON. Omit the "id" field to create a new dashboard; include a stable "uid" to make repeat runs update in place.
- message: Commit message recorded against this dashboard version.
- overwrite: Overwrite an existing dashboard with the same UID or title. Leave false to have Grafana reject a colliding save with a 412.
For your developer
Arazzo workflow grafana:provision-dashboard, 3 operations: createFolder → createUpdateDashboard → getDashboardByUid. Specs on APIs.io.