I have looked over the docs and could very well have missed it but I can’t find much on the topic on automating the configuration of the agent.
Specifically, I’m talking about things like modifying alarms and so forth.
I raise this because I’m not clear on how one could easily (and reliably) make changes to agent config.
The documentation I’ve seen so far says that to make changes I need to run the edit-config script-wrapper (e.g. “sudo ./edit-config go.d/lighttpd.conf”). *
So my first challenge is that the config file doesn’t exist until I’ve run the appropriate command for the module/plugin that I want to customise.
So I can’t just run a script to edit the file. And even if I could the main netdata.conf file really isn’t structured well for editing via shell script etc.
I presume I can’t just just dump my version of the config in there?
Even if I could just dump a file over that’s really not a very elegant solution since now I have to start managing the documentation process for the config files over and above documentation of what settings I need.
So I guess I’m asking if you guys have/intend to expose a commandline interface for configuration.
If not then is there an easy way to automate the pre-population of the module config files?
Bearing in mind that whatever option works best it needs to be something that doesn’t need messing with when the agent gets upgraded or when the agent get a new module/plugin.
N.B. it would be worth updating the docs to explain why and when to use the script-wrapper. i.e. use it on first run to create the config file but does it really need to be used for subsequent edits?