Telegraf configuration

I’d like to remove the [[inputs.syslog]] part of the telegraf / prometheus-client configuration in VyOS 1.4. That creates way too much indexing in Prometheus, and we already are using a rsyslog service for log forwarding.

To do so, I commented out the required section in the /usr/share/vyos/templates/telegraf/telegraf.j2 template. But the section still shows in the /run/telegraf/telegraf.conf file when I set up the service. And logs are still in the metrics.

I also tried adding a custom config file /etc/telegraf/telegraf.d/namedrop.conf, with :

[[outputs.prometheus_client]]
namedrop = [‘syslog_*’]

But that doesn’t work either.

Is it possible to modify the telegraf config file ? Am I just not doing it properly ?

Thanks in advance.

Reboot the device after template changing

That was it. It works now. Thanks.

Consider to add a feature request to get this option configurable or/and implement it

Our bug tracker and feature request https://vyos.dev/