Open mshahzeb opened 3 weeks ago
Sample generated metrics file node_metrics.txt
This would be wonderful to have as a feature
Hi @mshahzeb, thanks for looking into this! This is a great start, we now know which files to read.
node_exporter
doesn't really try to read the files directly in this codebase, but rather, we abstract the parsing here: https://github.com/prometheus/procfs
/sys/block/<disk>/device/ioerr_cnt
and /sys/block/<disk>/device/iodone_cnt
should be added here: https://github.com/prometheus/procfs/blob/master/blockdevice/stats.go
/sys/fs/ext4/<partition>
should be added to a new ext4
folder like we did for xfs
and btrfs
Thank you I will be moving the code to procfs and open a PR there.
Fixes: https://github.com/prometheus/node_exporter/issues/3005
Adds:
From
/sys/fs/ext4/<partition>/errors_count
: number of ext4 errors (commit)/sys/fs/ext4/<partition>/warning_count
: number of ext4 warning log messages (commit)/sys/fs/ext4/<partition>/msg_count
: number of other ext4 log messagesand
From
/sys/block/<disk>/device/ioerr_cnt
: number of SCSI commands that completed with an error/sys/block/<disk>/device/iodone_cnt
: number of completed or rejected SCSI commands