Can we put the script directly into /var/log/CPotlpAgent/backup/scripts/ from the start? I understand simply having the script there isn't enough, but is it safe to add them from there? It so, that would make deployment a little easier. Just rsync the custom metrics from some repository to there, and run the command to add them. If the system already has the custom metrics, it now has the latest version. If it didn't, they get added.
Is it safe to add a cache directory under there? For example, I want to add a metric for the installed jumbo. That's relatively expensive to get, and it changes infrequently, so I want to cache it and return the cached value. I can just throw it in /tmp or something, but it would be nice for clarity to be able to keep the cache with the scripts.