-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Feature Request
Proposal:
Telegraf should report on system-wide (not process-level) file descriptor usage & limit.
Current behavior:
Does not do.
Desired behavior:
Do.
Use case: [Why is this important (helps with prioritizing requests)]
If the number of file descriptors used reaches the max, any attempts by applications to open any new ones will fail. Thus it is an important statistic to monitor.
Now my uncertainty is whether we should monitor additional stuff, and where it should go.
There are a bunch of metrics that are reported along side the file descriptor usage metric: https://www.kernel.org/doc/Documentation/sysctl/fs.txt (everything with -max, -nr, & -state suffixes). Given the number of potential metrics, it might make sense to put these in a new measurement, such as linux_sysctl_fs.
The main argument against this is that other operating systems, such as FreeBSD, also have a system-wide max file descriptor count, but not some of the other stuff. In which case for consistency across platforms, it makes sense to use the system measurement.