Disabling outputs.influxdb from the .d configuration dir for clean configuration management

By default a Telegraf installation has the [[outputs.influxdb]] plugin enabled.
I’d like to disable that plugin and enable a different one ([[outputs.http]]).

The practice we usually like to employ in cases like this is not changing the original config file (i.e /etc/telegraf/telegraf.conf) but only applying specific overrides in the .d/ config directory; that way we don’t have to store huge configuration files in our code base that no one understands but only the diff that applies our configuration.

Is there any way to disable outputs.influxdb from a file in .d (e.g /etc/telegraf/telegraf.d/my_config.conf) ?

Hi @moolit,

I do not believe this is possible, no.

You could generate a new empty configuration with:

telegraf --output-filter false --input-filter false config > /etc/telegraf/telegraf.conf

If this isn’t sufficient, I can raise with someone else on the team that may have a better idea :+1: