You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
output: add metrics for dropped oldest chunk count (#4981)
**Which issue(s) this PR fixes**:
Fixes #
**What this PR does / why we need it**:
When `overflow_action drop_oldest_chunk` is configured, the oldest
buffer chunk will be automatically discarded when the total buffer
capacity is exhausted.
This PR introduces a new metric, `drop_oldest_chunk_count`, which counts
the number of discarded chunks.
**Docs Changes**:
fluent/fluentd-docs-gitbook#582
**Release Note**:
Same as the title
Signed-off-by: Shizuo Fujita <[email protected]>
Copy file name to clipboardExpand all lines: lib/fluent/plugin/output.rb
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,7 @@ def initialize
190
190
@rollback_count_metrics=nil
191
191
@flush_time_count_metrics=nil
192
192
@slow_flush_count_metrics=nil
193
+
@drop_oldest_chunk_count_metrics=nil
193
194
@enable_size_metrics=false
194
195
195
196
# How to process events is decided here at once, but it will be decided in delayed way on #configure & #start
@@ -259,6 +260,7 @@ def configure(conf)
259
260
@rollback_count_metrics=metrics_create(namespace: "fluentd",subsystem: "output",name: "rollback_count",help_text: "Number of rollbacking operations")
260
261
@flush_time_count_metrics=metrics_create(namespace: "fluentd",subsystem: "output",name: "flush_time_count",help_text: "Count of flush time")
261
262
@slow_flush_count_metrics=metrics_create(namespace: "fluentd",subsystem: "output",name: "slow_flush_count",help_text: "Count of slow flush occurred time(s)")
263
+
@drop_oldest_chunk_count_metrics=metrics_create(namespace: "fluentd",subsystem: "output",name: "drop_oldest_chunk_count",help_text: "Number of count that old chunk were discarded with drop_oldest_chunk")
0 commit comments