Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #7986 to 6.x: Better tracking of number of open file descriptors of Filebeat #8514

Merged
merged 2 commits into from
Oct 5, 2018

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Oct 1, 2018

Cherry-pick of PR #7986 to 6.x branch. Original message:

New metrics are introduced to better track the number of open file descriptors.

In the initial issue number of open file descriptors were requested by input. Reporting the number of open files by harvesters is already implemented. It's reported as filebeat.harvester.open_files.

I included process level file descriptor information reporting for each Beat which runs on Linux.

New metrics

  • beat.fd.open: Number of open files by a Beat process.
    It's the number of files under /proc/{{ filebeat-pid }}/fd. Only implemented on Linux.
  • beat.fd.limit.soft: Soft limit of the Beat process.
    Could be used to notify a user if the process is reaching the limit (in the Monitoring UI).
  • beat.fd.limit.hard: Hard limit of the Beat process.
    It is the max limit that can be set on a host without modifying kernel params.

@kvch kvch requested a review from ph October 3, 2018 13:45
@ph
Copy link
Contributor

ph commented Oct 4, 2018

@kvch are we missing a changelog in that PR?

@kvch
Copy link
Contributor Author

kvch commented Oct 4, 2018

Yes. I will add a new entry on master on a new PR. Here I added it in a new commit.

kvch and others added 2 commits October 5, 2018 12:16
…ic#7986)

New metrics are introduced to better track the number of open file descriptors.

In the initial issue number of open file descriptors were requested by input. Reporting the number of open files by harvesters is already implemented. It's reported as filebeat.harvester.open_files.

I included process level file descriptor information reporting for each Beat which runs on Linux.

New metrics

    beat.fd.open: Number of open files by a Beat process.
    It's the number of files under /proc/{{ filebeat-pid }}/fd. Only implemented on Linux.
    beat.fd.limit.soft: Soft limit of the Beat process.
    Could be used to notify a user if the process is reaching the limit (in the Monitoring UI).
    beat.fd.limit.hard: Hard limit of the Beat process.
    It is the max limit that can be set on a host without modifying kernel params.
(cherry picked from commit f10096a)
@kvch kvch force-pushed the backport_7986_6.x branch from 51b2a33 to 224402b Compare October 5, 2018 10:16
@kvch kvch merged commit 174de51 into elastic:6.x Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants