I am new to influx/telegraf. Currently I have telegraf working with a single telegraf.conf
file in the /etc/telegraf
directory. I’d like to simplify the conf a little bit by making multiple conf files, outputs.conf
, ipmi-inputs.conf
, vsphere.conf
. I have divided up my working telegraf.conf
into these files and put them in the /etc/telegraf.d
directory. Does the /etc/telegraf/telegraf.conf
need to be removed? Do I need to specify telegraf to look in the /etc/telegraf.d
for the conf files?
We still actually require /etc/telegraf/telegraf.conf
to exist, even though it is possible for it to be completely empty. Usually I leave the [agent]
section in this file and place all plugins in telegraf.d
.
The deb and rpm are setup to start the telegraf
service with --config-directory /etc/telegraf/telegraf.d
by default, but if you are running by hand you will need to specify this option.