Skip to content

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

  1. Deploy one input named for example input.conf
  2. Redeploy this same input with changed name for example input_1.conf
  3. Observe that in inputs catalog are two files named input.conf and input_1.conf
  4. 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