Beats: [filebeat] Expose the number of file open in the UI

Created on 6 Aug 2018  路  6Comments  路  Source: elastic/beats

When back pressure is happening on the system, Filebeat can continuously open file descriptors for every file discovered. It would be useful to display that information in the monitoring UI, if the number keeps growing it will help to detect if the system is falling behind.

Displaying File descriptor in general could be useful for.

  • Logs input
  • UDP input
  • TCP input
  • Syslog input
Filebeat monitoring

All 6 comments

cc @ppf2

@ph Do we already expose it in our stats API?

@ruflin Yes, we have some code to fetch it so it should be exposed in the stats API, https://github.com/elastic/beats/blob/f6343865bf1d7f772443df02fba0370d993e75ec/libbeat/metric/system/process/process.go#L157-L182 Making a graph for it should not be too complicated.

I think then we already report the data to monitoring.

Unfortunately, I haven't found any trace of reporting this value. Now I am implementing it.

EDIT: I have found the metric for log input as harvester.open_files.

FYI: We have this data for Linux in go-sysinfo. The library can provide both the FD count and the names of things that the FDs point to (list of files, sockets, pipes, etc).

Was this page helpful?
0 / 5 - 0 ratings