2022-03-11 06:09:58 +08:00
|
|
|
# Influx Line Protocol
|
2018-09-18 02:45:08 +08:00
|
|
|
|
2022-03-11 06:09:58 +08:00
|
|
|
Parses metrics using the [Influx Line Protocol][].
|
2018-09-18 02:45:08 +08:00
|
|
|
|
2022-03-11 06:09:58 +08:00
|
|
|
[Influx 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"
|
2022-03-11 06:09:58 +08:00
|
|
|
|
|
|
|
|
## Influx line protocol parser
|
|
|
|
|
## 'internal' is the default. 'upstream' is a newer parser that is faster
|
|
|
|
|
## and more memory efficient.
|
|
|
|
|
## influx_parser_version = "internal"
|
2018-09-18 02:45:08 +08:00
|
|
|
```
|