Warning! This page documents an earlier version of Telegraf, which is no longer actively developed. Telegraf v1.8 is the most recent stable version of Telegraf.
Create a configuration file with every plugin and output
telegraf -sample-config > telegraf.conf
Create a configuration file with specific plugins and outputs
telegraf -sample-config -filter <pluginname>[:<pluginname>] -outputfilter <outputname>[:<outputname>] > telegraf.conf
Note: In most cases, you will need to edit the configuration file to match your needs.