Telegraf input data formats
This page documents an earlier version of Telegraf. Telegraf v1.26 is the latest stable version. View this page in the v1.26 documentation.
Telegraf contains many general purpose plugins that support parsing input data
using a configurable parser into metrics. This allows, for example, the
kafka_consumer
input plugin to process messages in either InfluxDB Line
Protocol or in JSON format. Telegraf supports the following input data formats:
- InfluxDB Line Protocol
- collectd
- CSV
- Dropwizard
- Graphite
- Grok
- JSON
- logfmt
- Nagios
- Value, ie: 45 or “booyah”
- Wavefront
Any input plugin containing the data_format
option can use it to select the
desired parser:
[[inputs.exec]]
## Commands array
commands = ["/tmp/test.sh", "/usr/bin/mycollector --foo=bar"]
## measurement name suffix (for separating different commands)
name_suffix = "_mycollector"
## 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 = "json"
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Telegraf and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.