[root@ueb01 ~]# df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 999320 295820 651072 32% /
This is df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 976M 289M 636M 32% /
I don't see a difference in the raw values reported by Metricbeat and df other than that df is rounding the values. Make sure you account for the fact that df is rendering kibibytes (that's what it means by 1K-blocks) which are powers of 1024 rather than powers of 1000 (KB). And when df writes M it means mebibytes and not megabytes.
From man df:
SIZE is an integer and optional unit (example: 10M is 1010241024). Units are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (powers of 1000).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.