updates to address PR feedback

pull/1893/head
Scott Anderson 2020-11-25 20:29:11 -07:00
parent 6472a83bce
commit 3491d38e99
2 changed files with 8 additions and 14 deletions

View File

@ -20,14 +20,8 @@ related:
The `influx write` command writes data to InfluxDB via stdin or from a specified file. The `influx write` command writes data to InfluxDB via stdin or from a specified file.
Write data using [line protocol](/influxdb/v2.0/reference/syntax/line-protocol), Write data using [line protocol](/influxdb/v2.0/reference/syntax/line-protocol),
[annotated CSV](/influxdb/v2.0/reference/syntax/annotated-csv), or [annotated CSV](/influxdb/v2.0/reference/syntax/annotated-csv), or
[extended annotated CSV](/influxdb/v2.0/reference/syntax/annotated-csv/). [extended annotated CSV](/influxdb/v2.0/reference/syntax/annotated-csv/extended/).
If you write CSV data, CSV annotations determine how the data translates into line protocol.
{{% note %}}
When writing CSV data, the `influx write` command uses CSV annotations to
translate the data into line protocol.
For more information about CSV annotations, see [annotated CSV](/influxdb/v2.0/reference/syntax/annotated-csv)
and [extended annotated CSV](/influxdb/v2.0/reference/syntax/annotated-csv/).
{{% /note %}}
## Usage ## Usage
``` ```

View File

@ -638,7 +638,7 @@ input:
To collect data on an InfluxDB 2.x instance running on localhost, the configuration for the To collect data on an InfluxDB 2.x instance running on localhost, the configuration for the
Prometheus input plugin would be: Prometheus input plugin would be:
<div class="keep-url"></div> <div class="keep-url"></div>
```toml ```toml
@ -653,7 +653,7 @@ input:
id: influxdb_listener id: influxdb_listener
description: | description: |
The InfluxDB Listener input plugin listens for requests sent The InfluxDB Listener input plugin listens for requests sent
according to the [InfluxDB HTTP API](/influxdb/v1.8/guides/writing_data/). according to the [InfluxDB HTTP API](/influxdb/v1.8/guides/write_data/).
The intent of the plugin is to allow Telegraf to serve as a proxy, or router, The intent of the plugin is to allow Telegraf to serve as a proxy, or router,
for the HTTP `/write` endpoint of the InfluxDB HTTP API. for the HTTP `/write` endpoint of the InfluxDB HTTP API.
@ -662,8 +662,8 @@ input:
> >
> This plugin is compatible with **InfluxDB 1.x** only. > This plugin is compatible with **InfluxDB 1.x** only.
The `/write` endpoint supports the `precision` query parameter and can be set The `/write` endpoint supports the `precision` query parameter and can be
to one of `ns`, `u`, `ms`, `s`, `m`, `h`. All other parameters are ignored and set to `ns`, `u`, `ms`, `s`, `m`, `h`. Other parameters are ignored and
defer to the output plugins configuration. defer to the output plugins configuration.
When chaining Telegraf instances using this plugin, `CREATE DATABASE` requests When chaining Telegraf instances using this plugin, `CREATE DATABASE` requests
@ -681,8 +681,8 @@ input:
The intent of the plugin is to allow Telegraf to serve as a proxy, or router, The intent of the plugin is to allow Telegraf to serve as a proxy, or router,
for the HTTP `/api/v2/write` endpoint of the InfluxDB HTTP API. for the HTTP `/api/v2/write` endpoint of the InfluxDB HTTP API.
The `/api/v2/write` endpoint supports the `precision` query parameter and can be set The `/api/v2/write` endpoint supports the `precision` query parameter and
to one of `ns`, `u`, `ms`, or `s`. All other parameters are ignored and can be set to `ns`, `u`, `ms`, or `s`. Other parameters are ignored and
defer to the output plugins configuration. defer to the output plugins configuration.
introduced: 1.16.0 introduced: 1.16.0
tags: [linux, macos, windows, data-stores] tags: [linux, macos, windows, data-stores]