Sobes.tech
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:

  1. 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.
  1. 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.
  1. Using migration tools
  • For example, grafana-dashboard-manager or grafcli for batch export and import.
  1. 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.