Config Telegraf - several files


I would like to add several configuration files telegraf.conf into telegraf.d, instead of having only one telegraf.conf… Tags or Global Tags are they mandatory to do that ?

Thanks in advance for your reply and best Regards

I’m not sure about what’s the question… but the global tags section is just like any other section of the config, you can omit it, leave it empty, or use it… I think it should appear only once in the whole config but I’m not sure about what happens if more are defined (error? override? merge?)

A strange, undefined behavior. Ideally the agent section is in the first file telegraf read’s in. Those settings are applied and are used setting up other plugins that are read until a second agent section is read in. Which may cause inconsistent behavior from all your plugins.

1 Like