-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Unable to load external plugins -- plugin: not implemented #7027
Comments
Hi @danielnelson , I tried to use your sample plugin code to try out external plugin support and ran into issues. Is it something I'm doing wrong? |
I think the package telegraf in a container section doesn't look right. Long term you will probably want a Dockerfile, but for testing you could mount the
Let me know the exact spot or error you get. |
The make target,
Hopefully that makes sense, and thanks for your help. |
Sorry, it's probably not clear that I forked your repo and added a few things to make for easy reproduction. My repo is: https://github.com/mildebrandt/telegraf-plugins |
I think you need CGO_ENABLED=1 on the telegraf build, it turns out that this is required but doesn't appear to be enabled in the .deb checked in to your repo. This should be the default if you build on a Linux system. |
Thanks @danielnelson , enabling cgo did work. Here's the updated process that works:
Which gives the following output:
Thanks for your help! |
Source: influxdata/telegraf#7027 I wonder how it worked before
When attempting to load an external plugin, I get the following error message:
I built telegraf with the
goplugin
build tag and built a sample external plugin based on https://github.com/danielnelson/telegraf-plugins.Here are the instructions to reproduce the error, also outlined at https://github.com/mildebrandt/telegraf-plugins/blob/master/README.md:
build telegraf
package telegraf in a container
run the plugin
The text was updated successfully, but these errors were encountered: