libs icon indicating copy to clipboard operation
libs copied to clipboard

[BUG] Broken plugins metrics support

Open mrgian opened this issue 8 months ago • 0 comments

libs 0.17.0 introduced the support for plugin-provided metrics in the plugin API. However, this new feature is currently broken and should not be used.

Even if present in the plugin API (https://github.com/falcosecurity/libs/blob/master/userspace/plugin/plugin_api.h), the symbol get_metrics should not be implemented by plugins.

The issue lies in the symbol get_metrics (https://github.com/falcosecurity/libs/blob/master/userspace/plugin/plugin_api.h#L979) not being registered when the plugin is loaded. For this reason sinsp will ignore any metric provided by plugins using this feature.

mrgian avatar May 30 '24 17:05 mrgian