Back to Influxdb

Write data with output plugins

content/telegraf/v1/configure_plugins/output_plugins/_index.md

latest1017 B
Original Source

Output plugins define where Telegraf delivers collected metrics. Send metrics to InfluxDB or to a variety of other datastores, services, and message queues, including Graphite, OpenTSDB, Datadog, Kafka, MQTT, and NSQ.

For a complete list of output plugins and links to their detailed configuration options, see output plugins.

Output plugins and data formats

Output plugins control where metrics go. Many output plugins also support data formats (serializers) that control how metrics are formatted before writing.

Configure a serializer using the data_format option in your output plugin:

toml
[[outputs.http]]
  url = "http://example.com/metrics"
  data_format = "json"

Some output plugins (like influxdb_v2 or prometheus_client) use a fixed format and don't support data_format. Others (like file, http, kafka) support multiple serializers.

For available serializers and their options, see output data formats.