diff --git a/example/out_forward_buf_file.conf b/example/out_forward_buf_file.conf
index 4b5fffdbb8..299506d1fe 100644
--- a/example/out_forward_buf_file.conf
+++ b/example/out_forward_buf_file.conf
@@ -3,6 +3,11 @@
tag test
+
+
@type forward
buffer_path /tmp/fluentd.forward
diff --git a/lib/fluent/plugin/in_monitor_agent.rb b/lib/fluent/plugin/in_monitor_agent.rb
index c0dbd52742..cb371b7641 100644
--- a/lib/fluent/plugin/in_monitor_agent.rb
+++ b/lib/fluent/plugin/in_monitor_agent.rb
@@ -297,9 +297,9 @@ def shutdown
end
MONITOR_INFO = {
- 'output_plugin' => 'is_a?(::Fluent::Output)', # deprecated. Use plugin_category instead
- 'buffer_queue_length' => '@buffer.queue_size',
- 'buffer_total_queued_size' => '@buffer.total_queued_chunk_size',
+ 'output_plugin' => 'is_a?(::Fluent::Plugin::Output)',
+ 'buffer_queue_length' => '@buffer.queue.size',
+ 'buffer_total_queued_size' => '@buffer.stage_size + @buffer.queue_size',
'retry_count' => '@num_errors',
}
@@ -420,11 +420,11 @@ def get_monitor_info(pe, opts={})
def plugin_category(pe)
case pe
- when Fluent::Input
+ when Fluent::Plugin::Input
'input'.freeze
- when Fluent::Output
+ when Fluent::Plugin::Output, Fluent::Plugin::BareOutput
'output'.freeze
- when Fluent::Filter
+ when Fluent::Plugin::Filter
'filter'.freeze
else
'unknown'.freeze