load a dashboard as a resource

pull/1306/head
Kelly 2021-03-12 18:07:11 -08:00
parent e2ca3ef801
commit c75a0c0902
1 changed files with 16 additions and 10 deletions

View File

@ -1,17 +1,18 @@
---
title: Import and export Chronograf dashboards
description: Share dashboard JSON files between Chronograf instances.
description: Share dashboard JSON files between Chronograf instances, or add dashboards as resources to include in a deployment.
menu:
chronograf_1_8:
weight: 120
parent: Administration
---
Chronograf makes it easy to both export and import dashboards. Recreate robust dashboards without having to manually configure them from the ground up.
Chronograf makes it easy to recreate robust dashboards without having to manually configure them from the ground up. Import and export dashboards between instances, or add dashboards as resources to include in a deployment.
[Export a dashboard](#export-a-dashboard)
[Import a dashboard](#import-a-dashboard)
[Required user roles](#required-user-roles)
- [Export a dashboard](#export-a-dashboard)
- [Load a dashboard as a resource](#load-a-dashboard-as-a-resource)
- [Import a dashboard](#import-a-dashboard)
- [Required user roles](#required-user-roles)
## Required user roles
@ -27,14 +28,19 @@ All users can export a dashboard. To import a dashboard, a user must have an Adm
1. On the Dashboards page, hover over the dashboard you want to export, and then click the **Export**
button on the right.
<img src="/img/chronograf/1-6-dashboard-export.png" alt="Exporting a Chronograf dashboard" style="width:100%;max-width:912px"/>
<img src="/img/chronograf/1-6-dashboard-export.png" alt="Exporting a Chronograf dashboard" style="width:100%;max-width:912px"/>
This downloads a JSON file containing dashboard information including template variables, cells and cell information such as the query, cell-sizing, color scheme, visualization type, etc.
This downloads a JSON file containing dashboard information including template variables, cells and cell information such as the query, cell-sizing, color scheme, visualization type, etc.
> No time series data is exported with a dashboard.
> Exports include only dashboard-related information as mentioned above.
> No time series data is exported with a dashboard.
> Exports include only dashboard-related information as mentioned above.
2. Rename the `.json` extension to `.dashboard`, and save the dashboard in the `/usr/share/chronograf/resources` directory.
## Load a dashboard as a resource
Automatically load the dashboard as a resource (useful for adding a dashboard to a deployment).
1. Rename the `.json` extension to `.dashboard`.
2. Use the [`resources-path` configuration option](/chronograf/v1.8/administration/config-options/#--resources-path) to save the dashboard in the `/resources` directory (by default, `/usr/share/chronograf/resources`).
## Import a dashboard