-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: host metrics are not available running only source plugins #2821
Comments
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
/remove-lifecycle stale |
Pitching one approach to get out of this regression here: falcosecurity/libs#1362 (comment) |
Hey @incertum, long time no see :) I like the idea of a separate linux-lite platform that would skip the process list, but still collect non-process metadata. Having said that, I can't express how much I dislike adding a new mode (and the concept of sinsp modes in general) :) My suggestion would be:
I am going to sidestep the question of which should be the default by making the parameter mandatory, and therefore the caller's problem :D I went through the libs code and the specific mode doesn't seem to matter in this case, so let's try and slowly move towards having no modes (they're effectively a class hierarchy smeared all over the code). Sadly, this will break the sinsp API, but it feels better than adding a new mode value that's only ever used in one place (and would have to be handled in is_plugin or is_live) [side rant: scap does not care about machine_info etc. one bit, except for capture files so this could all happily live in sinsp; this would need a giant-but-ultimately-trivial PR to untangle that I have made several times already but never ended up submitting it because $REASONS] |
@gnosek yes SGTM #2821 (comment) Also thanks for opening the PR, I was gonna suggest that you would be most suited for this clean up ;) re
We are still always going back and forth with what should be in sinsp vs scap. Btw @mrgian is moving more of the metrics stuff to scap in order to make it multi-OS, see the PR falcosecurity/libs#1870. |
Sigh :) That looks like it could use moving libsinsp/metrics_collector.cpp to something like libsinsp/linux/metrics_collector.cpp and some build system changes to avoid I'm not opposed to platform-specific code in libsinsp (honestly, there's little else in there), I'm just opposed to spreading it around the codebase with ifdefs or hidden assumptions. I'd love to see e.g. platform-agnostic interfaces with platform-specific implementations. Ceterum censeo libscap esse delendam :) |
:) looking forward to it! Also thanks for posting on Gianmatteo's PR with few suggestions! |
This was addressed by falcosecurity/libs#1969 Closing for now. If we still see issues we can re-open this issue. |
Describe the bug
After this change, falcosecurity/libs#1362 host metrics will no longer be available when running a source plugin like
k8saduit
. This is a regression and we need to find a way to address it.Metrics extracted with dummy plugin in Falco 0.36.0-rc3
The text was updated successfully, but these errors were encountered: