Im trying to have one config file-> telegraf.conf and other in /etc/telegraf/telegraf.d/
named test.conf with one swap metric.
After that i restart the service: systemctl restart telegraf
Using systemctl, what i have to do to read both config files, because using that i only read telegraf.conf.
On most systems, the default locations are /etc/telegraf/telegraf.conf for the main configuration file and /etc/telegraf/telegraf.d for the directory of configuration files.
So, in this case, My telegraf should read it test.conf too.
I read the post named “multiple telegraf configs” but i would like to have any daemon and use both configuration together in different files.
Im so confused about iT, what am i missing?
If I run telegraf:
telegraf --config-directory /etc/telegraf
then i combine both im not recording this configuration like by default.