Send Telegraf metrics to multiple output plugins

#1

Hello All,

I was trying to set up a telemetry system for our product and wanted to make it modular. We used snap-telemetry framework earlier, but seeing as it has been discontinued, we were looking for alternatives.
From my understanding, telegraf could be a pretty good alternative. It have appropriate streaming type input plugins and output plugins for all third-party applications that we care about (like influxDB and prometheus).
I was wondering though like snap, is there a possibility in telegraf to have the plugins be changed on the fly? And be able to mux the metrics from the input plugin to multiple output plugins through a cli/api type configuration?

#2

is there a possibility in telegraf to have the plugins be changed on the fly

Not really, the best way currently is to change the config file and send a SIGHUP. Telegraf will send all data and then restart itself. We have plans to improve this functionality to reduce downtime, but in most cases the interruption caused by reloading is less than a second.

be able to mux the metrics from the input plugin to multiple output plugins through a cli/api type configuration

Telegraf sends all input data to all outputs by default, this can be restricted using the filtering selectors. There isn’t a cli for Telegraf, all changes are made in the configuration file.