47 lines
1.2 KiB
Markdown
47 lines
1.2 KiB
Markdown
---
|
|
title: Create a template
|
|
seotitle: Create an InfluxDB template
|
|
description: Create an InfluxDB template in the InfluxDB user interface (UI).
|
|
v2.0/tags: [templates]
|
|
menu:
|
|
v2_0:
|
|
name: Create a template
|
|
parent: Manage templates
|
|
weight: 201
|
|
|
|
---
|
|
|
|
## Import a template
|
|
|
|
1. Click the **Settings** icon in the left navigation.
|
|
|
|
{{< nav-icon "settings" >}}
|
|
|
|
2. Select the **Templates** tab.
|
|
3. Click **Import Template** in the upper right.
|
|
4. In the window that appears:
|
|
* Select **Upload File** to drag-and-drop or select a file.
|
|
* Select **Paste JSON** to paste in JSON.
|
|
5. Click **Import JSON as Template**.
|
|
|
|
|
|
## Create a template from an existing dashboard
|
|
|
|
1. Click the **Dashboards** icon in the navigation bar.
|
|
|
|
{{< nav-icon "dashboards" >}}
|
|
|
|
2. Click the settings icon ({{< icon "gear" >}}) next to a dashboard in the list, then click **Export**. The dashboard JSON appears in a new window.
|
|
3. Click **Save as template**.
|
|
|
|
|
|
## Clone a template
|
|
|
|
1. Click the **Settings** icon in the left navigation.
|
|
|
|
{{< nav-icon "settings" >}}
|
|
|
|
2. Select the **Templates** tab.
|
|
3. Hover over the template you want to clone, then click {{< icon "clone" >}}.
|
|
4. Click **Clone** to confirm. The cloned template appears in your list.
|