Skip to content

Track system-wide file descriptor usage #2597

@phemmer

Description

@phemmer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedRequest for community participation, code, contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions