draios / sysdig

Linux system exploration and troubleshooting tool with first class support for containers
http://www.sysdig.com/
Other
7.8k stars 728 forks source link

new(userspace/sysdig): split up plugin loading in 2 steps #1849

Closed FedeDP closed 2 years ago

FedeDP commented 2 years ago
* '-H' will mark a plugin as 'to be loaded', and can be called with actual file paths. It accepts a ":init_config" string too.
* '-I' will actually register a previously loaded plugin; if it is a source plugin, it is also set a input source. It accepts a ":open_params" string too.
* '-Il' will list either all plugins (if no plugin was loaded through '-H') or only loaded ones

Therefore, the new proper way to load a plugin is:
`sysdig -H dummy:"{\"jitter\":50}" -I dummy:"{\"start\":1,\"maxEvents\":10}"`

sysdig-CLA-1.0-signed-off-by: Federico Di Pierro nierro92@gmail.com

FedeDP commented 2 years ago

@LucaGuerra i should've fixed everything you pointed out! Thanks!