Telegraf - how to ignore config error(s)

We are using telegraf to collect a few prometheus metrics out of the box. Now we want to extend the configurability of telegraf to our customers, so that they can bring-in their own scrape endpoints & services (as part of prometheus input plugin).
How do we do config isolation in this case, so that the customer’s config does not bring down telegraf instance we are running for collecting a few other prom metrics by default.

  1. I understand i can run multiple instances of prom input plugin (one for us, and one for our customer’s custom config). If i do it, how do i seperate config. I see i can use multiple config files, but i rewally need to restrict them to provide only config relevant to prom input plugin.
  2. If customers provide invalid config, i would like to just ignore just that input plugin and continue to run the other plugins. Is that an option for the agent that is configurable ?
  3. Instead of seperate config files, can i embed a file reference in TOML to point to another file?
  4. Is there any API/packages to validate config per plugin ?

ex:- something like below.
[[inputs.prometheus]]
@/opt/customers_prom_input_config_filoe.conf

Looking for guidances as i want to stay away from running multiple instances of telegraf in the same node for different configurations for the purposes of config isolation isolation, as we are running in a container and very resource sensitive to run another instance of telegraf.

Hi @vishiy , welcome to our community ,

Telegraf will fail to startup if it encounters an invalid config …

If you have only one Telegraf , there will always be a risk that customers bring your Telegraf down.

Even if customers add new valid config , Telegraf must be restarted .