Skip to content

Commit

Permalink
docs: Fixes for input/sql readme (influxdata#10498)
Browse files Browse the repository at this point in the history
  • Loading branch information
perrinjerome authored Jan 24, 2022
1 parent 10ef264 commit 9ff4330
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/inputs/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ff4330

Please sign in to comment.