Configuring Telegraf

Warning! This page documents an old version of Telegraf, which is no longer actively developed. Telegraf v1.4 is the most recent stable version of Telegraf.

Configuring Telegraf

Create a configuration file with default input and output plugins.

Every plugin will be in the file, but most will be commented.

telegraf -sample-config > telegraf.conf

Create a configuration file with specific inputs and outputs

telegraf -sample-config -input-filter <pluginname>[:<pluginname>] -output-filter <outputname>[:<outputname>] > telegraf.conf

For more advanced configuration details, see the Telegraf configuration doc

Note: In most cases, you will need to edit the configuration file to match your needs.

Running Telegraf on Windows

For information about how to run Telegraf as a Windows service, see the Telegraf Windows Service doc