Exporting and importing dashboards
The dashboards in Grafana are based on a JSON structure. This object includes all the information about properties, panel data, variables, and queries.
To see the JSON of a dashboard, go to the top of the screen, click on Dashboard settings, and click on JSON Model. You will see something similar to the following code:
As the JSON model has all the data needed to represent a dashboard, if you want to export one, you only need to copy this model and store it in a text file.
Let’s see how you can export a dashboard easily from Grafana.
Exporting a dashboard
First, click on the share icon at the top of the screen, and select the Export tab in the dialog box, as you can see in Figure 8.29:
Then, you can choose to view the JSON object on the screen or click on Save to file to generate a JSON file...