Dears,
I have a Linux server with telegraf-1.13.4-1.x86_64 installed, the problem is that I have influxdb and grafana for visual dashboards, I noticed that the DISK is reporting different values that what I have in the Linux OS.
Here is what I have on Linux:
df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 263G 141G 122G 54% /
what telegraf is reporting:
telegraf --input-filter disk --test | grep dm-0
2020-02-28T13:18:08Z I! Starting Telegraf 1.13.4
2020-02-28T13:18:08Z I! Using config file: /etc/telegraf/telegraf.conf
disk,device=dm-0,fstype=xfs,host=PINK,mode=rw,path=/ free=130825838592i,inodes_free=136895517i,inodes_total=137615360i,inodes_used=719843i,total=281810042880i,used=150984204288i,used_percent=53.576587528604115 1582895889000000000
notice for example: total disk size for / is: total=281810042880i which is 281.8 GB but according to df -h / it shows: rhel-root 263G
same for used space and free space on the root partition.
Note that this is an LVM: rhel-root 262.5G 0 lvm /
XFS partiion and Red Hat 7.4