procfs icon indicating copy to clipboard operation
procfs copied to clipboard

Add Disk IO stats and ext4 FS stats

Open mshahzeb opened this issue 1 year ago • 5 comments

Related to: https://github.com/prometheus/node_exporter/issues/3005

Node exporter PR: https://github.com/prometheus/node_exporter/pull/3047

Adds function to return disk stats 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

Add function to return stats for ext4 filesystem

  • /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 messages

mshahzeb avatar Jul 09 '24 18:07 mshahzeb

Looks like the tests still fail. Also DCO.

This needs a DCO sign-off. You can use git commit -s --amend to add it.

SuperQ avatar Jul 14 '24 12:07 SuperQ

DCO sign off fixed.

mshahzeb avatar Jul 15 '24 05:07 mshahzeb

Please go fmt your change. As well as git rebase -i origin/master to squash your commits.

SuperQ avatar Jul 15 '24 05:07 SuperQ

Done and ran git rebase -i origin/master as well but did not seem to squash my commits

mshahzeb avatar Jul 15 '24 07:07 mshahzeb

Commits squashed and rebased with master

mshahzeb avatar Jul 16 '24 18:07 mshahzeb