docs: Fixes for input/sql readme (#10498)

This commit is contained in:
Jérome Perrin 2022-01-25 00:03:29 +09:00 committed by GitHub
parent 10ef264f46
commit 9ff4330bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -73,13 +73,13 @@ generate it using `telegraf --usage <plugin-name>`.
## Column names containing fields (explicit types)
## Convert the given columns to the corresponding type. Explicit type conversions take precedence over
## the automatic (driver-based) conversion below.
## NOTE: Columns should not be specified for multiple types or the resulting type is undefined.
## the automatic (driver-based) conversion below.
## NOTE: Columns should not be specified for multiple types or the resulting type is undefined.
# field_columns_float = []
# field_columns_int = []
# field_columns_uint = []
# field_columns_bool = []
# field_columns_string = []
# field_columns_uint = []
# field_columns_bool = []
# field_columns_string = []
## Column names containing fields (automatic types)
## An empty include list is equivalent to '[*]' and all returned columns will be accepted. An empty
@ -151,8 +151,8 @@ configuration
[[inputs.sql.query]]
query="SELECT * FROM guests"
measurement = "nation"
tag_cols_include = ["name"]
field_cols_exclude = ["name"]
tag_columns_include = ["name"]
field_columns_exclude = ["name"]
```
Telegraf will output the following metrics