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
in_tail: add "tracked_file_count" metrics to see how many log files are being tracked (#4980)
**Which issue(s) this PR fixes**:
Fixes #
**What this PR does / why we need it**:
This PR will add a `tracked_file_count` field to the value returned by
statistics method.
This will make it easy to see how many log files are being tracked.
**Docs Changes**:
It appears that there is no documentation at all on plugin-specific
metrics.
Maybe we should add document about in_tail's metrics to
https://docs.fluentd.org/input/tail.
**Release Note**:
Same as the title.
Signed-off-by: Shizuo Fujita <[email protected]>
opened_file_metrics=metrics_create(namespace: "fluentd",subsystem: "input",name: "files_opened_total",help_text: "Total number of opened files")
210
211
closed_file_metrics=metrics_create(namespace: "fluentd",subsystem: "input",name: "files_closed_total",help_text: "Total number of closed files")
211
212
rotated_file_metrics=metrics_create(namespace: "fluentd",subsystem: "input",name: "files_rotated_total",help_text: "Total number of rotated files")
212
213
throttling_metrics=metrics_create(namespace: "fluentd",subsystem: "input",name: "files_throttled_total",help_text: "Total number of times throttling occurs per file when throttling enabled")
# The metrics for currently tracking files. Since the value may decrease, it cannot be represented using the counter type, so 'prefer_gauge: true' is used instead.
215
+
tracked_file_metrics=metrics_create(namespace: "fluentd",subsystem: "input",name: "files_tracked_count",help_text: "Number of tracked files",prefer_gauge: true)
0 commit comments