Proper way to edit a plugin configuration?

Started by ml35, August 17, 2023, 03:02:40 PM

Previous topic - Next topic
Hi,
I'd like to reduce os-netdata update frequency from default to 5 seconds, in order to relax the load on the resources.

On a regular distro setup I usually do this by cd'ing into the netdata configuration directory, then sudo ./edit-config netdata.conf and add/modify the "update_every" parameter.

Can I do this in opnsense as well, and if I do it, will I lose the configuration on a future opnsense/netdata upgrade?

Thanks

You can do this via CLI if netdata UI itself doesnt offer it

Looks like the update_every is never set by our plugin. The best would be a feature request or better yet a PR for plugin inclusion.

You can't edit the config with the plugin because the plugin will overwrite it again. You could use the netdata package without the plugin, but then it won't try to start it automatically and config changes are all manual.


Cheers,
Franco

Oh, I totally forgot that we added config templating .. thought there was only the enable button

Mostly just enable as you said, but it does rewrite netadata.conf in relation to that setting ;)


Cheers,
Franco