Telegraf (agent)

Telegraf is InfluxData’s data collection agent for collecting and reporting metrics. Its vast library of input plugins and “plug-and-play” architecture lets you quickly and easily collect metrics from many different sources. This article describes how to use Telegraf to collect and store data in InfluxDB v2.0.

For a list of available plugins, see Telegraf plugins.

Requirements

Configure Telegraf

Telegraf input and output plugins are enabled and configured in Telegraf’s configuration file (telegraf.conf). You have the following options for configuring Telegraf:

Automatically configure Telegraf

Use the InfluxDB UI to automatically generate a Telegraf configuration, then start Telegraf using the generated configuration file.

Manually configure Telegraf

Update existing or create new Telegraf configurations to use the influxdb_v2 output plugin to write to InfluxDB v2.0. Start Telegraf using the custom configuration.

Use Telegraf plugins

Use Telegraf plugins to capture and write metrics to InfluxDB.