Skip to content

Commit ff5c4b8

Browse files
committed
fluentd: add --disable-input-metrics option
Signed-off-by: Shizuo Fujita <[email protected]>
1 parent f4eb3d2 commit ff5c4b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/fluent/command/fluentd.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,12 @@
155155
cmd_opts[:strict_config_value] = b
156156
}
157157

158-
op.on('--enable-input-metrics', "Enable input plugin metrics on fluentd", TrueClass) {|b|
159-
cmd_opts[:enable_input_metrics] = b
158+
op.on('--enable-input-metrics', "Enable input plugin metrics on fluentd", TrueClass) {
159+
cmd_opts[:enable_input_metrics] = true
160+
}
161+
162+
op.on('--disable-input-metrics', "Disable input plugin metrics on fluentd", TrueClass) {
163+
cmd_opts[:enable_input_metrics] = false
160164
}
161165

162166
op.on('--enable-size-metrics', "Enable plugin record size metrics on fluentd", TrueClass) {|b|

0 commit comments

Comments
 (0)