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 any of InfluxDB Line
Protocol, JSON format, or Apache Avro format.
- Avro
- Binary
- Collectd
- CSV
- Dropwizard
- Graphite
- Grok
- InfluxDB Line Protocol
- JSON
- JSON v2
- Logfmt
- Nagios
- Prometheus
- PrometheusRemoteWrite
- Value, ie: 45 or "booyah"
- Wavefront
- XPath (supports XML, JSON, MessagePack, Protocol Buffers)
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.
data_format = "json"