Edit Dynatrace dashboard JSON
The dashboards discussed here are classic dashboards created using the dashboarding functionality integrated with previous Dynatrace.
- For more about classic dashboards, see Dashboards Classic.
- For more about dashboards created with the Dashboards app in the latest Dynatrace, see Dashboards.
- To improve your dashboard experience, you can upgrade existing dashboards from Dashboards Classic to the Dashboards app in the latest Dynatrace.
You can edit the JSON definition of your dashboard offline or, for small changes, edit the JSON directly in Dynatrace.
To manage dashboard JSON at scale, you need the Dashboards API.
Edit offline
Use this procedure to download a dashboard's JSON definition, edit it offline, and upload it back to Dynatrace.
When you upload a dashboard using this procedure, you overwrite the dashboard whose definition you originally downloaded. If you want to upload a dashboard definition to a new dashboard, see Import dashboard below.
- Display the dashboard.
- Select Edit.
- Switch to the Settings tab and then select Configure more.
- Select Dashboard JSON.
- On the Dashboard JSON page, select Download.
A JSON file with the dashboard's name is downloaded to your local machine. - Edit the JSON in your preferred development environment.
For JSON syntax details, see the Dashboards API Documentation. - On the Dashboard JSON page, select Upload, browse for the edited JSON file, and upload it to Dynatrace.
The uploaded JSON is displayed on the Dashboard JSON page. - Select Save changes to replace the old JSON with your edited JSON.
- Display the dashboard to verify your changes.
Edit in Dynatrace
- Display the dashboard.
- Select Edit.
- Switch to the Settings tab and then select Configure more.
- Select Dashboard JSON.
- On the Dashboard JSON page, the dashboard JSON is displayed in an edit window.
- Click in the displayed JSON and start editing.
- You can work directly in the edit window or copy and paste back and forth from another editor.
- The You have unsaved changes message in the lower left of the page will remind you that you have work in progress. Be sure to save before you navigate away from the page.
- Syntax is checked each time you save. You can work incrementally and use Save changes to verify that it still parses.
- For JSON syntax details, see the Dashboards API Documentation.
- When you are finished, display the dashboard to verify your changes.
Import dashboard
Use this procedure to import a dashboard definition as a new dashboard.
When you import a dashboard using this procedure, you add a new dashboard to Dynatrace. If you want to overwrite an existing dashboard, see Edit offline above.
Export the dashboard
If you want to start from an existing dashboard definition
- Go to Dashboards or Dashboards Classic (latest Dynatrace).
- In the table of dashboards, select More (…) > Export for the dashboard you want to export.
The dashboard definition is exported as a JSON file to your computer.
Edit the dashboard JSON file
Edit the dashboard JSON in your preferred development environment. For JSON syntax details, see the Dashboards API Documentation.
Import the dashboard
- Go to Dashboards or Dashboards Classic (latest Dynatrace).
- Select Import dashboard.
- Select the JSON file for the dashboard you want to import.
The imported dashboard opens in edit mode.