Telegraf output data formats
In addition to output-specific data formats, Telegraf supports the following set of common data formats that may be selected when configuring many of the Telegraf output plugins.
Carbon2
Use the carbon2
output data format (serializer) to format and output Telegraf metrics as Carbon2 format.
Graphite
Use the graphite
output data format (serializer) to format and output Telegraf metrics as Graphite Message Format.
InfluxDB line protocol
Use the influx
output data format (serializer) to format and output metrics as InfluxDB line protocol format.
JSON
Use the json
output data format (serializer) to format and output Telegraf metrics as JSON documents.
MessagePack
Use the msgpack
output data format (serializer) to convert Telegraf metrics into MessagePack format.
ServiceNow metrics
Use the nowmetric
ServiceNow metrics output data format (serializer) to output Telegraf metrics as ServiceNow Operational Intelligence format.
Splunk metrics
Use the splunkmetric
metric output data format (serializer) to output Telegraf metrics in a format that can be consumed by a Splunk metrics index.
You will be able to identify the plugins with support by the presence of a
data_format
configuration option, for example, in the File (file
) output plugin:
[[outputs.file]]
## Files to write to, "stdout" is a specially handled file.
files = ["stdout"]
## Data format to output.
## 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_OUTPUT.md
data_format = "influx"
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:
Customers with an annual or support contract can contact InfluxData Support.