No need to persist this type of data. We also don't need to allocate a persistent user for telegraf. Also make it a directory because otherwise thre is a potential race condition on startup.
Usage
inventory.instances = {
monitoring = {
module.name = "monitoring";
roles.telegraf.tags.all = {
settings.interfaces = [ "wg-clan" ];
};
};
};
This service will eventually set up a monitoring stack for your clan. For now, only a telegraf role is implemented, which exposes the currently deployed version of your configuration, so it can be used to check for required updates.