2018-09-18 02:45:08 +08:00
|
|
|
# InfluxDB Line Protocol
|
|
|
|
|
|
|
|
|
|
There are no additional configuration options for InfluxDB [line protocol][]. The
|
|
|
|
|
metrics are parsed directly into Telegraf metrics.
|
|
|
|
|
|
2020-12-22 03:37:50 +08:00
|
|
|
[line protocol]: https://docs.influxdata.com/influxdb/latest/reference/syntax/line-protocol/
|
2018-09-18 02:45:08 +08:00
|
|
|
|
2021-11-25 02:45:25 +08:00
|
|
|
## Configuration
|
2018-09-18 02:45:08 +08:00
|
|
|
|
|
|
|
|
```toml
|
|
|
|
|
[[inputs.file]]
|
|
|
|
|
files = ["example"]
|
|
|
|
|
|
|
|
|
|
## Data format to consume.
|
|
|
|
|
## Each data format has its own unique set of configuration options, read
|
|
|
|
|
## more about them here:
|
|
|
|
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
data_format = "influx"
|
|
|
|
|
```
|