Skip to content

Commit

Permalink
fix(parser/csv): resolve linter issues (influxdata#10093)
Browse files Browse the repository at this point in the history
  • Loading branch information
sspaink authored Nov 10, 2021
1 parent 62a05b2 commit 8f309dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions plugins/parsers/csv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The `csv` parser creates metrics from a document containing comma separated
values.

### Configuration
## Configuration

```toml
[[inputs.file]]
Expand Down Expand Up @@ -78,7 +78,8 @@ values.
## The field will be skipped entirely where it matches any values inserted here.
csv_skip_values = []
```
#### csv_timestamp_column, csv_timestamp_format

### csv_timestamp_column, csv_timestamp_format

By default the current time will be used for all created metrics, to set the
time using the JSON document you can use the `csv_timestamp_column` and
Expand All @@ -104,6 +105,7 @@ columns and rows.
### Examples

Config:

```toml
[[inputs.file]]
files = ["example"]
Expand All @@ -114,13 +116,15 @@ Config:
```

Input:
```

```shell
measurement,cpu,time_user,time_system,time_idle,time
cpu,cpu0,42,42,42,2018-09-13T13:03:28Z
```

Output:
```

```shell
cpu cpu=cpu0,time_user=42,time_system=42,time_idle=42 1536869008000000000
```

Expand Down

0 comments on commit 8f309dc

Please sign in to comment.