Skip to content

Commit 8f309dc

Browse files
authored
fix(parser/csv): resolve linter issues (#10093)
1 parent 62a05b2 commit 8f309dc

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

plugins/parsers/csv/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The `csv` parser creates metrics from a document containing comma separated
44
values.
55

6-
### Configuration
6+
## Configuration
77

88
```toml
99
[[inputs.file]]
@@ -78,7 +78,8 @@ values.
7878
## The field will be skipped entirely where it matches any values inserted here.
7979
csv_skip_values = []
8080
```
81-
#### csv_timestamp_column, csv_timestamp_format
81+
82+
### csv_timestamp_column, csv_timestamp_format
8283

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

106107
Config:
108+
107109
```toml
108110
[[inputs.file]]
109111
files = ["example"]
@@ -114,13 +116,15 @@ Config:
114116
```
115117

116118
Input:
117-
```
119+
120+
```shell
118121
measurement,cpu,time_user,time_system,time_idle,time
119122
cpu,cpu0,42,42,42,2018-09-13T13:03:28Z
120123
```
121124

122125
Output:
123-
```
126+
127+
```shell
124128
cpu cpu=cpu0,time_user=42,time_system=42,time_idle=42 1536869008000000000
125129
```
126130

0 commit comments

Comments
 (0)