Inputs catalog is not empty after another deploy
Summary
After redeployment, inputs catalog contains all old configuration files. This could lead to duplicate inputs or unnecessary data collection.
Steps to reproduce
- Deploy one input named for example
input.conf - Redeploy this same input with changed name for example
input_1.conf - Observe that in
inputscatalog are two files namedinput.confandinput_1.conf - Telegraf is running those two inputs unnecessary.
Expected behavior
There should be only one set of inputs inside inputs catalog.
Actual behavior
There are other leftover inputs from previous deployments.
Possible fixes
There should be a catalog listing check, matching only those, which we defined. Alternatively we could clear out inputs catalog each run.
Edited by Krzysztof Babiarz