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