【发布时间】:2020-08-15 01:32:52
【问题描述】:
我需要捕获给定进程的文件描述符。这与 collectd 的 processes 插件的功能类似,但需要在 fluentd、google-fluentd 特别是 rails 上实现。
我已经在 /etc/google-fluentd/plugin 目录下添加了我的插件,但运气不好,它没有被注册。我什至在/opt/google-fluentd/embedded/lib/ruby/gems/2.6.0/gems/fluentd-1.7.4/lib/fluent/plugin 下移动了仍然没有运气。出于绝望,我也尝试将 in_tail.rb 重命名为 in_tail2.rb,tail 插件不见了。
2020-08-14 18:28:16 -0700 [error]: fluent/log.rb:362:error: config error file="/etc/google-fluentd/google-fluentd.conf" error_class=Fluent::ConfigError error="Unknown input plugin 'tail'. Run 'gem search -rd fluent-plugin' to find plugins"
这告诉我还有其他地方必须提到插件。认为我可以在 /etc/google-fluentd/plugin 下只写一个文件插件是不是太天真了?
【问题讨论】:
标签: google-cloud-platform fluentd