Open Badb0yBadb0y opened 3 weeks ago
Well I see
> disk,device=sdb1,fstype=xfs,host=dsfdsfsdfdsf,mode=rw,path=/data/kafka free=25641839218688u,inodes_free=2916264436u,inodes_total=2916292608u,inodes_used=28172u,inodes_used_percent=0.0009660210337850982,total=29860699308032u,used=4218860089344u,used_percent=14.128470488329123 1730274946000000000
in the output (second last line) so I wonder what you are asking about?
in the output (second last line) so I wonder what you are asking about?
Found the issue, so in the disk troubleshooting steps these are written:
$ sudo -u telegraf cat /proc/self/mounts | grep sda2
/dev/sda2 /home ext4 rw,relatime,data=ordered 0 0
$ sudo -u telegraf stat /home
The 2nd condition (stat) is actually AND not OR and there we didn't have proper directory permission, telegraf couldn't read the directory under the main folder, only the main folder.
It works now.
Relevant telegraf.conf
Logs from Telegraf
System info
ubuntu 22.04 with telegraf 1.24.3 or telegraf 1.32.1
Docker
No response
Steps to reproduce
Just use the above config part and it will not be reported the disk, only diskio for that specific sdb drive.
Expected behavior
sdb drive should be shown as this command can see it: sudo -u telegraf cat /proc/self/mounts | grep sdb
Actual behavior
sdb totally skipped from metrics
Additional info
No response