Merge pull request #943 from influxdata/beta-8

Beta 8
pull/944/head
Scott Anderson 2020-04-10 16:45:34 -06:00 committed by GitHub
commit 42f18a8564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
93 changed files with 1105 additions and 494 deletions

View File

@ -4361,7 +4361,7 @@ paths:
$ref: "#/components/schemas/Error"
/packages/stacks:
post:
operationId: CreatePkg
operationId: CreateStack
tags:
- InfluxPackages
summary: Create a new Influx package
@ -6351,6 +6351,10 @@ components:
- flux
dialect:
$ref: "#/components/schemas/Dialect"
now:
description: Specifies the time that should be reported as "now" in the query. Default is the server's now time.
type: string
format: date-time
InfluxQLQuery:
description: Query influx using the InfluxQL language
type: object
@ -7209,6 +7213,8 @@ components:
type: boolean
orgID:
type: string
stackID:
type: string
package:
$ref: "#/components/schemas/Pkg"
packages:
@ -7316,6 +7322,8 @@ components:
type: string
orgID:
type: string
pkgName:
type: string
name:
type: string
description:
@ -7333,6 +7341,8 @@ components:
- $ref: "#/components/schemas/CheckDiscriminator"
- type: object
properties:
pkgName:
type: string
labelAssociations:
type: array
items:
@ -7392,6 +7402,8 @@ components:
- $ref: "#/components/schemas/NotificationEndpointDiscrimator"
- type: object
properties:
pkgName:
type: string
labelAssociations:
type: array
items:
@ -7480,6 +7492,8 @@ components:
items:
type: object
properties:
pkgName:
type: string
id:
type: string
orgID:
@ -7502,13 +7516,17 @@ components:
items:
type: object
properties:
remove:
type: boolean
id:
type: string
name:
pkgName:
type: string
new:
type: object
properties:
name:
type: string
description:
type: string
retentionRules:
@ -7516,6 +7534,8 @@ components:
old:
type: object
properties:
name:
type: string
description:
type: string
retentionRules:
@ -7525,9 +7545,11 @@ components:
items:
type: object
properties:
remove:
type: boolean
id:
type: string
name:
pkgName:
type: string
new:
$ref: "#/components/schemas/CheckDiscriminator"
@ -7538,26 +7560,50 @@ components:
items:
type: object
properties:
name:
remove:
type: boolean
id:
type: string
description:
pkgName:
type: string
charts:
type: array
items:
$ref: "#/components/schemas/PkgChart"
new:
type: object
properties:
name:
type: string
description:
type: string
charts:
type: array
items:
$ref: "#/components/schemas/PkgChart"
old:
type: object
properties:
name:
type: string
description:
type: string
charts:
type: array
items:
$ref: "#/components/schemas/PkgChart"
labels:
type: array
items:
type: object
properties:
remove:
type: boolean
id:
type: string
name:
pkgName:
type: string
new:
type: object
properties:
name:
type: string
color:
type: string
description:
@ -7565,6 +7611,8 @@ components:
old:
type: object
properties:
name:
type: string
color:
type: string
description:
@ -7591,9 +7639,11 @@ components:
items:
type: object
properties:
remove:
type: boolean
id:
type: string
name:
pkgName:
type: string
new:
$ref: "#/components/schemas/NotificationEndpointDiscrimator"
@ -7604,79 +7654,170 @@ components:
items:
type: object
properties:
name:
remove:
type: boolean
id:
type: string
description:
pkgName:
type: string
endpointName:
type: string
endpointID:
type: string
endpointType:
type: string
every:
type: string
offset:
type: string
messageTemplate:
type: string
status:
type: string
statusRules:
type: array
items:
type: object
properties:
currentLevel:
new:
type: object
properties:
name:
type: string
previousLevel:
description:
type: string
tagRules:
type: array
items:
type: object
properties:
key:
endpointName:
type: string
value:
endpointID:
type: string
operator:
endpointType:
type: string
every:
type: string
offset:
type: string
messageTemplate:
type: string
status:
type: string
statusRules:
type: array
items:
type: object
properties:
currentLevel:
type: string
previousLevel:
type: string
tagRules:
type: array
items:
type: object
properties:
key:
type: string
value:
type: string
operator:
type: string
old:
type: object
properties:
name:
type: string
description:
type: string
endpointName:
type: string
endpointID:
type: string
endpointType:
type: string
every:
type: string
offset:
type: string
messageTemplate:
type: string
status:
type: string
statusRules:
type: array
items:
type: object
properties:
currentLevel:
type: string
previousLevel:
type: string
tagRules:
type: array
items:
type: object
properties:
key:
type: string
value:
type: string
operator:
type: string
tasks:
type: array
items:
type: object
properties:
name:
remove:
type: boolean
id:
type: string
cron:
type: string
description:
type: string
every:
type: string
offset:
type: string
query:
type: string
status:
pkgName:
type: string
new:
type: object
properties:
name:
type: string
cron:
type: string
description:
type: string
every:
type: string
offset:
type: string
query:
type: string
status:
type: string
old:
type: object
properties:
name:
type: string
cron:
type: string
description:
type: string
every:
type: string
offset:
type: string
query:
type: string
status:
type: string
telegrafConfigs:
type: array
items:
$ref: "#/components/schemas/TelegrafRequest"
type: object
properties:
remove:
type: boolean
id:
type: string
pkgName:
type: string
new:
$ref: "#/components/schemas/TelegrafRequest"
old:
$ref: "#/components/schemas/TelegrafRequest"
variables:
type: array
items:
type: object
properties:
remove:
type: boolean
id:
type: string
name:
pkgName:
type: string
new:
type: object
properties:
name:
type: string
description:
type: string
args:
@ -7684,6 +7825,8 @@ components:
old:
type: object
properties:
name:
type: string
description:
type: string
args:
@ -7712,6 +7855,8 @@ components:
type: string
orgID:
type: string
pkgName:
type: string
name:
type: string
description:
@ -8838,7 +8983,7 @@ components:
description: Colors define color encoding of data into a visualization
type: array
items:
type: string
$ref: "#/components/schemas/DashboardColor"
Axes:
description: The viewport for a View's visualizations
type: object

View File

@ -48,24 +48,162 @@
}
}
.nav-icon {
background: linear-gradient(to right, #00A3FF, #BE2EE4);
font-family: $rubik;
.nav-item {
display: inline-block;
padding: 1rem 1.1rem;
border-radius: 0 5px 5px 0;
font-size: 1.05rem;
margin-bottom: 1rem;
position: relative;
vertical-align: top;
margin-bottom: 1.25rem;
.icon {
font-size: 1.65rem;
vertical-align: middle;
&:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 2px;
height: 100%;
background: #be2ee4;
background: linear-gradient(180deg,#be2ee4 0,#00a3ff);
}
&:first-child {
margin-right: 1.25rem;
}
strong {
color: $g20-white;
font-weight: $medium;
&.account {
padding: .25rem;
position: relative;
width: 210px;
height: 56px;
&:after { display: none; }
.acct-inner {
display: flex;
position: relative;
align-items: center;
width: 100%;
height: 100%;
background: $article-nav-acct-bg;
border-radius: 6px;
border: 3px solid $g8-storm;
&:after {
content: "";
position: absolute;
right: 1rem;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 5px 0 5px;
border-color: $g16-pearl transparent transparent transparent;
}
}
.acct-icon {
margin: 0 .9rem 0 .5rem;
border-radius: 50%;
height: 28px;
width: 28px;
background: linear-gradient(45deg,#00a3ff,#67d74e);
color: $g20-white;
text-align: center;
line-height: 0;
overflow: hidden;
.icon {
margin-left: -.1rem;
font-size: 2rem;
}
}
.acct-label {
.username { color: $g16-pearl; font-weight: $medium; font-size: .85rem; line-height: 1.2rem; }
.orgname { color: $g11-sidewalk; font-size: .75rem; line-height: .75rem; }
}
&.small {
width: 56px;
.acct-inner {
justify-content: center;
align-items: center;
&:after { display: none; }
}
.acct-icon { margin: 0 }
}
}
}
.nav-icon {
display: flex;
justify-content: left;
align-items: center;
color: $g20-white;
width: 210px;
height: 56px;
font-family: $rubik;
font-weight: $medium;
padding: .9rem 1.1rem;
font-size: 1rem;
position: relative;
background: $article-nav-icon-bg;
.icon {
display: inline-block;
font-size: 1.35rem;
margin-right: 1rem;
}
.nav-icon-label {
display: inline-block;
padding: 0;
font-size: 1rem;
}
&:before, &:after {
content: "";
position: absolute;
left: 0;
height: 2px;
z-index: 2;
width: 12px;
}
&:before {
top: 0;
background: #be2ee4;
background: linear-gradient(90deg,#be2ee4 0,rgba(190,46,228,0));
}
&:after {
bottom: 0;
background: #00a3ff;
background: linear-gradient(90deg,#00a3ff 0,rgba(190,46,228,0));
}
&.small {
display: flex;
justify-content: center;
align-items: center;
padding: 0;
width: 56px;
flex-direction: column;
.icon {
position: relative;
margin: 0;
}
.nav-icon-label {
padding: 0;
margin-top: .75rem;
font-size: .67rem;
line-height: 0;
}
}
}
}
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
@include media(small) {
.article--content .nav-item:nth-child(2) {display: none;}
}

View File

@ -159,6 +159,10 @@ $article-btn-text: $g20-white;
$article-btn-hover: $b-pool;
$article-btn-text-hover: $g20-white;
// Article UI nav icons
$article-nav-icon-bg: $g5-pepper;
$article-nav-acct-bg: $g3-castle;
// Error Page Colors
$error-page-btn: $b-dodger;
$error-page-btn-text: $g20-white;

View File

@ -160,6 +160,10 @@ $article-btn-text: $g20-white !default;
$article-btn-hover: $b-dodger !default;
$article-btn-text-hover: $g20-white !default;
// Article UI nav icons
$article-nav-icon-bg: $g6-smoke !default;
$article-nav-acct-bg: $g5-pepper !default;
// Error Page Colors
$error-page-btn: $b-dodger !default;
$error-page-btn-text: $g20-white !default;

View File

@ -1,12 +1,13 @@
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?9r9zke');
src: url('fonts/icomoon.eot?9r9zke#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?9r9zke') format('truetype'),
url('fonts/icomoon.woff?9r9zke') format('woff'),
url('fonts/icomoon.svg?9r9zke#icomoon') format('svg');
src: url('fonts/icomoon.eot?rgf1km');
src: url('fonts/icomoon.eot?rgf1km#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?rgf1km') format('truetype'),
url('fonts/icomoon.woff?rgf1km') format('woff'),
url('fonts/icomoon.svg?rgf1km#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
@ -30,11 +31,8 @@
.icon-ui-wrench-nav:before {
content: "\e93d";
}
.icon-ui-eye-closed:before {
content: "\e956";
}
.icon-ui-eye-open:before {
content: "\e957";
.icon-ui-user:before {
content: "\e93e";
}
.icon-ui-chat:before {
content: "\e93a";
@ -42,12 +40,21 @@
.icon-ui-bell:before {
content: "\e93b";
}
.icon-ui-users-trio:before {
content: "\e940";
}
.icon-ui-cloud:before {
content: "\e93f";
}
.icon-ui-nav-chat:before {
content: "\e941";
}
.icon-ui-eye-closed:before {
content: "\e956";
}
.icon-ui-eye-open:before {
content: "\e957";
}
.icon-ui-add-cell:before {
content: "\e91f";
}

View File

@ -19,7 +19,14 @@ related:
This is a paragraph. Lorem ipsum dolor ({{< icon "trash" >}}) sit amet, consectetur adipiscing elit. Nunc rutrum, metus id scelerisque euismod, erat ante suscipit nibh, ac congue enim risus id est. Etiam tristique nisi et tristique auctor. Morbi eu bibendum erat. Sed ullamcorper, dui id lobortis efficitur, mauris odio pharetra neque, vel tempor odio dolor blandit justo.
{{< nav-icon "dashboards" >}}
{{< nav-icon "account" >}}
{{< nav-icon "data" >}}
{{< nav-icon "explore" >}}
{{< nav-icon "org" >}}
{{< nav-icon "boards" >}}
{{< nav-icon "tasks" >}}
{{< nav-icon "alerts" >}}
{{< nav-icon "settings" >}}
## h2 This is a header2
This is a paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc rutrum, metus id scelerisque euismod, erat ante suscipit nibh, ac congue enim risus id est. Etiam tristique nisi et tristique auctor. Morbi eu bibendum erat. Sed ullamcorper, dui id lobortis efficitur, mauris odio pharetra neque, vel tempor odio dolor blandit justo.

View File

@ -28,7 +28,7 @@ This article describes how to get started with InfluxDB OSS. To get started with
### Download and install InfluxDB v2.0 beta
Download InfluxDB v2.0 beta for macOS.
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-beta.7_darwin_amd64.tar.gz" download>InfluxDB v2.0 beta (macOS)</a>
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-beta.8_darwin_amd64.tar.gz" download>InfluxDB v2.0 beta (macOS)</a>
### Unpackage the InfluxDB binaries
To unpackage the downloaded archive, **double click the archive file in Finder**
@ -37,7 +37,7 @@ or run the following command in a macOS command prompt application such
```sh
# Unpackage contents to the current working directory
tar zxvf ~/Downloads/influxdb_2.0.0-beta.7_darwin_amd64.tar.gz
tar zxvf ~/Downloads/influxdb_2.0.0-beta.8_darwin_amd64.tar.gz
```
#### (Optional) Place the binaries in your $PATH
@ -46,7 +46,7 @@ prefix the executables with `./` to run then in place.
```sh
# (Optional) Copy the influx and influxd binary to your $PATH
sudo cp influxdb_2.0.0-beta.7_darwin_amd64/{influx,influxd} /usr/local/bin/
sudo cp influxdb_2.0.0-beta.8_darwin_amd64/{influx,influxd} /usr/local/bin/
```
{{% note %}}
@ -106,8 +106,8 @@ influxd --reporting-disabled
### Download and install InfluxDB v2.0 beta
Download the InfluxDB v2.0 beta package appropriate for your chipset.
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-beta.7_linux_amd64.tar.gz" download >InfluxDB v2.0 beta (amd64)</a>
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-beta.7_linux_arm64.tar.gz" download >InfluxDB v2.0 beta (arm)</a>
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-beta.8_linux_amd64.tar.gz" download >InfluxDB v2.0 beta (amd64)</a>
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-beta.8_linux_arm64.tar.gz" download >InfluxDB v2.0 beta (arm)</a>
### Place the executables in your $PATH
Unpackage the downloaded archive and place the `influx` and `influxd` executables in your system `$PATH`.
@ -116,10 +116,10 @@ _**Note:** The following commands are examples. Adjust the file names, paths, an
```sh
# Unpackage contents to the current working directory
tar xvzf path/to/influxdb_2.0.0-beta.7_linux_amd64.tar.gz
tar xvzf path/to/influxdb_2.0.0-beta.8_linux_amd64.tar.gz
# Copy the influx and influxd binary to your $PATH
sudo cp influxdb_2.0.0-beta.7_linux_amd64/{influx,influxd} /usr/local/bin/
sudo cp influxdb_2.0.0-beta.8_linux_amd64/{influx,influxd} /usr/local/bin/
```
{{% note %}}

View File

@ -43,12 +43,11 @@ A deadman check assigns a status to data when a series or group doesn't report
in a specified amount of time.
## Create a check in the InfluxDB UI
1. Click **Monitoring & Alerting** in the sidebar in the InfluxDB UI.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. In the top right corner of the **Checks** column, click **{{< icon "plus" >}} Create**
and select the [type of check](#check-types) to create.
2. Click **{{< icon "plus" >}} Create** and select the [type of check](#check-types) to create.
3. Click **Name this check** in the top left corner and provide a unique name for the check.
#### Configure the check query

View File

@ -18,12 +18,12 @@ If you no longer need a check, use the InfluxDB user interface (UI) to delete it
Deleting a check cannot be undone.
{{% /warn %}}
1. Click **Monitoring & Alerting** in the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. In the **Checks** column, hover over the check you want to delete, click the
**{{< icon "delete" >}}** icon, then **Delete**.
2. Hover over the check you want to delete, click the **{{< icon "delete" >}}**
icon, and then **Delete**.
After a check is deleted, all statuses generated by the check remain in the `_monitoring`
bucket until the retention period for the bucket expires.

View File

@ -21,37 +21,35 @@ Common updates include:
- [Add or update a check description](#add-or-update-a-check-description)
- [Add a label to a check](#add-a-label-to-a-check)
To update checks, click **Monitoring & Alerting** in the InfluxDB UI sidebar.
To update checks, select **Alerts** in the navigation menu on the left.
{{< nav-icon "alerts" >}}
## Update check queries and logic
1. In the **Checks** column, click the name of the check you want to update.
The check builder appears.
2. To edit the check query, click **1. Query** at the top of the check builder window.
3. To edit the check logic, click **2. Check** at the top of the check builder window.
1. Click the name of the check you want to update. The check builder appears.
2. To edit the check query, click **1. Define Query** at the top of the check builder window.
3. To edit the check logic, click **2. Configure Check** at the top of the check builder window.
_For details about using the check builder, see [Create checks](/v2.0/monitor-alert/checks/create/)._
## Enable or disable a check
In the **Checks** column, click the {{< icon "toggle" >}} toggle next to a check
to enable or disable it.
Click the {{< icon "toggle" >}} toggle next to a check to enable or disable it.
## Rename a check
1. In the **Checks** column, hover over the name of the check you want to update.
1. Hover over the name of the check you want to update.
2. Click the **{{< icon "edit" >}}** icon that appears next to the check name.
2. Enter a new name and click out of the name field or press enter to save.
_You can also rename a check in the [check builder](#update-check-queries-and-logic)._
## Add or update a check description
1. In the **Checks** column, hover over the check description you want to update.
1. Hover over the check description you want to update.
2. Click the **{{< icon "edit" >}}** icon that appears next to the description.
2. Enter a new description and click out of the name field or press enter to save.
## Add a label to a check
1. In the **Checks** column, click **Add a label** next to the check you want to add a label to.
1. Click **Add a label** next to the check you want to add a label to.
The **Add Labels** box opens.
2. To add an existing label, select the label from the list.
3. To create and add a new label:

View File

@ -19,25 +19,25 @@ View check details and statuses and notifications generated by checks in the Inf
- [View statuses generated by a check](#view-statuses-generated-by-a-check)
- [View notifications triggered by a check](#view-notifications-triggered-by-a-check)
To view checks, click **Monitoring & Alerting** in the InfluxDB UI sidebar.
To view checks, click **Alerts** in navigation menu on the left.
{{< nav-icon "alerts" >}}
## View a list of all checks
The **Checks** column on the Monitoring & Alerting landing page displays all existing checks.
The **Checks** section of the Alerts landing page displays all existing checks.
## View check details
In the **Checks** column, click the name of the check you want to view.
Click the name of the check you want to view.
The check builder appears.
Here you can view the check query and logic.
## View statuses generated by a check
1. In the **Checks** column, hover over the check, click the **{{< icon "view" >}}**
icon, then **View History**.
The Statuses History page displays statuses generated by the selected check.
1. Hover over the check and click the **{{< icon "view" >}}** icon.
2. Click **View History**.
The Statuses History page displays statuses generated by the selected check.
## View notifications triggered by a check
1. In the **Checks** column, hover over the check, click the **{{< icon "view" >}}**
icon, then **View History**.
2. In the top left corner, click **Notifications**.
The Notifications History page displays notifications initiated by the selected check.
1. Hover over the check, click the **{{< icon "view" >}}**
icon, then **View History**.
2. In the top left corner, click **Notifications**.
The Notifications History page displays notifications initiated by the selected check.

View File

@ -16,12 +16,13 @@ To send notifications about changes in your data, start by creating a notificati
## Create a notification endpoint in the UI
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Next to **Notification Endpoints**, click **Create**.
3. From the **Destination** drop-down list, select a destination endpoint to send notifications.
2. Select **Notification Endpoints** near to top of the page.
3. Click **{{< icon "plus" >}} Create**.
4. From the **Destination** drop-down list, select a destination endpoint to send notifications.
The following endpoints are available for InfluxDB 2.0 OSS, the InfluxDB Cloud 2.0 Free Plan,
and the InfluxDB Cloud 2.0 Usage-based Plan:
@ -31,8 +32,8 @@ To send notifications about changes in your data, start by creating a notificati
| **PagerDuty** | **{{< icon "check" >}}** | | **{{< icon "check" >}}** |
| **HTTP** | **{{< icon "check" >}}** | | **{{< icon "check" >}}** |
4. In the **Name** and **Description** fields, enter a name and description for the endpoint.
5. Enter enter information to connect to the endpoint:
5. In the **Name** and **Description** fields, enter a name and description for the endpoint.
6. Enter enter information to connect to the endpoint:
- For HTTP, enter the **URL** to send the notification. Select the **auth method** to use: **None** for no authentication. To authenticate with a username and password, select **Basic** and then enter credentials in the **Username** and **Password** fields. To authenticate with a token, select **Bearer**, and then enter the authentication token in the **Token** field.

View File

@ -16,9 +16,11 @@ If notifications are no longer sent to an endpoint, complete the steps below to
## Delete a notification endpoint in the UI
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, find the rule you want to delete.
3. Click the delete icon, then click **Delete** to confirm.
2. Select **Notification Endpoints** near to top of the page.
find the rule you want to delete.
3. Hover over the endpoint you want to delete and click the **{{< icon "trash" >}}** icon.
4. Click **Delete** to confirm.

View File

@ -16,50 +16,51 @@ To update the notification endpoint details, complete the procedures below as ne
## Add a label to notification endpoint
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Endpoints**, click **Add a label** next to the endpoint you want to add a label to. The **Add Labels** box opens.
3. To add an existing label, select the label from the list.
4. To create and add a new label:
2. Select **Notification Endpoints** near to top of the page.
3. Click **{{< icon "add-label" >}} Add a label** next to the endpoint you want to add a label to.
The **Add Labels** box opens.
4. To add an existing label, select the label from the list.
5. To create and add a new label:
- In the search field, enter the name of the new label. The **Create Label** box opens.
- In the **Description** field, enter an optional description for the label.
- Select a color for the label.
- Click **Create Label**.
5. To remove a label, hover over the label under an endpoint and click X.
6. To remove a label, hover over the label under an endpoint and click X.
## Disable notification endpoint
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Endpoints**, find the endpoint you want to disable.
3. Click the blue toggle to disable the notification endpoint.
2. Select **Notification Endpoints** near to top of the page.
3. Click the {{< icon "toggle" >}} toggle to disable the notification endpoint.
## Update the name or description for notification endpoint
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Endpoints**, hover over the name or description of the endpoint.
3. Click the pencil icon to edit the field.
2. Select **Notification Endpoints** near to top of the page.
3. Hover over the name or description of the endpoint and click the pencil icon
(**{{< icon "edit" >}}**) to edit the field.
4. Click outside of the field to save your changes.
## Change endpoint details
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Endpoints**, click the endpoint to update.
3. Update details as needed, and then click **Edit a Notification Endpoint**. For details about each field, see [Create notification endpoints](/v2.0/monitor-alert/notification-endpoints/create/).
2. Select **Notification Endpoints** near to top of the page.
3. Click the endpoint to update.
4. Update details as needed, and then click **Edit Notification Endpoint**.
For details about each field, see [Create notification endpoints](/v2.0/monitor-alert/notification-endpoints/create/).

View File

@ -21,23 +21,31 @@ View notification endpoint details and history in the InfluxDB user interface (U
## View notification endpoints
- Click **Monitoring & Alerting** in the InfluxDB UI sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
In the **Notification Endpoints** column, view existing notification endpoints.
2. Select **Notification Endpoints** near to top of the page.
## View notification endpoint details
1. Click **Monitoring & Alerting** in the InfluxDB UI sidebar.
2. In the **Notification Endpoints** column, click the name of the notification endpoint you want to view.
3. View the notification endpoint destination, name, and information to connect to the endpoint.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Select **Notification Endpoints** near to top of the page.
3. Click the name of the notification endpoint you want to view.
4. View the notification endpoint destination, name, and information to connect to the endpoint.
## View notification endpoint history
1. Click **Monitoring & Alerting** in the InfluxDB UI sidebar.
2. In the **Notification Endpoints** column, hover over the notification endpoint, click the **{{< icon "view" >}}** icon, then **View History**.
The Check Statuses History page displays:
1. In the navigation menu on the left, select **Alerts**.
- Statuses generated for the selected notification endpoint
- Notifications sent to the selected notification endpoint
{{< nav-icon "alerts" >}}
2. Select **Notification Endpoints** near to top of the page.
3. Hover over the notification endpoint, click the **{{< icon "view" >}}** icon, then **View History**.
The Check Statuses History page displays:
- Statuses generated for the selected notification endpoint
- Notifications sent to the selected notification endpoint

View File

@ -17,26 +17,28 @@ _For details, see [Manage checks](/v2.0/monitor-alert/checks/) and
## Create a new notification rule in the UI
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, click **+Create**.
3. Complete the **About** section:
2. Select **Notification Rules** near to top of the page.
3. Click **{{< icon "plus" >}} Create**.
4. Complete the **About** section:
1. In the **Name** field, enter a name for the notification rule.
2. In the **Schedule Every** field, enter how frequently the rule should run.
3. In the **Offset** field, enter an offset time. For example,if a task runs on the hour, a 10m offset delays the task to 10 minutes after the hour. Time ranges defined in the task are relative to the specified execution time.
4. In the **Conditions** section, build a condition using a combination of status and tag keys.
5. In the **Conditions** section, build a condition using a combination of status and tag keys.
- Next to **When status is equal to**, select a status from the drop-down field.
- Next to **AND When**, enter one or more tag key-value pairs to filter by.
5. In the **Message** section, select an endpoint to notify.
6. Click **Create Notification Rule**.
6. In the **Message** section, select an endpoint to notify.
7. Click **Create Notification Rule**.
## Clone an existing notification rule in the UI
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. 1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, hover over the rule you want to clone.
3. Click the clone icon and select **Clone**. The cloned rule appears.
2. Select **Notification Rules** near to top of the page.
3. Hover over the rule you want to clone and click the **{{< icon "clone" >}}** icon and select **Clone**.
The cloned rule appears.

View File

@ -13,9 +13,10 @@ related:
## Delete a notification rule in the UI
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, find the rule you want to delete.
3. Click the delete icon, then click **Delete** to confirm.
2. Select **Notification Rules** near to top of the page.
3. Hover over the rule you want to delete and click the **{{< icon "trash" >}}** icon.
4. Click **Delete** to confirm.

View File

@ -13,39 +13,38 @@ related:
## Add a label to notification rules
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, click **Add a label** next to the rule you want to add a label to. The **Add Labels** box opens.
3. To add an existing label, select the label from the list.
4. To create and add a new label:
2. Select **Notification Rules** near to top of the page.
3. Click **{{< icon "add-label" >}} Add a label** next to the rule you want to add a label to.
The **Add Labels** box opens.
4. To add an existing label, select the label from the list.
5. To create and add a new label:
- In the search field, enter the name of the new label. The **Create Label** box opens.
- In the **Description** field, enter an optional description for the label.
- Select a color for the label.
- Click **Create Label**.
5. To remove a label, hover over the label under to a rule and click X.
6. To remove a label, hover over the label under to a rule and click **{{< icon "x" >}}**.
## Disable notification rules
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, find the rule you want to disable.
3. Click the blue toggle to disable the notification rule.
2. Select **Notification Rules** near to top of the page.
3. Click the {{< icon "toggle" >}} toggle to disable the notification rule.
## Update the name or description for notification rules
1. Select the **Monitoring and Alerting** icon from the sidebar.
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Under **Notification Rules**, hover over the name or description of a rule.
3. Click the pencil icon to edit the field.
2. Select **Notification Rules** near to top of the page.
3. Hover over the name or description of a rule and click the pencil icon
(**{{< icon "edit" >}}**) to edit the field.
4. Click outside of the field to save your changes.

View File

@ -18,25 +18,28 @@ View notification rule details and statuses and notifications generated by notif
- [View statuses generated by a check](#view-statuses-generated-by-a-notification-rule)
- [View notifications triggered by a notification rule](#view-notifications-triggered-by-a-notification-rule)
To view notification rules, click **Monitoring & Alerting** in the InfluxDB UI sidebar.
**To view notification rules:**
{{< nav-icon "alerts" >}}
1. In the navigation menu on the left, select **Alerts**.
{{< nav-icon "alerts" >}}
2. Select **Notification Rules** near to top of the page.
## View a list of all notification rules
The **Notification Rules** column on the Monitoring & Alerting landing page displays all existing checks.
The **Notification Rules** section of the Alerts landing page displays all existing checks.
## View notification rule details
In the **Notification Rules** column, click the name of the check you want to view.
Click the name of the check you want to view.
The check builder appears.
Here you can view the check query and logic.
## View statuses generated by a notification rule
1. In the **Notification Rules** column, hover over the check, click the **{{< icon "view" >}}**
icon, then **View History**.
The Statuses History page displays statuses generated by the selected check.
Hover over the check, click the **{{< icon "view" >}}** icon, and then **View History**.
The Statuses History page displays statuses generated by the selected check.
## View notifications triggered by a notification rule
1. In the **Notification Rules** column, hover over the notification rule, click the **{{< icon "view" >}}**
icon, then **View History**.
2. In the top left corner, click **Notifications**.
The Notifications History page displays notifications initiated by the selected notification rule.
1. Hover over the notification rule, click the **{{< icon "view" >}}**
icon, and then **View History**.
2. In the top left corner, click **Notifications**.
The Notifications History page displays notifications initiated by the selected notification rule.

View File

@ -14,14 +14,13 @@ to create a bucket.
## Create a bucket in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Buckets**.
{{< nav-icon "load data" >}}
{{< nav-icon "data" >}}
2. Select **Buckets**.
3. Click **{{< icon "plus" >}} Create Bucket** in the upper right.
4. Enter a **Name** for the bucket.
5. Select when to **Delete Data**:
2. Click **{{< icon "plus" >}} Create Bucket** in the upper right.
3. Enter a **Name** for the bucket.
4. Select when to **Delete Data**:
- **Never** to retain data forever.
- **Older than** to choose a specific retention policy.
5. Click **Create** to create the bucket.

View File

@ -14,13 +14,12 @@ to delete a bucket.
## Delete a bucket in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Buckets**.
{{< nav-icon "load data" >}}
{{< nav-icon "data" >}}
2. Select **Buckets**.
3. Hover over the bucket you would like to delete.
4. Click **{{< icon "delete" >}} Delete Bucket** and **Confirm** to delete the bucket.
2. Hover over the bucket you would like to delete.
3. Click **{{< icon "delete" >}} Delete Bucket** and **Confirm** to delete the bucket.
## Delete a bucket using the influx CLI

View File

@ -24,25 +24,24 @@ If you change a bucket name, be sure to update the bucket in the above places as
## Update a bucket's name in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Buckets**.
{{< nav-icon "load data" >}}
{{< nav-icon "data" >}}
2. Select **Buckets**.
3. Click **Rename** under the bucket you want to rename.
4. Review the information in the window that appears and click **I understand, let's rename my bucket**.
5. Update the bucket's name and click **Change Bucket Name**.
2. Click **Settings** under the bucket you want to rename.
3. Click **Rename**.
3. Review the information in the window that appears and click **I understand, let's rename my bucket**.
4. Update the bucket's name and click **Change Bucket Name**.
## Update a bucket's retention policy in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Buckets**.
{{< nav-icon "load data" >}}
{{< nav-icon "data" >}}
2. Select **Buckets**.
3. Click the name of the bucket you want to update from the list.
4. In the window that appears, edit the bucket's retention policy.
5. Click **Save Changes**.
2. Click **Settings** next to the bucket you want to update.
3. In the window that appears, edit the bucket's retention policy.
4. Click **Save Changes**.
## Update a bucket using the influx CLI

View File

@ -11,12 +11,11 @@ weight: 202
## View buckets in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Buckets**.
{{< nav-icon "load data" >}}
{{< nav-icon "data" >}}
2. Select **Buckets**.
3. Click a bucket to open it **Data Explorer**.
2. Click a bucket to open it **Data Explorer**.
## View buckets using the influx CLI

View File

@ -13,17 +13,18 @@ Use the InfluxDB user interface (UI) or the `influx` command line interface (CLI
to create an organization.
{{% cloud-msg %}}
You cannot currently create additional organizations in {{< cloud-name >}}. Only the default organization is available.
You cannot currently create additional organizations in {{< cloud-name >}}.
Only the default organization is available.
{{% /cloud-msg %}}
## Create an organization in the InfluxDB UI
1. Click the **Influx** icon in the navigation bar.
1. In the navigation menu on the left, click the **Account dropdown**.
{{< nav-icon "admin" >}}
{{< nav-icon "account" >}}
2. Select **Create Organization**.
3. In the window that appears, enter a name for the organization and associated bucket and click **Create**.
3. In the window that appears, enter an **Organization Name** and **Bucket Name** and click **Create**.
## Create an organization using the influx CLI

View File

@ -15,9 +15,9 @@ to delete an organization.
<!--
## Delete an organization in the InfluxDB UI
1. Click the **Influx** icon in the navigation bar.
1. In the navigation menu on the left, click the **Account dropdown**.
{{< nav-icon "admin" >}}
{{< nav-icon "account" >}}
The list of organizations appears.

View File

@ -17,11 +17,9 @@ Adding members is currently unavailable in {{< cloud-name >}}.
<!-- ## Add a member to an organization in the InfluxDB UI
1. Click the **Settings** tab in the navigation bar.
1. In the navigation menu on the left, select **Org (Organization)** > **Members**.
{{< nav-icon "settings" >}}
2. Click the name of an organization, then select the **Members** tab.
{{< nav-icon "org" >}}
_Complete content coming soon_ -->

View File

@ -20,13 +20,12 @@ For information about deleting a user from InfluxDB, see [Delete a user](/v2.0/u
## Remove a member from an organization in the InfluxDB UI
1. Click **Settings** in the left navigation bar.
1. In the navigation menu on the left, select **Org (Organization)** > **Members**.
{{< nav-icon "settings" >}}
{{< nav-icon "org" >}}
2. Select **Members**.
3. Hover over the member you would like to delete and click the **{{< icon "delete" >}}** icon.
4. Click **Delete**.
2. Hover over the member you would like to delete and click the **{{< icon "delete" >}}** icon.
3. Click **Delete**.
## Remove a member from an organization using the influx CLI

View File

@ -14,11 +14,9 @@ to view members of an organization.
## View members of organization in the InfluxDB UI
* Click the **Settings** tab in the navigation bar.
In the navigation menu on the left, select **Org (Organization)** > **Members**.
{{< nav-icon "settings" >}}
* Click the name of an organization, then select the **Members** tab. The list of organization members appears.
{{< nav-icon "org" >}}
## View members of organization using the influx CLI

View File

@ -13,9 +13,9 @@ Use the InfluxDB user interface (UI) to switch from one organization to another.
## Switch organizations in the InfluxDB UI
1. Click the **Influx** icon in the navigation bar.
1. In the navigation menu on the left, click the **Account dropdown**.
{{< nav-icon "admin" >}}
{{< nav-icon "account" >}}
2. Select **Switch Organizations**. The list of organizations appears.
2. Select **Switch Organizations**.
3. Click the organization you want to switch to.

View File

@ -23,15 +23,14 @@ If you change an organization name, be sure to update the organization in the ab
## Update an organization in the InfluxDB UI
1. Click the **Settings** icon in the navigation bar.
1. In the navigation menu on the left, click the **Org (Organization)** > **About**.
{{< nav-icon "settings" >}}
{{< nav-icon "org" >}}
2. Click the **Org Profile** tab.
3. Click **Rename**.
4. In the window that appears, review the information and click **I understand, let's rename my organization**.
5. Enter a new name for your organization.
6. Click **Change organization name**.
2. Click **{{< icon "edit" >}} Rename**.
3. In the window that appears, review the information and click **I understand, let's rename my organization**.
4. Enter a new name for your organization.
5. Click **Change organization name**.
## Update an organization using the influx CLI

View File

@ -14,12 +14,11 @@ to view organizations.
## View organizations in the InfluxDB UI
* Click the **Influx** icon in the navigation bar.
1. In the navigation menu on the left, click the **Account dropdown**.
{{< nav-icon "admin" >}}
* Select **Switch Organizations**. The list of organizations appears.
{{< nav-icon "account" >}}
2. Select **Switch Organizations**. The list of organizations appears.
## View organizations using the influx CLI
@ -40,9 +39,24 @@ Use the InfluxDB UI or `influx` CLI to view your organization ID.
### Organization ID in the UI
After logging in to the InfluxDB UI, your organization ID appears in the URL.
{{< code-tabs-wrapper >}}
{{% code-tabs %}}
[InfluxDB Cloud](#)
[InfluxDB OSS](#)
{{% /code-tabs %}}
{{< code-tab-content >}}
<pre class="highlight">
https://us-west-2-1.aws.cloud2.influxdata.com/orgs/<span class="bp" style="font-weight:bold;margin:0 .15rem">03a2bbf46249a000</span>/...
</pre>
{{< /code-tab-content >}}
{{< code-tab-content >}}
<pre class="highlight">
http://localhost:9999/orgs/<span class="bp" style="font-weight:bold;margin:0 .15rem">03a2bbf46249a000</span>/...
</pre>
{{< /code-tab-content >}}
{{< /code-tabs-wrapper >}}
_For specific InfluxDB Cloud provider and region URLs, see [InfluxDB Cloud URLs](/v2.0/cloud/urls/)._
### Organization ID in the CLI

View File

@ -30,11 +30,11 @@ The InfluxDB UI provides multiple ways to create a task:
- [Clone a task](#clone-a-task)
### Create a task from the Data Explorer
1. Click the **Data Explorer** icon in the left navigation menu.
1. In the navigation menu on the left, select **Explore** (**Data Explorer**).
{{< nav-icon "data-explorer" >}}
2. Building a query and click **Save As** in the upper right.
2. Build a query and click **Save As** in the upper right.
3. Select the **Task** option.
4. Specify the task options. See [Task options](/v2.0/process-data/task-options)
for detailed information about each option.
@ -43,7 +43,7 @@ The InfluxDB UI provides multiple ways to create a task:
### Create a task in the Task UI
1. Click the **Tasks** icon in the left navigation menu.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}
@ -56,7 +56,7 @@ The InfluxDB UI provides multiple ways to create a task:
7. Click **Save** in the upper right.
### Import a task
1. Click the **Tasks** icon in the left navigation menu.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}
@ -69,7 +69,7 @@ The InfluxDB UI provides multiple ways to create a task:
5. Click **Import JSON as Task**.
### Create a task from a template
1. Click the **Settings** icon in the left navigation menu.
1. In the navigation menu on the left, select **Settings** > **Templates**.
{{< nav-icon "Settings" >}}
@ -78,7 +78,7 @@ The InfluxDB UI provides multiple ways to create a task:
### Clone a task
1. Click the **Tasks** icon in the left navigation menu.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}
@ -92,10 +92,10 @@ It accepts either a file path or raw Flux.
###### Create a task using a file
```sh
# Syntax
influx task create --org <org-name> @</path/to/task-script>
influx task create --org <org-name> -f </path/to/task-script>
# Example
influx task create --org my-org @/tasks/cq-mean-1h.flux
influx task create --org my-org -f /tasks/cq-mean-1h.flux
```
###### Create a task using raw Flux

View File

@ -13,7 +13,7 @@ related:
---
## Delete a task in the InfluxDB UI
1. Click the **Tasks** icon in the left navigation menu.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}

View File

@ -13,7 +13,7 @@ InfluxDB lets you export tasks from the InfluxDB user interface (UI).
Tasks are exported as downloadable JSON files.
## Export a task in the InfluxDB UI
1. Click the **Tasks** icon in the left navigation menu.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}

View File

@ -18,7 +18,7 @@ however, you can manually run a task from the InfluxDB user interface (UI) or th
`influx` command line interface (CLI).
## Run a task from the InfluxDB UI
1. Click the **Tasks** icon in the left navigation to view the lists of tasks.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}

View File

@ -20,7 +20,7 @@ to view task run histories and associated logs.
## View a task's run history in the InfluxDB UI
1. Click the **Tasks** icon in the left navigation to view the lists of tasks.
1. In the navigation menu on the left, select **Tasks**.
{{< nav-icon "tasks" >}}

View File

@ -13,7 +13,7 @@ related:
---
## Update a task in the InfluxDB UI
To view your tasks, click the **Tasks** icon in the left navigation menu.
Click the **Tasks** icon in the left navigation to view the lists of tasks.
{{< nav-icon "tasks" >}}
@ -48,10 +48,10 @@ script are also updated.
```sh
# Syntax
influx task update -i <task-id> @/path/to/updated-task-script
influx task update -i <task-id> -f </path/to/updated-task-script>
# Example
influx task update -i 0343698431c35000 @/tasks/cq-mean-1h.flux
influx task update -i 0343698431c35000 -f /tasks/cq-mean-1h.flux
```
#### Update the status of a task

View File

@ -21,7 +21,7 @@ This guide covers the different options:
## Data Explorer
Queries can be built, executed, and visualized in InfluxDB UI's Data Explorer.
![Data Explorer with Flux](/img/2-0-data-explorer-ui.png)
![Data Explorer with Flux](/img/data-explorer-beta-8.png)
## Influx REPL
The [`influx repl` command](/v2.0/reference/cli/influx/repl) starts an interactive
@ -41,7 +41,7 @@ as either a file or raw Flux via stdin.
###### Run a query from a file
```bash
influx query @/path/to/query.flux
influx query --file /path/to/query.flux
```
###### Pass raw Flux via stdin pipe

View File

@ -30,6 +30,12 @@ influx config <config-name>
influx config local-config
```
To quickly switch back to the previous configuration, use the following command:
```sh
influx config -
```
## Subcommands
| Subcommand | Description |
|:---- |:----------- |

View File

@ -16,14 +16,16 @@ or a literal Flux query contained in a file by specifying the file prefixed with
## Usage
```
influx query [query literal or @/path/to/query.flux] [flags]
influx query [query literal] [flags]
```
## Flags
| Flag | Description | Input type | {{< cli/mapped >}} |
|:---- |:----------- |:----------:|:------------------ |
|----------------|------------------------------|:----------:|--------------------|
| `-f`, `--file` | Path to Flux script file | string | |
| `-h`, `--help` | Help for the `query` command | | |
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
{{% cli/influx-global-flags %}}

View File

@ -12,16 +12,18 @@ The `influx task create` command creates a new task in InfluxDB.
## Usage
```
influx task create [query literal or @/path/to/query.flux] [flags]
influx task create [query literal] [flags]
```
## Flags
| Flag | Description | Input type | {{< cli/mapped >}} |
|:---- |:----------- |:----------: |:------------------ |
| `-h`, `--help` | Help for the `create` command | | |
| `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `--org` | Organization name | string | `INFLUX_ORG` |
| `--org-id` | Organiztion ID | string | `INFLUX_ORG_ID` |
| Flag | Description | Input type | {{< cli/mapped >}} |
|------------------|---------------------------------------|:----------:|-----------------------|
| `-f`, `--file` | Path to Flux script file | string | |
| `-h`, `--help` | Help for the `create` command | | |
| `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `--org` | Organization name | string | `INFLUX_ORG` |
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
{{% cli/influx-global-flags %}}

View File

@ -18,10 +18,12 @@ influx task update [flags]
## Flags
| Flag | Description | Input type | {{< cli/mapped >}} |
|:---- |:----------- |:----------: |:------------------ |
| `-f`, `--file` | Path to Flux script file | string | |
| `-h`, `--help` | Help for the `update` command | | |
| `--hide-headers` | Hide table headers (default `false`) | | `INFLUX_HIDE_HEADERS` |
| `-i`, `--id` | **(Required)** Task ID | string | |
| `--json` | Output data as JSON (default `false`) | | `INFLUX_OUTPUT_JSON` |
| `--status` | Update task status | string | |
{{% cli/influx-global-flags %}}

View File

@ -1,8 +1,8 @@
---
title: influx write
description: >
The 'influx write' command writes line protocol to InfluxDB either via a single
line of line protocol, or a via a file containing line protocol.
The `influx write` command writes data to InfluxDB via stdin or from a specified file.
Write data using line protocol or annotated CSV.
menu:
v2_0_ref:
name: influx write
@ -11,20 +11,29 @@ weight: 101
v2.0/tags: [write]
---
The `influx write` writes a single line of line protocol to InfluxDB,
or adds an entire file specified with an `@` prefix.
The `influx write` command writes data to InfluxDB via stdin or from a specified file.
Write data using [line protocol](/v2.0/reference/syntax/line-protocol) or
[annotated CSV](/v2.0/reference/syntax/annotated-csv).
## Usage
```
influx write [line protocol or @/path/to/points.txt] [flags]
influx write [flags]
influx write [command]
```
## Subcommands
| Subcommand | Description |
|:---------- |:----------- |
| [dryrun](/v2.0/reference/cli/influx/write/dryrun) | Write to stdout instead of InfluxDB |
## Flags
| Flag | Description | Input type | {{< cli/mapped >}} |
|:---- |:----------- |:----------:|:------------------ |
| `-b`, `--bucket` | Bucket name | string | `INFLUX_BUCKET_NAME` |
| `--bucket-id` | Bucket ID | string | `INFLUX_BUCKET_ID` |
| `-h`, `--help` | Help for the `write` command | | |
| `-f`, `--file` | File to import | string | |
| `--format` | Input format (`lp` or `csv`, default `lp`) | string | |
| `-h`, `--help` | Help for the `dryrun` command | | |
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-p`, `--precision` | Precision of the timestamps (default `ns`) | string | `INFLUX_PRECISION` |

View File

@ -0,0 +1,38 @@
---
title: influx write dryrun
description: >
The 'influx write dryrun' command prints write output to stdout instead of writing
to InfluxDB. Use this command to test writing data.
menu:
v2_0_ref:
name: influx write dryrun
parent: influx write
weight: 101
v2.0/tags: [write]
---
The `influx write dryrun` command prints write output to stdout instead of writing
to InfluxDB. Use this command to test writing data.
Supports [line protocol](/v2.0/reference/syntax/line-protocol) and
[annotated CSV](/v2.0/reference/syntax/annotated-csv).
Output is always **line protocol**.
## Usage
```
influx write dryrun [flags]
```
## Flags
| Flag | Description | Input type | {{< cli/mapped >}} |
|:---- |:----------- |:----------:|:------------------ |
| `-b`, `--bucket` | Bucket name | string | `INFLUX_BUCKET_NAME` |
| `--bucket-id` | Bucket ID | string | `INFLUX_BUCKET_ID` |
| `-f`, `--file` | File to import | string | |
| `--format` | Input format (`lp` or `csv`, defaults `lp`) | string | |
| `-h`, `--help` | Help for the `dryrun` command | | |
| `-o`, `--org` | Organization name | string | `INFLUX_ORG` |
| `--org-id` | Organization ID | string | `INFLUX_ORG_ID` |
| `-p`, `--precision` | Precision of the timestamps (default `ns`) | string | `INFLUX_PRECISION` |
{{% cli/influx-global-flags %}}

View File

@ -7,6 +7,8 @@ menu:
name: influxd
parent: Command line tools
weight: 102
related:
- /v2.0/reference/config-options/
---
The `influxd` daemon starts and runs all the processes necessary for InfluxDB to function.
@ -30,33 +32,4 @@ influxd [command]
## Flags
| Flag | Description | Input type |
|:---- |:----------- | :--------: |
| `--assets-path` | Override default assets by serving from a specific directory (developer mode) | string |
| `--bolt-path` | Path to boltdb database (default `~/.influxdbv2/influxd.bolt`) | string |
| `--e2e-testing` | Add /debug/flush endpoint to clear stores; used for end-to-end tests (default `false`) | |
| `--engine-path` | Path to persistent engine files (default `~/.influxdbv2/engine`) | string |
| `-h`, `--help` | Help for the `influxd` command | |
| `--http-bind-address` | Bind address for the REST HTTP API (default `:9999`) | string |
| `--log-level` | Supported log levels are debug, info, and error (default `info`) | string |
| `--new-meta-store` | Enables the new meta store | |
| `--new-meta-store-read-only` | Toggle read-only mode for the new meta store and duplicate reads between old and new store (default `true`) | |
| `--no-tasks` | Disables the task scheduler | |
| `--reporting-disabled` | Disable sending telemetry data to **https:<nolink>//telemetry.influxdata.com** | |
| `--secret-store` | Data store for secrets (bolt or vault) (default `bolt`) | string |
| `--session-length` | TTL in minutes for newly created sessions (default `60`) | integer |
| `--session-renew-disabled` | Disables automatically extending session TTL on request | |
| `--store` | Data store for REST resources (bolt or memory) (default `bolt`) | string |
| `--tls-cert` | Path to TLS certificate file | string |
| `--tls-key` | Path to TLS private key file | string |
| `--tracing-type` | Supported tracing types (log or jaeger) | string |
| `--vault-addr ` | Address of the Vault server (example: `https://127.0.0.1:8200/`) | string |
| `--vault-cacert` | Path to a PEM-encoded CA certificate file | string |
| `--vault-capath` | Path to a directory of PEM-encoded CA certificate files | string |
| `--vault-client-cert` | Path to a PEM-encoded client certificate | string |
| `--vault-client-key` | Path to an unencrypted, PEM-encoded private key which corresponds to the matching client certificate | string |
| `--vault-max-retries` | Maximum number of retries when encountering a 5xx error code (default `2`) | integer |
| `--vault-client-timeout` | Vault client timeout (default `60s`) | duration |
| `--vault-skip-verify` | Skip certificate verification when communicating with Vault | |
| `--vault-tls-server-name` | Name to use as the SNI host when connecting to Vault via TLS | string |
| `--vault-token` | Vault authentication token | string |
{{% cli/influxd-flags %}}

View File

@ -6,6 +6,8 @@ menu:
v2_0_ref:
parent: influxd
weight: 201
related:
- /v2.0/reference/config-options/
---
The `influxd run` command is the default command for `influxd`.
@ -28,30 +30,4 @@ influxd run
## Flags
| Flag | Description | Input type |
| :--------------------- | :---------------------------------------------------------------------------------------------------- | :--------: |
| `--assets-path` | Override default assets by serving from a specific directory (developer mode) | string |
| `--bolt-path` | Path to boltdb database (default `~/.influxdbv2/influxd.bolt`) | string |
| `--e2e-testing` | Add /debug/flush endpoint to clear stores; used for end-to-end tests (default `false`) | |
| `--engine-path` | Path to persistent engine files (default `~/.influxdbv2/engine`) | string |
| `-h`, `--help` | Help for the `influxd` command | |
| `--http-bind-address` | Bind address for the REST HTTP API (default `:9999`) | string |
| `--log-level` | Supported log levels are debug, info, and error (default `info`) | string |
| `--reporting-disabled` | Disable sending telemetry data to **https:<nolink>//telemetry.influxdata.com** | |
| `--secret-store` | Data store for secrets (bolt or vault) (default `bolt`) | string |
| `--session-length` | TTL in minutes for newly created sessions (default `60`) | integer |
| `--session-renew-disabled` | Disables automatically extending session TTL on request | |
| `--store` | Data store for REST resources (bolt or memory) (default `bolt`) | string |
| `--tls-cert` | Path to TLS certificate file | string |
| `--tls-key` | Path to TLS private key file | string |
| `--tracing-type` | Supported tracing types (log or jaeger) | string |
| `--vault-addr ` | Address of the Vault server (example: `https://127.0.0.1:8200/`) | string |
| `--vault-cacert` | Path to a PEM-encoded CA certificate file | string |
| `--vault-capath` | Path to a directory of PEM-encoded CA certificate files | string |
| `--vault-client-cert` | Path to a PEM-encoded client certificate | string |
| `--vault-client-key` | Path to an unencrypted, PEM-encoded private key which corresponds to the matching client certificate | string |
| `--vault-max-retries` | Maximum number of retries when encountering a 5xx error code (default `2`) | integer |
| `--vault-client-timeout` | Vault client timeout (default `60s`) | duration |
| `--vault-skip-verify` | Skip certificate verification when communicating with Vault | |
| `--vault-tls-server-name` | Name to use as the SNI host when connecting to Vault via TLS | string |
| `--vault-token` | Vault authentication token | string |
{{% cli/influxd-flags %}}

View File

@ -18,6 +18,14 @@ To configure InfluxDB, use the following configuration options when starting the
- [--engine-path](#engine-path)
- [--http-bind-address](#http-bind-address)
- [--log-level](#log-level)
- [--new-meta-store](#new-meta-store)
- [--new-meta-store-read-only](#new-meta-store-read-only)
- [--no-tasks](#no-tasks)
- [--query-concurrency](#query-concurrency)
- [--query-initial-memory-bytes](#query-initial-memory-bytes)
- [--query-max-memory-bytes](#query-max-memory-bytes)
- [--query-memory-bytes](#query-memory-bytes)
- [--query-queue-size](#query-queue-size)
- [--reporting-disabled](#reporting-disabled)
- [--secret-store](#secret-store)
- [--session-length](#session-length)
@ -40,8 +48,8 @@ To configure InfluxDB, use the following configuration options when starting the
---
## --assets-path
Override the default InfluxDB user interface (UI) assets by serving assets from the specified directory.
_Typically, InfluxData internal use only._
Overrides the default InfluxDB user interface (UI) assets by serving assets from the specified directory.
```sh
influxd --assets-path=/path/to/custom/assets-dir
@ -50,7 +58,7 @@ influxd --assets-path=/path/to/custom/assets-dir
---
## --bolt-path
Defines the path to the [BoltDB](https://github.com/boltdb/bolt) database.
Define the path to the [BoltDB](https://github.com/boltdb/bolt) database.
BoltDB is a key value store written in Go.
InfluxDB uses BoltDB to store data including organization and
user information, UI data, REST resources, and other key value data.
@ -64,7 +72,7 @@ influxd --bolt-path=~/.influxdbv2/influxd.bolt
---
## --e2e-testing
Adds a `/debug/flush` endpoint to the InfluxDB HTTP API to clear stores.
Add a `/debug/flush` endpoint to the InfluxDB HTTP API to clear stores.
InfluxData uses this endpoint in end-to-end testing.
```sh
@ -74,7 +82,7 @@ influxd --e2e-testing
---
## --engine-path
Defines the path to persistent storage engine files where InfluxDB stores all
Define the path to persistent storage engine files where InfluxDB stores all
Time-Structure Merge Tree (TSM) data on disk.
**Default:** `~/.influxdbv2/engine`
@ -86,7 +94,7 @@ influxd --engine-path=~/.influxdbv2/engine
---
## --http-bind-address
Defines the bind address for the InfluxDB HTTP API.
Define the bind address for the InfluxDB HTTP API.
Customize the URL and port for the InfluxDB API and UI.
**Default:** `:9999`
@ -98,7 +106,7 @@ influxd --http-bind-address=:9999
---
## --log-level
Defines the log output level.
Define the log output level.
InfluxDB outputs log entries with severity levels greater than or equal to the level specified.
**Options:** `debug`, `info`, `error`
@ -110,6 +118,101 @@ influxd --log-level=info
---
## --new-meta-store
Enable the new meta store.
**Default:** `false`
```sh
influxd --new-meta-store=false
```
---
## --new-meta-store-read-only
Toggle read-only mode for the new meta store.
If `true`, reads are duplicated between old and new meta stores
(if [new meta store](#new-meta-store) is enabled).
**Default:** `true`
```sh
influxd --new-meta-store-read-only=true
```
---
## --no-tasks
Disable the task scheduler.
If problematic tasks prevent InfluxDB from starting, use this option to start
InfluxDB without scheduling or executing tasks.
```sh
influxd --no-tasks
```
---
## --query-concurrency
Number of queries allowed to execute concurrently.
**Default:** `10`
```sh
influxd --query-concurrency=10
```
---
## --query-initial-memory-bytes
Initial bytes of memory allocated for a query.
**Default:** _equal to_ [query-memory-bytes](#query-memory-bytes)
```sh
influxd --query-initial-memory-bytes=10485760
```
---
## --query-max-memory-bytes
Maximum total bytes of memory allowed for queries.
**Default:** _equal to_ [query-concurrency](#query-concurrency) × [query-memory-bytes](#query-memory-bytes)
```sh
influxd --query-max-memory-bytes=104857600
```
---
## --query-memory-bytes
Maximum bytes of memory allowed for a single query.
**Default:** _unlimited_
{{% note %}}
Must be greater than or equal to [query-initial-memory-bytes](#query-initial-memory-bytes).
{{% /note %}}
```sh
influxd --query-memory-bytes=10485760
```
---
## --query-queue-size
Maximum number of queries allowed in execution queue.
When queue limit is reached, new queries are rejected.
**Default:** `10`
```sh
influxd --query-queue-size=10
```
---
## --reporting-disabled
Disables sending telemetry data to InfluxData.
The [InfluxData telemetry](https://www.influxdata.com/telemetry) page provides

View File

@ -7,6 +7,25 @@ menu:
parent: Release notes
weight: 101
---
## v2.0.0-beta.8 [2020-04-10]
### Features
- Add `influx config` CLI command to switch back to previous activated configuration.
- Introduce new navigation menu.
- Add `-file` option to `influx query` and `influx task` CLI commands.
- Add support for command line options to limit memory for queries.
### Bug Fixes
- Fix card size and layout issues in dashboards index view.
- Fix check graph font and lines defaulting to black causing graph to be unreadable
- Fix text-wrapping display issue and popover sizing bug when adding labels to a resource.
- Respect the now-time of the compiled query if provided.
- Fix spacing between ticks.
- Fix typos in Flux functions list.
### UI Improvements
- Update layout of Alerts page to work on all screen sizes.
- Sort dashboards on Getting Started page by recently modified.
## v2.0.0-beta.7 [2020-03-27]

View File

@ -2,8 +2,9 @@
title: Annotated CSV syntax
list_title: Annotated CSV
description: >
Flux returns raw results in Annotated CSV format and also reads Annotated CSV
using the `csv.from()` function.
InfluxDB and Flux return query results in annotated CSV format.
You can also read annotated CSV directly from Flux with the `csv.from()` function
or write data to InfluxDB using annotated CSV and the `influx write` command.
weight: 103
menu:
v2_0_ref:
@ -14,12 +15,12 @@ aliases:
- /v2.0/reference/annotated-csv/
---
Flux returns raw results in Annotated CSV format and also reads Annotated CSV
using the [`csv.from()` function](/v2.0/reference/flux/stdlib/csv/from/).
InfluxDB and Flux return query results in annotated CSV format.
You can also read annotated CSV directly from Flux with the [`csv.from()` function](/v2.0/reference/flux/stdlib/csv/from/)
or write data to InfluxDB using annotated CSV and the `influx write` command.
CSV tables must be encoded in UTF-8 and Unicode Normal Form C as defined in [UAX15](http://www.unicode.org/reports/tr15/).
Line endings must be CRLF (Carriage Return Line Feed) as defined by the `text/csv`
MIME type in [RFC 4180](https://tools.ietf.org/html/rfc4180).
InfluxDB removes carriage returns before newline characters.
## Examples
@ -59,7 +60,7 @@ Encoding of a table with and without a header row.
{{% /code-tabs %}}
{{% code-tab-content %}}
```js
```sh
result,table,_start,_stop,_time,region,host,_value
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25
@ -68,7 +69,7 @@ my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,east,
{{% /code-tab-content %}}
{{% code-tab-content %}}
```js
```sh
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,east,C,52.62
@ -111,7 +112,7 @@ Encoding of two tables in the same result with the same schema (header row) and
{{% /code-tabs %}}
{{% code-tab-content %}}
```js
```sh
result,table,_start,_stop,_time,region,host,_value
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43
my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25
@ -124,7 +125,7 @@ my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,west,
{{% /code-tab-content %}}
{{% code-tab-content %}}
```js
```sh
,result,table,_start,_stop,_time,region,host,_value
,my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43
,my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25
@ -138,7 +139,7 @@ my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,west,
{{% /code-tab-content %}}
{{< /code-tabs-wrapper >}}
### Dialect options
## Dialect options
Flux supports the following dialect options for `text/csv` format.
@ -150,25 +151,105 @@ Flux supports the following dialect options for `text/csv` format.
| **annotations** | List of annotations to encode (datatype, group, or default). | `empty` |
| **commentPrefix** | String prefix to identify a comment. Always added to annotations. | `#` |
### Annotations
## Annotations
Annotation rows describe column properties, and start with `#` (or commentPrefix value).
The first column in an annotation row always contains the annotation name.
Subsequent columns contain annotation values as shown in the table below.
| Annotation name | Values | Description |
|:-------- |:--------- | :------- |
| **datatype** | a [valid data type](#valid-data-types) | Describes the type of data. |
| **group** | boolean flag `true` or `false` | Indicates the column is part of the group key. |
| **default** | a [valid data type](#valid-data-types) | Value to use for rows with an empty string value. |
| Annotation name | Values | Description |
|:-------- |:--------- | :------- |
| **datatype** | a [data type](#data-types) or [line protocol element](#line-protocol-elements) | Describes the type of data or which line protocol element the column represents. |
| **group** | boolean flag `true` or `false` | Indicates the column is part of the group key. |
| **default** | a value of the column's data type | Value to use for rows with an empty value. |
{{% note %}}
To encode a table with its group key, the `datatype`, `group`, and `default` annotations must be included. If a table has no rows, the `default` annotation provides the group key values.
To encode a table with its [group key](/v2.0/reference/glossary/#group-key),
the `datatype`, `group`, and `default` annotations must be included.
If a table has no rows, the `default` annotation provides the group key values.
{{% /note %}}
##### Example
## Data types
Example encoding of datatype, group, and default annotations.
| Datatype | Flux type | Description |
| :-------- | :--------- | :---------- |
| boolean | bool | "true" or "false" |
| unsignedLong | uint | unsigned 64-bit integer |
| long | int | signed 64-bit integer |
| double | float | IEEE-754 64-bit floating-point number |
| string | string | UTF-8 encoded string |
| base64Binary | bytes | base64 encoded sequence of bytes as defined in RFC 4648 |
| dateTime | time | instant in time, may be followed with a colon : and a description of the format (number, RFC3339, RFC3339Nano) |
| duration | duration | length of time represented as an unsigned 64-bit integer number of nanoseconds |
## Line protocol elements
The `datatype` annotation accepts accepts [data types](#data-types) and **line protocol elements**.
Line protocol elements identify how columns are converted into line protocol when using the
[`influx write` command](/v2.0/reference/cli/influx/write/) to write annotated CSV to InfluxDB.
| Line protocol element | Description |
|:--------------------- |:----------- |
| `measurement` | column value is the measurement |
| `field` _(default)_ | column header is the field key, column value is the field value |
| `tag` | column header is the tag key, column value is the tag value |
| `time` | column value is the timestamp _(alias for `dateTime`)_ |
| `ignore` or`ignored` | column is ignored and not included in line protocol |
### Mixing data types and line protocol elements
Columns with [data types](#data-types) (other than `dateTime`) in the
`#datatype` annotation are treated as **fields** when converted to line protocol.
Columns without a specified data type default to `field` when converted to line protocol
and **column values are left unmodified** in line protocol.
_See an example [below](#example-of-mixing-data-types-line-protocol-elements) and
[line protocol data types and format](/v2.0/reference/syntax/line-protocol/#data-types-and-format)._
### Time columns
A column with `time` or `dateTime` `#datatype` annotations are used as the timestamp
when converted to line protocol.
If there are multiple `time` or `dateTime` columns, the last column (on the right)
is used as the timestamp in line protocol.
Other time columns are ignored and the `influx write` command outputs a warning.
Time column values should be **Unix timestamps** (in an [accepted timestamp precision](/v2.0/write-data/#timestamp-precision)),
**RFC3339**, or **RFC3339Nano**.
##### Example line protocol elements in datatype annotation
```
#datatype measurement,tag,tag,field,field,ignored,time
m,cpu,host,time_steal,usage_user,nothing,time
cpu,cpu1,host1,0,2.7,a,1482669077000000000
cpu,cpu1,host2,0,2.2,b,1482669087000000000
```
Resulting line protocol:
```
cpu,cpu=cpu1,host=host1 time_steal=0,usage_user=2.7 1482669077000000000
cpu,cpu=cpu1,host=host2 time_steal=0,usage_user=2.2 1482669087000000000
```
##### Example of mixing data types line protocol elements
```
#datatype measurement,tag,string,double,boolean,long,unsignedLong,duration,dateTime
#default test,annotatedDatatypes,,,,,,
m,name,s,d,b,l,ul,dur,time
,,str1,1.0,true,1,1,1ms,1
,,str2,2.0,false,2,2,2us,2020-01-11T10:10:10Z
```
Resulting line protocol:
```
test,name=annotatedDatatypes s="str1",d=1,b=true,l=1i,ul=1u,dur=1000000i 1
test,name=annotatedDatatypes s="str2",d=2,b=false,l=2i,ul=2u,dur=2000i 1578737410000000000
```
## Annotated CSV in Flux
Flux requires all annotation and header rows in annotated CSV.
The example below illustrates how to use the [`csv.from()` function](/v2.0/reference/flux/stdlib/csv/from/)
to read annotated CSV in Flux:
```js
import "csv"
@ -177,29 +258,21 @@ csvData = "#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3
#group,false,false,false,false,false,false,false,false
#default,,,,,,,,
,result,table,_start,_stop,_time,region,host,_value
,my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43
,my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25
,my-result,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,east,C,52.62
,my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,west,A,62.73
,my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,west,B,12.83
,my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,west,C,51.62
,,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,east,A,15.43
,,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,east,B,59.25
,,0,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,east,C,52.62
,,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,west,A,62.73
,,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:20Z,west,B,12.83
,,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,west,C,51.62
"
csv.from(csv: csvData)
```
### Valid data types
| Datatype | Flux type | Description |
| :-------- | :--------- | :---------- |
| boolean | bool | a truth value, one of "true" or "false" |
| unsignedLong | uint | an unsigned 64-bit integer |
| long | int | a signed 64-bit integer |
| double | float | an IEEE-754 64-bit floating-point number |
| string | string | a UTF-8 encoded string |
| base64Binary | bytes | a base64 encoded sequence of bytes as defined in RFC 4648 |
| dateTime | time | an instant in time, may be followed with a colon : and a description of the format |
| duration | duration | a length of time represented as an unsigned 64-bit integer number of nanoseconds |
{{% warn %}}
Flux only supports [data types](#data-types) in the `#datatype` annotation.
It does **does not** support [line protocol elements](#line-protocol-elements).
{{% /warn %}}
## Errors
@ -218,7 +291,7 @@ If an error occurs:
Encoding for an error with the datatype annotation:
```csv
```
#datatype,string,long
,error,reference
,Failed to parse query,897
@ -226,7 +299,7 @@ Encoding for an error with the datatype annotation:
Encoding for an error that occurs after a valid table has been encoded:
```csv
```
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,string,string,double
,result,table,_start,_stop,_time,region,host,_value
,my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:00Z,west,A,62.73
@ -234,7 +307,7 @@ Encoding for an error that occurs after a valid table has been encoded:
,my-result,1,2018-05-08T20:50:00Z,2018-05-08T20:51:00Z,2018-05-08T20:50:40Z,west,C,51.62
```
```csv
```
#datatype,string,long
,error,reference,query terminated: reached maximum allowed memory limits,576
```

View File

@ -16,15 +16,14 @@ command line interface (CLI).
## Create a token in the InfluxDB UI
1. Click the **Load Data** icon in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Tokens**.
{{< nav-icon "disks" >}}
2. Click **Tokens**.
3. Click **{{< icon "plus" >}} Generate** and select a token type
2. Click **{{< icon "plus" >}} Generate** and select a token type
(**Read/Write Token** or **All Access Token**).
4. In the window that appears, enter a description for your token in the **Description** field.
5. If generating a **read/write token**:
3. In the window that appears, enter a description for your token in the **Description** field.
4. If generating a **read/write token**:
- Search for and select buckets to read from in the **Read** pane.
- Search for and select buckets to write to in the **Write** pane.
5. Click **Save**.

View File

@ -17,12 +17,11 @@ have access to your InfluxDB instance.
## Delete tokens in the InfluxDB UI
1. Click the Click the **Load Data** icon in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Tokens**.
{{< nav-icon "disks" >}}
2. Click **Tokens**. All of your account's tokens appear.
3. Hover over the token you want to delete and click **Delete** and **Confirm**.
2. Hover over the token you want to delete and click **Delete** and **Confirm**.
## Delete tokens using the influx CLI

View File

@ -15,19 +15,17 @@ Update an authentication token's description using the InfluxDB user interface (
## Update a token in the InfluxDB UI
1. Click the **Load Data** icon in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Tokens**.
{{< nav-icon "disks" >}}
2. Click **Tokens**. All of your account's tokens appear.
3. Click the pencil icon {{< icon "pencil" >}} next to the token's name in the **Description** column.
4. Update the token description, then click anywhere else to save.
2. Click the pencil icon {{< icon "pencil" >}} next to the token's name in the **Description** column.
3. Update the token description, then click anywhere else to save.
## Enable or disable a token
1. Click the **Load Data** icon in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Tokens**.
{{< nav-icon "disks" >}}
2. Click **Tokens**. All of your account's tokens appear.
3. Click the **{{< icon "toggle-green" >}} Status** toggle.
2. Click the **{{< icon "toggle-green" >}} Status** toggle.

View File

@ -16,12 +16,11 @@ command line interface (CLI).
## View tokens in the InfluxDB UI
1. Click the **Load Data** icon in the navigation bar.
1. In the navigation menu on the left, select **Data (Load Data)** > **Tokens**.
{{< nav-icon "disks" >}}
2. Click **Tokens**. All of your account's tokens appear.
3. Click a token name from the list to view the token and a summary of access permissions.
2. Click a token name from the list to view the token and a summary of access permissions.
## View tokens using the influx CLI

View File

@ -12,7 +12,7 @@ weight: 203
## Control at the dashboard level
Use dashboard controls in the upper right to update your dashboard.
Use dashboard controls in the upper left to update your dashboard.
### Add a cell

View File

@ -14,7 +14,7 @@ weight: 201
## Create a new dashboard
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}
@ -24,7 +24,7 @@ weight: 201
**To import an existing dashboard**:
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}
@ -38,7 +38,7 @@ weight: 201
**To create a dashboard from a template in the dashboards page**:
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}
@ -62,7 +62,7 @@ weight: 201
## Clone a dashboard
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}
@ -79,7 +79,7 @@ weight: 201
You can also send data to your dashboard directly from the Data Explorer. For details, [Explore metrics](/v2.0/visualize-data/explore-metrics).
#### Add a note to your dashboard
1. From your dashboard, click **{{< icon "note" >}} Add Note** in the upper right.
1. From your dashboard, click **{{< icon "note" >}} Add Note** in the upper left.
2. Enter your note in the window that appears. You can use Markdown syntax to format your note.
3. To preview your Markdown formatting, click the **Preview** option.
4. Click **Save**.

View File

@ -11,7 +11,7 @@ weight: 204
To delete a dashboard from the InfluxDB user interface (UI):
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}

View File

@ -15,7 +15,7 @@ InfluxDB lets you export dashboards from the InfluxDB user interface (UI).
## Export a dashboard
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}

View File

@ -16,7 +16,7 @@ The InfluxDB user interface (UI) allows you to move seamlessly between using the
Flux builder or templates and manually editing the query.
Choose between [visualization types](/v2.0/visualize-data/visualization-types/) for your query.
To open the **Data Explorer**, click the **Data Explorer** icon in the navigation bar:
To open the **Data Explorer**, click the **Explore** (**Data Explorer**) icon in the left navigation menu:
{{< nav-icon "data-explorer" >}}
@ -26,7 +26,7 @@ Flux is InfluxData's functional data scripting language designed for querying,
analyzing, and acting on time series data.
See [Get started with Flux](/v2.0/query-data/get-started) to learn more about Flux.
1. Click the **Data Explorer** icon in the sidebar.
1. In the navigation menu on the left, select **Explore* (**Data Explorer**).
{{< nav-icon "data-explorer" >}}
@ -48,14 +48,10 @@ See [Get started with Flux](/v2.0/query-data/get-started) to learn more about Fl
Select from available [visualization types](/v2.0/visualize-data/visualization-types/) or enable the **View Raw Data** option to view all of your query's results.
1. Select a visualization type from the dropdown menu in the upper-left.
Select a visualization type from the dropdown menu in the upper-left.
{{< img-hd src="/img/2-0-visualization-dropdown.png" title="Visualization dropdown" />}}
2. Select the **Visualization** tab at the bottom of the **Data Explorer**.
For details about all of the available visualization options, see
[Visualization types](/v2.0/visualize-data/visualization-types/).
## Control your dashboard cell
To open the cell editor overlay, click the gear icon in the upper right of a cell and select **Configure**.
@ -65,7 +61,7 @@ To open the cell editor overlay, click the gear icon in the upper right of a cel
Toggle the **View Raw Data** {{< icon "toggle" >}} option to see your data in table format instead of a graph. Use this option when data can't be visualized using a visualization type.
{{< img-hd src="/img/2-0-controls-view-raw-data.png" alt="View raw data" />}}
{{< img-hd src="/img/beta-8-raw-data.png" alt="View raw data" />}}
### Save as CSV
@ -75,7 +71,7 @@ Click the CSV icon to save the cells contents as a CSV file.
Select how frequently to refresh the dashboard's data. By default, refreshing is paused.
{{< img-hd src="/img/2-0-controls-refresh-interval.png" alt="Select refresh interval" />}}
{{< img-hd src="/img/beta-8-interval-dropdown.png" alt="Select refresh interval" />}}
### Manually refresh dashboard

View File

@ -14,11 +14,10 @@ weight: 104
Labels are a way to add visual metadata to dashboards, tasks, and other items in the InfluxDB UI.
To manage labels:
1. Click the **Settings** icon in the navigation bar.
- In the navigation menu on the left, select **Settings** > **Labels**.
{{< nav-icon "settings" >}}
2. Click **Labels**.
#### Create a label
1. Click **{{< icon "plus" >}} Create Label**.

View File

@ -13,7 +13,7 @@ weight: 201
## Create a template from an existing dashboard
1. Click the **Dashboards** icon in the navigation bar.
1. In the navigation menu on the left, select **Boards** (**Dashboards**).
{{< nav-icon "dashboards" >}}
@ -28,11 +28,10 @@ weight: 201
Only [user templates](/v2.0/visualize-data/templates/#dashboard-template-types) can be cloned.
{{% /note %}}
1. Click the **Settings** icon in the left navigation.
1. In the navigation menu on the left, select **Settings** > **Templates**.
{{< nav-icon "settings" >}}
2. Select the **Templates** tab.
3. Select **User Templates**.
{{< img-hd src="/img/2-0-templates-type-select.png" alt="Select User Templates" />}}
@ -42,11 +41,10 @@ Only [user templates](/v2.0/visualize-data/templates/#dashboard-template-types)
## Import an existing dashboard template
1. Click the **Settings** icon in the left navigation.
1. In the navigation menu on the left, select **Settings** > **Templates**.
{{< 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.

View File

@ -13,10 +13,9 @@ weight: 203
To delete a template in the InfluxDB UI:
1. Click the **Settings** icon in the left navigation.
1. In the navigation menu on the left, select **Settings** > **Templates**.
{{< nav-icon "settings" >}}
2. Select the **Templates** tab.
3. Hover over the name of the template you want to delete, then click **{{< icon "trash" >}}**.
3. Click **Delete** to delete your dashboard.

View File

@ -13,11 +13,10 @@ weight: 202
To create a new dashboard from an InfluxDB dashboard template:
1. Click the **Settings** icon in the left navigation.
1. In the navigation menu on the left, select **Settings** > **Templates**.
{{< nav-icon "settings" >}}
2. Select the **Templates** tab.
3. Select the [template type](/v2.0/visualize-data/templates/#dashboard-template-types).
{{< img-hd src="/img/2-0-templates-type-select.png" alt="Select User Templates" />}}

View File

@ -12,11 +12,10 @@ weight: 202
To view templates in the InfluxDB userface (UI):
1. Click the **Settings** icon in the left navigation.
1. In the navigation menu on the left, select **Settings** > **Templates**.
{{< nav-icon "settings" >}}
2. Select the **Templates** tab.
3. Select templates to view:
{{< img-hd src="/img/2-0-templates-type-select.png" alt="Select User Templates" />}}

View File

@ -13,7 +13,7 @@ menu:
The **Gauge** visualization displays the most recent value for a time series in a gauge.
{{< img-hd src="/img/2-0-visualizations-gauge-example.png" alt="Gauge example" />}}
{{< img-hd src="/img/2-0-visualizations-gauge-example-8.png" alt="Gauge example" />}}
Select the **Gauge** option from the visualization dropdown in the upper right.
@ -64,4 +64,4 @@ from(bucket: "example-bucket")
```
###### Visualization options for pressure gauge
{{< img-hd src="/img/2-0-visualizations-guage-pressure.png" alt="Pressure guage example" />}}
{{< img-hd src="/img/2-0-visualizations-gauge-pressure-8.png" alt="Pressure guage example" />}}

View File

@ -18,7 +18,7 @@ related:
The **Graph + Single Stat** view displays the specified time series in a line graph
and overlays the single most recent value as a large numeric value.
{{< img-hd src="/img/2-0-visualizations-line-graph-single-stat-example.png" alt="Line Graph + Single Stat example" />}}
{{< img-hd src="/img/2-0-visualizations-line-graph-single-stat-example-8.png" alt="Line Graph + Single Stat example" />}}
Select the **Graph + Single Stat** option from the visualization dropdown in the upper right.
@ -92,5 +92,5 @@ from(bucket: "example-bucket")
r._field == "used_percent"
)
```
###### Memory usage visualization
{{< img-hd src="/img/2-0-visualizations-graph-single-stat-mem.png" alt="Graph + Single Stat Memory Usage Example" />}}
###### Memory allocations visualization
{{< img-hd src="/img/2-0-visualizations-graph-single-stat-mem-8.png" alt="Graph + Single Stat Memory Usage Example" />}}

View File

@ -14,7 +14,7 @@ menu:
The Graph visualization provides several types of graphs, each configured through
the [Graph controls](#graph-controls).
{{< img-hd src="/img/2-0-visualizations-line-graph-example.png" alt="Line Graph example" />}}
{{< img-hd src="/img/2-0-visualizations-line-graph-example-8.png" alt="Line Graph example" />}}
Select the **Graph** option from the visualization dropdown in the upper right.
@ -59,13 +59,13 @@ the visualization dropdown.
## Graph Examples
##### Graph with linear interpolation
{{< img-hd src="/img/2-0-visualizations-line-graph-example.png" alt="Line Graph example" />}}
{{< img-hd src="/img/2-0-visualizations-line-graph-example-8.png" alt="Line Graph example" />}}
##### Graph with smooth interpolation
{{< img-hd src="/img/2-0-visualizations-line-graph-smooth-example.png" alt="Step-Plot Graph example" />}}
{{< img-hd src="/img/2-0-visualizations-line-graph-smooth-example-8.png" alt="Step-Plot Graph example" />}}
##### Graph with step interpolation
{{< img-hd src="/img/2-0-visualizations-line-graph-step-example.png" alt="Step-Plot Graph example" />}}
{{< img-hd src="/img/2-0-visualizations-line-graph-step-example-8.png" alt="Step-Plot Graph example" />}}
<!-- ##### Stacked Graph example
{{< img-hd src="/img/2-0-visualizations-stacked-graph-example.png" alt="Stacked Graph example" />}} -->

View File

@ -13,7 +13,7 @@ menu:
The **Single Stat** view displays the most recent value of the specified time series as a numerical value.
{{< img-hd src="/img/2-0-visualizations-single-stat-example.png" alt="Single stat example" />}}
{{< img-hd src="/img/2-0-visualizations-single-stat-example-8.png" alt="Single stat example" />}}
Select the **Single Stat** option from the visualization dropdown in the upper right.
@ -62,4 +62,4 @@ from(bucket: "example-bucket")
```
###### Memory usage as a single stat
{{< img-hd src="/img/2-0-visualizations-single-stat-memor.png" alt="Graph + Single Stat Memory Usage Example" />}}
{{< img-hd src="/img/2-0-visualizations-single-stat-example-8.png" alt="Graph + Single Stat Memory Usage Example" />}}

View File

@ -9,6 +9,12 @@ menu:
v2_0:
name: Write data
v2.0/tags: [write, line protocol]
related:
- /v2.0/write-data/use-telegraf/
- /v2.0/api/#tag/Write, InfluxDB API /write endpoint
- /v2.0/reference/syntax/line-protocol
- /v2.0/reference/syntax/annotated-csv
- /v2.0/reference/cli/influx/write
---
Collect and write time series data to InfluxDB using [line protocol](/v2.0/reference/syntax/line-protocol),
@ -87,10 +93,9 @@ To quickly start writing data, use the provided user interface.
where you're hosting the UI (by default, **localhost:9999**).
- _**InfluxDB 2.0 Cloud**_:
In your browser, go to https://cloud2.influxdata.com/.
2. Click **Load Data** in the navigation menu on the left.
3. Select **Buckets**.
4. Under the bucket you want to write data to, click **{{< icon "plus" >}} Add Data**.
5. Select from the following options:
2. In the navigation menu on the left, select **Data** (**Load Data**) > **Buckets**.
3. Under the bucket you want to write data to, click **{{< icon "plus" >}} Add Data**.
4. Select from the following options:
- [Configure Telegraf Agent](#configure-telegraf-agent)
- [Line Protocol](#line-protocol)
@ -114,7 +119,7 @@ To configure a Telegraf agent, see [Automatically create a Telegraf configuratio
- **Enter Manually:**
Select the time precision of your data.
Manually enter line protocol.
2. Click **Continue**.
2. Click **Write Data**.
A message indicates whether data is successfully written to InfluxDB.
3. To add more data or correct line protocol, click **Previous**.
4. Click **Finish**.
@ -133,26 +138,45 @@ To scrape metrics, see [Create a scraper](/v2.0/write-data/scrape-data/manage-sc
From the command line, use the [`influx write` command](/v2.0/reference/cli/influx/write/) to write data to InfluxDB.
Include the following in your command:
| Requirement | Include by |
|:----------- |:---------- |
| Organization | Use the `-o`,`--org`, or `--org-id` flags. |
| Bucket | Use the `-b`, `--bucket`, or `--bucket-id` flags. |
| Precision | Use the `-p`, `--precision` flag. |
| Authentication token | Set the `INFLUX_TOKEN` environment variable or use the `t`, `--token` flag. |
| Line protocol | Write a single line as a string or pass a file path prefixed with `@`. |
| Requirement | Include by |
|:----------- |:---------- |
| Organization | Use the `-o`,`--org`, or `--org-id` flags. |
| Bucket | Use the `-b`, `--bucket`, or `--bucket-id` flags. |
| Precision | Use the `-p`, `--precision` flag. |
| Authentication token | Set the `INFLUX_TOKEN` environment variable or use the `t`, `--token` flag. |
| Data | Write data using **line protocol** or **annotated CSV**. Pass a file with the `-f`, `--file` flag. |
##### Example influx write commands
_See [Line protocol](/v2.0/reference/syntax/line-protocol/) and [Annotated CSV](/v2.0/reference/syntax/annotated-csv)_
To write a single data point, for example, run
#### Example influx write commands
##### Write a single line of line protocol
```sh
influx write -b bucketName -o orgName -p s 'myMeasurement,host=myHost testField="testData" 1556896326'
influx write \
-b bucketName \
-o orgName \
-p s \
'myMeasurement,host=myHost testField="testData" 1556896326'
```
To write data in line protocol from a file, try
##### Write line protocol from a file
```sh
influx write \
-b bucketName \
-o orgName \
-p s \
--format=lp
-f /path/to/line-protocol.txt
```
influx write -b bucketName -o orgName -p s @/path/to/line-protocol.txt
##### Write annotated CSV from a file
```sh
influx write \
-b bucketName \
-o orgName \
-p s \
--format=csv
-f /path/to/data.csv
```
### InfluxDB API

View File

@ -13,11 +13,10 @@ weight: 301
Create a new scraper in the InfluxDB user interface (UI).
## Create a scraper in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data** (**Load Data**) > **Scrapers**.
{{< nav-icon "load data" >}}
2. Click **Scrapers**.
3. Click **{{< icon "plus" >}} Create Scraper**.
4. Enter a **Name** for the scraper.
5. Select a **Bucket** to store the scraped data.

View File

@ -13,10 +13,9 @@ weight: 303
Delete a scraper from the InfluxDB user interface (UI).
## Delete a scraper from the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data** (**Load Data**) > **Scrapers**.
{{< nav-icon "load data" >}}
2. Click **Scrapers**.
3. Hover over the scraper you want to delete and click the **{{< icon "delete" >}}** icon.
4. Click **Delete**.

View File

@ -18,11 +18,9 @@ To modify either, [create a new scraper](/v2.0/write-data/scrape-data/manage-scr
{{% /note %}}
## Update a scraper in the InfluxDB UI
1. Click **Load Data** in the navigation bar.
1. In the navigation menu on the left, select **Data** (**Load Data**) > **Scrapers**.
{{< nav-icon "load data" >}}
2. Click **Scrapers**.
3. Hover over the scraper you would like to update and click the **{{< icon "pencil" >}}**
that appears next to the scraper name.
3. Hover over the scraper you would like to update and click the **{{< icon "pencil" >}}** that appears next to the scraper name.
4. Enter a new name for the scraper. Press Return or click out of the name field to save the change.

View File

@ -30,11 +30,10 @@ for using Telegraf with InfluxDB v2.0._
## Create a Telegraf configuration
1. Open the InfluxDB UI _(default: [localhost:9999](http://localhost:9999))_.
2. Click **Load Data** in the left navigation menu.
2. In the navigation menu on the left, select **Data** (**Load Data**) > **Telegraf**.
{{< nav-icon "load data" >}}
3. Select **Telegraf**.
4. Click **{{< icon "plus" >}} Create Configuration**.
5. In the **Bucket** dropdown, select the bucket where Telegraf will store collected data.
6. Select one or more of the available plugin groups and click **Continue**.

View File

@ -12,11 +12,10 @@ weight: 303
To delete a Telegraf configuration:
1. Click **Load Data** in the left navigation menu.
1. In the navigation menu on the left, select **Data** (**Load Data**) > **Telegraf**.
{{< nav-icon "load data" >}}
2. Select **Telegraf**.
3. Hover over the configuration you want to delete, click the **{{< icon "trash" >}}**
icon, and click **Delete**.

View File

@ -17,11 +17,10 @@ of a Telegraf configuration created in the UI.
You cannot modify Telegraf settings in existing Telegraf configurations through the UI.
{{% /note %}}
1. Click **Load Data** in left the navigation bar.
1. In the navigation menu on the left, select **Data** (**Load Data**) > **Telegraf**.
{{< nav-icon "load data" >}}
2. Select **Telegraf**.
3. Hover over the configuration you want to edit and click **{{< icon "pencil" >}}**
to update the name or description.
4. Press Return or click out of the editable field to save your changes.

View File

@ -14,11 +14,10 @@ weight: 301
View Telegraf configuration information in the InfluxDB user interface (UI):
1. Click **Load Data** in the navigation bar.
- In the navigation menu on the left, select **Data** (**Load Data**) > **Telegraf**.
{{< nav-icon "load data" >}}
2. Click **Telegraf**.
### View and download the telegraf.conf
To view the actual `telegraf.conf` associated with the configuration,

View File

@ -3,7 +3,7 @@
<h4 id="related-articles">Related articles</h4>
<ul>
{{ range .Params.related }}
{{ if in . "http" }}
{{ if or (in . "http") (in . "/v2.0/api") }}
{{ $link := replaceRE `\,\s(.*)$` "" . }}
{{ $title := replaceRE `^(\S*\,\s)` "" . }}
<li><a href="{{ $link }}" target="_blank">{{ $title }}</a></li>

View File

@ -0,0 +1,35 @@
| Flag | Description | Input type |
|:---- |:----------- | :--------: |
| `--assets-path` | Override default assets by serving from a specific directory (developer mode) | string |
| `--bolt-path` | Path to boltdb database (default `~/.influxdbv2/influxd.bolt`) | string |
| `--e2e-testing` | Add /debug/flush endpoint to clear stores; used for end-to-end tests (default `false`) | |
| `--engine-path` | Path to persistent engine files (default `~/.influxdbv2/engine`) | string |
| `-h`, `--help` | Help for the `influxd` command | |
| `--http-bind-address` | Bind address for the REST HTTP API (default `:9999`) | string |
| `--log-level` | Supported log levels are debug, info, and error (default `info`) | string |
| `--new-meta-store` | Enables the new meta store | |
| `--new-meta-store-read-only` | Toggle read-only mode for the new meta store and duplicate reads between old and new store (default `true`) | |
| `--no-tasks` | Disables the task scheduler | |
| `--query-concurrency` | Number of queries allowed to execute concurrently (default `10`) | integer |
| `--query-initial-memory-bytes` | Initial bytes of memory allocated for a query (default = `query-memory-bytes`) | integer |
| `--query-max-memory-bytes` | Maximum total bytes of memory allowed for queries (default = `query-concurrency` × `query-memory-bytes`) | integer |
| `--query-memory-bytes` | Maximum bytes of memory allowed for a single query (default _unlimited_, must be >= `query-initial-memory-bytes`) | integer |
| `--query-queue-size` | Maximum number of queries allowed in execution queue (default `10`) | integer |
| `--reporting-disabled` | Disable sending telemetry data to **https:<nolink>//telemetry.influxdata.com** | |
| `--secret-store` | Data store for secrets (bolt or vault) (default `bolt`) | string |
| `--session-length` | TTL in minutes for newly created sessions (default `60`) | integer |
| `--session-renew-disabled` | Disables automatically extending session TTL on request | |
| `--store` | Data store for REST resources (bolt or memory) (default `bolt`) | string |
| `--tls-cert` | Path to TLS certificate file | string |
| `--tls-key` | Path to TLS private key file | string |
| `--tracing-type` | Supported tracing types (log or jaeger) | string |
| `--vault-addr ` | Address of the Vault server (example: `https://127.0.0.1:8200/`) | string |
| `--vault-cacert` | Path to a PEM-encoded CA certificate file | string |
| `--vault-capath` | Path to a directory of PEM-encoded CA certificate files | string |
| `--vault-client-cert` | Path to a PEM-encoded client certificate | string |
| `--vault-client-key` | Path to an unencrypted, PEM-encoded private key which corresponds to the matching client certificate | string |
| `--vault-max-retries` | Maximum number of retries when encountering a 5xx error code (default `2`) | integer |
| `--vault-client-timeout` | Vault client timeout (default `60s`) | duration |
| `--vault-skip-verify` | Skip certificate verification when communicating with Vault | |
| `--vault-tls-server-name` | Name to use as the SNI host when connecting to Vault via TLS | string |
| `--vault-token` | Vault authentication token | string |

View File

@ -1,33 +1,79 @@
{{ $navIcon := lower (.Get 0) | default "influx" }}
{{ if or (eq $navIcon "admin") (eq $navIcon "influx") }}
{{ .Scratch.Set "icon" "influx-icon" }}
{{ .Scratch.Set "title" "username (org-name)" }}
{{ else if or (eq $navIcon "data-explorer") (eq $navIcon "data explorer") }}
{{ .Scratch.Set "short_title" "User" }}
{{ else if or (eq $navIcon "data-explorer") (eq $navIcon "data explorer") (eq $navIcon "explore") }}
{{ .Scratch.Set "icon" "data-explorer" }}
{{ .Scratch.Set "title" "Data Explorer" }}
{{ else if eq $navIcon "dashboards" }}
{{ .Scratch.Set "short_title" "Explore" }}
{{ else if or (eq $navIcon "dashboards") (eq $navIcon "boards") }}
{{ .Scratch.Set "icon" "dashboards" }}
{{ .Scratch.Set "title" "Dashboards" }}
{{ .Scratch.Set "short_title" "Dashboards" }}
{{ .Scratch.Set "short_title" "Boards" }}
{{ else if eq $navIcon "tasks" }}
{{ .Scratch.Set "icon" "calendar" }}
{{ .Scratch.Set "title" "Tasks" }}
{{ .Scratch.Set "short_title" "Tasks" }}
{{ else if or (eq $navIcon "monitor") (eq $navIcon "alerts") (eq $navIcon "bell") }}
{{ .Scratch.Set "icon" "bell" }}
{{ .Scratch.Set "title" "Monitoring & Alerting" }}
{{ else if or (eq $navIcon "disks") (eq $navIcon "load data") (eq $navIcon "load-data") }}
{{ .Scratch.Set "title" "Alerts" }}
{{ .Scratch.Set "short_title" "Alerts" }}
{{ else if or (eq $navIcon "disks") (eq $navIcon "load data") (eq $navIcon "load-data") (eq $navIcon "data") }}
{{ .Scratch.Set "icon" "disks-nav" }}
{{ .Scratch.Set "title" "Load Data" }}
{{ .Scratch.Set "short_title" "Data" }}
{{ else if eq $navIcon "settings" }}
{{ .Scratch.Set "icon" "wrench-nav" }}
{{ .Scratch.Set "title" "Settings" }}
{{ else if or (eq $navIcon "feedback") }}
{{ .Scratch.Set "icon" "nav-chat" }}
{{ .Scratch.Set "title" "Feedback" }}
{{ .Scratch.Set "short_title" "Settings" }}
{{ else if or (eq $navIcon "org") (eq $navIcon "organization") }}
{{ .Scratch.Set "icon" "users-trio" }}
{{ .Scratch.Set "title" "Organization" }}
{{ .Scratch.Set "short_title" "Org" }}
{{ end }}
{{ $icon := .Scratch.Get "icon" }}
{{ $title := .Scratch.Get "title" }}
<div class="nav-icon">
<strong><span class ="icon icon-ui-{{ $icon }}"></span> {{ $title }}</strong>
</div>
{{ if or (eq $navIcon "profile") (eq $navIcon "account") }}
<div class="nav-items">
<div class="nav-item account small">
<div class="acct-inner">
<div class="acct-icon">
<span class="icon icon-ui-user"></span>
</div>
</div>
</div>
<div class="nav-item account">
<div class="acct-inner">
<div class="acct-icon"><span class="icon icon-ui-user"></span></div>
<div class="acct-label">
<div class="username">username</div>
<div class="orgname">org-name</div>
</div>
</div>
</div>
</div>
{{ else }}
{{ $icon := .Scratch.Get "icon" }}
{{ $title := .Scratch.Get "title" }}
{{ $shortTitle := .Scratch.Get "short_title" }}
<div class="nav-items">
<div class="nav-item">
<div class="nav-icon small">
<span class ="icon icon-ui-{{ $icon }}"></span>
<div class="nav-icon-label">
{{ $shortTitle }}
</div>
</div>
</div>
<div class="nav-item">
<div class="nav-icon">
<span class ="icon icon-ui-{{ $icon }}"></span>
<div class="nav-icon-label">
{{ $title }}
</div>
</div>
</div>
</div>
{{ end }}

BIN
static/fonts/icomoon.eot Executable file → Normal file

Binary file not shown.

2
static/fonts/icomoon.svg Executable file → Normal file
View File

@ -69,7 +69,9 @@
<glyph unicode="&#xe93b;" glyph-name="bell" horiz-adv-x="961" d="M944.923 49.267l-35.234 60.859c-12.813 22.422-25.625 41.641-35.234 57.656-35.234 54.453-54.453 86.484-67.266 150.547l-44.844 214.61c-25.625 137.735-147.344 233.828-285.078 237.031h-6.406c-140.938 0-265.86-105.703-288.282-246.641l-28.828-182.578c-12.813-86.484-38.438-131.328-86.484-208.203-6.406-12.813-16.016-25.625-22.422-41.641l-22.422-41.641c-25.625-41.641-25.625-96.094 0-137.735 19.219-44.844 67.266-70.469 118.516-70.469h214.61c12.813-54.453 64.063-96.094 124.922-96.094 57.656 0 112.109 41.641 124.922 96.094h214.61c48.047 0 99.297 25.625 124.922 70.469 22.422 41.641 22.422 96.094 0 137.735zM820.001-62.843h-679.063c-32.031 0-54.453 35.234-38.438 64.063l22.422 41.641c60.859 105.703 105.703 160.156 121.719 281.875l28.828 182.578c19.219 92.891 96.094 166.563 195.391 166.563h3.203c92.891 0 172.969-67.266 188.985-156.953l44.844-214.61c19.219-105.703 57.656-147.344 115.313-240.235l35.234-60.859c16.016-28.828-6.406-64.063-38.438-64.063z" />
<glyph unicode="&#xe93c;" glyph-name="disks-nav" d="M512 706.909c-162.909 0-325.818-41.891-325.818-139.636v-558.545c0-97.745 162.909-139.636 325.818-139.636s325.818 41.891 325.818 139.636v558.545c0 97.745-162.909 139.636-325.818 139.636zM744.727 385.745c-13.964-13.964-93.091-51.2-232.727-51.2s-218.764 37.236-232.727 51.2v79.127c60.509-23.273 148.945-37.236 232.727-37.236s172.218 13.964 232.727 37.236v-79.127zM744.727 199.564c-13.964-13.964-93.091-51.2-232.727-51.2s-218.764 37.236-232.727 51.2v79.127c60.509-23.273 148.945-37.236 232.727-37.236s172.218 13.964 232.727 37.236v-79.127zM512 613.818c130.327 0 204.8-27.927 228.073-46.545-23.273-18.618-97.745-46.545-228.073-46.545s-204.8 27.927-228.073 46.545c23.273 18.618 97.745 46.545 228.073 46.545zM512-37.818c-139.636 0-218.764 32.582-232.727 51.2v79.127c60.509-23.273 148.945-37.236 232.727-37.236s172.218 13.964 232.727 37.236v-79.127c-13.964-18.618-93.091-51.2-232.727-51.2z" />
<glyph unicode="&#xe93d;" glyph-name="wrench-nav" d="M186.182-177.455c-37.236 0-74.473 13.964-97.745 41.891-55.855 55.855-55.855 144.291 0 195.491l339.782 339.782c-4.655 27.927-9.309 51.2-9.309 74.473 0 153.6 125.673 279.273 279.273 279.273 41.891 0 88.436-9.309 130.327-32.582 13.964-4.655 23.273-18.618 23.273-32.582s-4.655-27.927-13.964-41.891l-121.018-121.018 37.236-37.236 121.018 121.018c9.309 9.309 23.273 13.964 41.891 13.964 13.964-4.655 27.927-9.309 32.582-23.273 18.618-41.891 27.927-83.782 27.927-125.673 0-153.6-125.673-279.273-279.273-279.273-23.273 0-46.545 4.655-69.818 9.309l-339.782-339.782c-27.927-27.927-65.164-41.891-102.4-41.891zM698.182 660.364c-102.4 0-186.182-83.782-186.182-186.182 0-23.273 4.655-46.545 13.964-69.818 4.655-18.618 4.655-37.236-9.309-51.2l-363.055-363.055c-18.618-18.618-18.618-46.545 0-65.164s46.545-18.618 65.164 0l363.055 363.055c13.964 13.964 32.582 18.618 51.2 9.309 23.273-9.309 46.545-13.964 69.818-13.964 102.4 0 186.182 83.782 186.182 186.182 0 4.655 0 9.309 0 18.618l-97.745-97.745c-18.618-18.618-46.545-18.618-65.164 0l-102.4 102.4c-13.964 9.309-18.618 18.618-18.618 32.582s4.655 23.273 13.964 32.582l97.745 102.4c-4.655 0-13.964 0-18.618 0z" />
<glyph unicode="&#xe93e;" glyph-name="user" d="M589.376 290.783c58.938 28.188 99.938 89.688 99.938 161.438 0 99.938-79.438 179.375-179.375 179.375s-179.375-79.438-179.375-179.375c0-71.75 41-130.688 99.938-161.438-84.563-20.5-176.813-120.438-176.813-233.188v-146.063c0-12.813 7.688-25.625 17.938-25.625h476.625c10.25 0 17.938 10.25 17.938 25.625v146.063c0 112.75-89.688 210.125-176.813 233.188z" />
<glyph unicode="&#xe93f;" glyph-name="cloud" d="M835.77-54.33h-646.539c-102.5 0-189.231 86.731-189.231 197.115 0 78.846 43.365 149.808 110.385 181.346 0 7.885 0 15.769 0 23.654 0 149.808 114.327 268.077 256.25 268.077 86.731 0 165.577-43.365 212.885-118.269 23.654 7.885 47.308 11.827 70.961 11.827 102.5 0 189.231-70.961 216.827-173.461 90.674-15.769 157.692-94.615 157.692-193.174 0-110.385-82.789-197.115-189.231-197.115zM366.635 537.016c-98.558 0-177.404-86.731-177.404-189.231 0-15.769 0-27.596 3.942-43.365l7.885-39.423-35.481-7.885c-51.25-11.827-86.731-59.135-86.731-114.327 0-67.019 47.308-118.269 110.385-118.269h646.539c59.135 0 110.385 51.25 110.385 118.269s-47.308 118.269-110.385 118.269h-39.423l-3.942 35.481c-7.885 78.846-70.961 137.981-141.924 137.981-23.654 0-47.308-7.885-70.961-19.711l-39.423-23.654-19.711 39.423c-23.654 67.019-86.731 106.442-153.75 106.442z" />
<glyph unicode="&#xe940;" glyph-name="users-trio" horiz-adv-x="1332" d="M1181.314 224.158c43.563 41 69.188 102.5 69.188 164 0 130.688-102.5 230.625-230.625 230.625-46.125 0-89.688-12.813-125.563-35.875-20.5 107.625-112.75 187.063-228.063 187.063-117.875 0-207.563-82-228.063-189.625-35.875 23.063-76.875 35.875-125.563 35.875-130.688 0-230.625-102.5-230.625-230.625 0-64.063 25.625-120.438 69.188-164-82-46.125-151.188-143.5-151.188-253.688v-156.313c0-35.875 25.625-66.625 56.375-66.625h509.938c33.313 0 58.938 30.75 61.5 66.625v87.125h76.875v-87.125c0-35.875 25.625-66.625 56.375-66.625h509.938c33.313 0 58.938 30.75 61.5 66.625v156.313c0 110.188-71.75 207.563-151.188 256.25zM545.813-178.155h-474.063v143.5c0 97.375 84.563 192.188 158.875 210.125 15.375 5.125 25.625 17.938 28.188 33.313s-5.125 30.75-20.5 38.438c-51.25 28.188-84.563 79.438-84.563 138.375 0 87.125 66.625 153.75 153.75 153.75s153.75-69.188 153.75-153.75c0-58.938-33.313-112.75-84.563-138.375-12.813-7.688-20.5-23.063-20.5-38.438s12.813-28.188 28.188-33.313c76.875-20.5 158.875-110.188 158.875-210.125v-143.5zM704.688-24.405h-76.875c-2.563 107.625-74.313 199.875-151.188 248.563 23.063 20.5 41 48.688 53.813 79.438 17.938 12.813 35.875 23.063 56.375 25.625 15.375 5.125 25.625 17.938 28.188 33.313s-5.125 30.75-20.5 38.438c-20.5 12.813-41 28.188-53.813 46.125-5.125 23.063-15.375 46.125-28.188 64.063-2.563 7.688-2.563 17.938-2.563 25.625 0 87.125 66.625 153.75 153.75 153.75s153.75-69.188 153.75-153.75c0-58.938-33.313-112.75-84.563-138.375-12.813-7.688-20.5-23.063-20.5-38.438s12.813-28.188 28.188-33.313c23.063-5.125 48.688-20.5 71.75-38.438 12.813-25.625 28.188-48.688 48.688-66.625-84.563-46.125-153.75-140.938-156.313-246zM1250.501-178.155h-474.063v143.5c0 97.375 84.563 192.188 158.875 210.125 15.375 5.125 25.625 17.938 28.188 33.313s-5.125 30.75-20.5 38.438c-51.25 28.188-84.563 79.438-84.563 138.375 0 87.125 66.625 153.75 153.75 153.75s153.75-69.188 153.75-153.75c0-58.938-33.313-112.75-84.563-138.375-12.813-7.688-20.5-23.063-20.5-38.438s12.813-28.188 28.188-33.313c76.875-20.5 158.875-110.188 158.875-210.125v-143.5z" />
<glyph unicode="&#xe941;" glyph-name="nav-chat" d="M729.327-192.311c-7.885 0-15.769 3.942-23.654 7.885l-279.904 208.942h-275.961c-59.135 0-110.385 55.192-110.385 110.385v346.924c0 59.135 55.192 114.327 110.385 114.327h721.443c59.135 0 114.327-55.192 114.327-114.327v-346.924c0-59.135-55.192-110.385-110.385-110.385h-106.442v-177.404c0-15.769-7.885-27.596-23.654-35.481-3.942-3.942-7.885-3.942-15.769-3.942zM149.808 517.305c-11.827 0-31.539-19.711-31.539-35.481v-346.924c0-15.769 19.711-31.539 31.539-31.539h287.789c7.885 0 15.769-3.942 23.654-7.885l224.711-169.52v137.981c0 23.654 15.769 39.423 39.423 39.423h145.865c15.769 0 31.539 19.711 31.539 31.539v346.924c3.942 15.769-15.769 35.481-27.596 35.481h-725.385z" />
<glyph unicode="&#xe94c;" glyph-name="map2" d="M672 576l-320 128-352-128v-768l352 128 320-128 352 128v768l-352-128zM384 622.27l256-102.4v-630.138l-256 102.398v630.14zM64 531.172l256 93.090v-631.8l-256-93.088v631.798zM960-19.172l-256-93.092v631.8l256 93.090v-631.798z" />
<glyph unicode="&#xe956;" glyph-name="eye-closed" d="M1017.313 272.845c-41 76.875-99.938 143.5-171.688 192.188l-128.125-128.125c7.688-23.063 12.813-48.688 12.813-76.875 0-120.438-97.375-217.813-217.813-217.813-28.188 0-53.813 5.125-76.875 12.813l-82-82c51.25-12.813 105.063-20.5 158.875-20.5 215.25 0 407.438 112.75 504.813 292.125l7.688 12.813-7.688 15.375zM179.375 52.47l128.125 128.125c-7.688 23.063-12.813 48.688-12.813 76.875 0 120.438 97.375 217.813 217.813 217.813 28.188 0 53.813-5.125 76.875-12.813l82 82c-51.25 12.813-105.063 20.5-158.875 20.5-217.813 0-410-112.75-504.813-292.125l-7.688-15.375 7.688-15.375c41-76.875 99.938-140.938 171.688-189.625zM128.125-165.343c-10.25 0-20.5 2.563-28.188 10.25-15.375 15.375-15.375 38.438 0 53.813l768.751 768.751c15.375 15.375 38.438 15.375 53.813 0s15.375-38.438 0-53.813l-768.751-768.751c-5.125-7.688-15.375-10.25-25.625-10.25z" />

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 59 KiB

BIN
static/fonts/icomoon.ttf Executable file → Normal file

Binary file not shown.

BIN
static/fonts/icomoon.woff Executable file → Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB