[BUG] Incorrect disk usage statistics

Using metricbeat-5.6.0-1 on RHEL6 with a 5.6 ELK stack,

The metrics returned for system.filesystem.used.pct are incorrect.

The sigar go library returns the raw results of statfs and the metricbeat code just turns that into a flat percentage value.

Unfortunately that does not take into account filesystem characteristics such as space allocated to metadata or root reserved amounts.

For an ext4 filesystem with default creation options, for instance, metricbeat will return 70% used whereas doing a df on the system will show 75% used, as df does included the reserved space and only returns regular free space.

Opening this topic for discussion as per the guidelines on github before filing an issue.

Bug opened in GitHub: https://github.com/elastic/beats/issues/5494

I think I looked into this before and found that Metricbeat does not factor in the available value reported by statfs when it does its calculations. Filesystem pct/used not same as reported by df

So you think we should change the calculation in the Metricbeat code? If so we should also check the Windows code to see if it has a similar problem.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.