Skip to content

Commit cc02dec

Browse files
authored
multi_output: fix metrics name (#4979)
**Which issue(s) this PR fixes**: Fixes # **What this PR does / why we need it**: In multi_output, two metrics are created with `emit_records`. https://github.com/fluent/fluentd/blob/0b72a77d23a667c2c5c648e457e16fc8835c2134/lib/fluent/plugin/multi_output.rb#L94-L95 Since it is not possible to distinguish between them, this PR will fix the name. **Docs Changes**: Not needed. **Release Note**: The same as the title. Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent ac95d0b commit cc02dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/plugin/multi_output.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def configure(conf)
9191
super
9292

9393
@num_errors_metrics = metrics_create(namespace: "fluentd", subsystem: "multi_output", name: "num_errors", help_text: "Number of count num errors")
94-
@emit_count_metrics = metrics_create(namespace: "fluentd", subsystem: "multi_output", name: "emit_records", help_text: "Number of count emits")
94+
@emit_count_metrics = metrics_create(namespace: "fluentd", subsystem: "multi_output", name: "emit_count", help_text: "Number of count emits")
9595
@emit_records_metrics = metrics_create(namespace: "fluentd", subsystem: "multi_output", name: "emit_records", help_text: "Number of emit records")
9696
@emit_size_metrics = metrics_create(namespace: "fluentd", subsystem: "multi_output", name: "emit_size", help_text: "Total size of emit events")
9797
@enable_size_metrics = !!system_config.enable_size_metrics

0 commit comments

Comments
 (0)