I've recently started checking Collectd system stats collector after using Intel Snap for a while. By far it seems that it is less dynamic then Snapd collector but maybe I'm simply not fully aware of its capabilities. I've got few questions regarding its use:
Thanks!
(1) Most collectd plugins support some sort of metric selection, and an inverse selection mechanism, which you can find in the plugin documentation. Also, there is the collectd "chain" plugin, that can be used to rename or filter metrics.
(2) No. collectd does not natively support dynamic changes. See: https://github.com/collectd/collectd/issues/1005
(3) A couple ways. Look at the man pages for collectd if you aren't finding what you need on the collectd wiki. If you want to check the running collectd process, then a good way to see the metrics is to enable a unixsock plugin, and use the "collectdctl listval" for metric introspection
(4) Pros and cons to both
collectd plugins are more frequently available via the OS distribution packages
snap supports dynamic configuration (see answer to #2)
collectd and snap do not support the same set of plugins. The presence or lack of plugin will be a clear advanatage/disadvantage based on use case. The method of building a plugin also differs greatly, so that could be a factor as well.