OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: ml35 on August 17, 2023, 03:02:40 PM

Title: Proper way to edit a plugin configuration?
Post by: ml35 on August 17, 2023, 03:02:40 PM
Hi,
I'd like to reduce os-netdata update frequency from default to 5 seconds, in order to relax the load (https://learn.netdata.cloud/docs/configuring/how-to-optimize-the-netdata-agent-s-performance#reduce-collection-frequency) 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
Title: Re: Proper way to edit a plugin configuration?
Post by: mimugmail on August 17, 2023, 03:05:19 PM
You can do this via CLI if netdata UI itself doesnt offer it
Title: Re: Proper way to edit a plugin configuration?
Post by: franco on August 17, 2023, 03:06:46 PM
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
Title: Re: Proper way to edit a plugin configuration?
Post by: mimugmail on August 17, 2023, 07:49:14 PM
Oh, I totally forgot that we added config templating .. thought there was only the enable button
Title: Re: Proper way to edit a plugin configuration?
Post by: franco on August 17, 2023, 08:40:31 PM
Mostly just enable as you said, but it does rewrite netadata.conf in relation to that setting ;)


Cheers,
Franco