Middle
How to transfer dashboards from one Grafana to another?
sobes.tech AI
Answer from AI
There are several ways to transfer dashboards from one Grafana to another:
- Export/Import via UI
- Open the desired dashboard in the source Grafana.
- Click on the settings icon (gear) → "JSON Model".
- Copy the dashboard's JSON configuration.
- In the target Grafana, create a new dashboard and select import JSON, then paste the copied code.
- Using Grafana API
- Obtain the dashboard JSON via API GET
/api/dashboards/uid/:uid. - Send the JSON to the other Grafana via API POST
/api/dashboards/db.
- Using migration tools
- For example,
grafana-dashboard-managerorgrafclifor batch export and import.
- Synchronization via repository
- Store dashboards as JSON files in a version control system.
- Use provisioning in Grafana for automatic loading of dashboards from files.
The choice of method depends on the number of dashboards and migration frequency. For single dashboards, export/import via UI is convenient; for bulk, API or provisioning is preferable.