Skip to content

Commit 98b3da5

Browse files
committed
in_tail: add metrics to know file count monitored by TailWatcher
Signed-off-by: Shizuo Fujita <[email protected]>
1 parent eeb384e commit 98b3da5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/fluent/plugin/in_tail.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ def statistics
814814
'closed_file_count' => @metrics.closed.get,
815815
'rotated_file_count' => @metrics.rotated.get,
816816
'throttled_log_count' => @metrics.throttled.get,
817+
'tracking_file_count' => @tails.size,
817818
})
818819
}
819820
stats

0 commit comments

Comments
 (0)