Skip to content
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

Export collectd API #4226

Open
matwey opened this issue Jan 10, 2024 · 0 comments
Open

Export collectd API #4226

matwey opened this issue Jan 10, 2024 · 0 comments

Comments

@matwey
Copy link
Contributor

matwey commented Jan 10, 2024

  • Version of collectd: 5.x and 6.x
  • Operating system / distribution: all OS

This is a feature request to export plugin API.

Currently, collectd provides the python plugin, the way to execute out-of-tree user code as a plugin. The python plugin is not just an replacement for not-yet-written plugins but it also allows the user to collect the data in custom circumstances, for instance some custom hardware or proprietary software, i.e. when writing the in-tree collectd plugin is meaningless.

Unfortunately, writing out-of-tree C plugin is currently more complicated that using Python. For instance, https://github.com/nickbabcock/collectd-rust-plugin#to-build needs to supply all existed collectd API and ask user to choose or guess the version. No need to say that some collectd API updates can be missed in such approach.

What I would expect is collectd/plugin.h installed to the user OS, allowing the user to compile his out-of-tree code and produce dynamically loaded shared object ELF to load from collectd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants