Closed JohnSmall02 closed 1 month ago
I'll post this real quick, as a smart repair it is possible to install the ruby lib influxdb right after installing the fluent-plugin-influxdb and its working just fine. Versions are then fluentd - 1.15.2 fluentd-plugin-influxdb - 2.0.0 (lib) influxdb - 0.8.1 ruby - 3.1.2
gem install influxdb -v 0.8.1 --no-document
conclusioin, when the runtime_dependency could be changed to include the latest version of the ruby lib influxdb then we're good to go I guess.
kthxbye
Thank god, I was starting to go crazy! In case anyone wonders, if you are using the fluent helm chart you can list the influxdb lib as a plugin.
After updating my fluentd to the latest version (1.15.x), this influxdb plugin makes fluentd fail trying to login to an influxdb.
I use the fluentd image from docker-hub what es provided here -> fluent/fluentd adding some plugins using a Dockerfile and create my own image with it.
The last working version consists out of these fluentd - 1.14.6 fluentd-plugin-influxdb - 2.0.0 (lib) influxdb - 0.7.0 ruby - 2.7.6
everything is just working fine with that.
Failing combination: fluentd - 1.15.2 fluentd-plugin-influxdb - 2.0.0 (lib) influxdb - 0.7.0 ruby - 3.1.2
After upgrading the image to fluentd 1.15.x there is also new version of ruby 3.1.x and with using the same configuration fluentd fails with an exception when trying to login to an influxdb, errorlog:
find the exception at the bottom part of the log. line to focus on is
2022-09-27 09:50:28 +0000 [error]: #0 unexpected error error_class=ArgumentError error="wrong number of arguments (given 1, expected 0)"
Here we an see that the exception is actually coming from the lib influxdb 0.7.0, and after investigating it turns out that there would be a newer version of the lib available, and in the commit message we can find that in influxdb 0.8.1 there was ruby 3.x support added what sounds to be a nice approach to check this out.The newer version is not used by the fluent-plugin-influxdb as the lib influxdb in 0.8.1 did not exist in 2019 when the plugin was released, and the runtime_dependency is set to "influxdb", [">= 0.7.0", "< 0.8"]
link to ruby lib influxdb link to fluent/fluentd github for the docker image
Hope we can put this plugin forward with the current version of ruby and fluentd.
kind regards.