Tracking number of open file handles by vector #21727
Answered
by
pront
hartfordfive
asked this question in
Q&A
-
Is there a metric that exposes the number of actively open file handles used? For example, I'd like to be able to track the number of open files by the file sink. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
pront
Nov 7, 2024
Replies: 1 comment 6 replies
-
Hi @hartfordfive, are you using a There is a metric tracking files added here: https://vector.dev/docs/reference/configuration/sources/file/#files_added_total. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you using a file sink for this? And this is the component that creates the files?
The
file
sink does emit anopen_files
metric. See https://github.com/vectordotdev/vector/blob/master/src/internal_events/file.rs#L33.Unfortunately, this is missing from the docs: https://vector.dev/docs/reference/configuration/sinks/file/#instrumentation-telemetry-metrics-and-logs. We should add it.