Can I configure Netdata with item-level overrides to the default config files rather than copying the entire config file and modifying it?
For example, if I want to disable the python mysql plugin then I run./edit-config python.d.conf which copies /usr/lib/netdata/conf.d/python.d.conf to /etc/netdata and opens it in vim. I find the line, change it and save the file.
But from now on I am responsible for this 111 line config file. When in future a new version of Netdata comes with changes in python.d.conf I guess I will have to merge the changes manually.
I would prefer to only keep the differences in my configs. I tried creating a config file /etc/netdata/python.d.conf with one line in it mysql: no but this disabled python.d. So I guess it’s not so simple.
So, it is entirely possible to only “define” a subset of the configuration attributes, as the ones that are not defined, will have the default (the one which is commented). One you described, should work, so it would be best if you share the entire configuration file, so we can see what is happening.
What you wrote about comments being defaults is interesting. For example, in the Netdata original conf.d/python.d.conf the line enabled: yes is not a comment. Does this imply that python.d is disabled by default and that I have to keep that line in my python.d.conf file if I want it enabled?
Idk what happened in the end but I’m pleased y’all are pleased with the outcome. I think k0ste’s post articulates the problem I had in mind but, tbh, idk exactly what I had in mind. I just know that I put my MariaDB configs in /etc/mysql/mariadb.conf.d. A few files, each with a few lines that I wrote. Same with most software I configure, I generally don’t need to copy big config files from your source control into mine.
I’m also concerned about health.d. I have eight health.d files in my source control, a total of 818 lines, each file with one or two lines changed relative to the stock version I copied years ago. I imagine Netdata has improved its health algorithms since I copied these files.