The etc/config.py file is typically installed as something you can't edit. For example, if you're using RPMs, upgrading to next release via RPM will overwrite local changes.
Insofar as you can edit it, you're editing code.
By supporting a configuration file (/etc/tcollector.json) it's easier to have host-specific customization that isn't destroyed by upgrades.
Motivation:
etc/config.py
file is typically installed as something you can't edit. For example, if you're using RPMs, upgrading to next release via RPM will overwrite local changes.By supporting a configuration file (
/etc/tcollector.json
) it's easier to have host-specific customization that isn't destroyed by upgrades.