Add Disk IO stats and ext4 FS stats
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
Looks like the tests still fail. Also DCO.
This needs a DCO sign-off. You can use git commit -s --amend to add it.
DCO sign off fixed.
Please go fmt your change. As well as git rebase -i origin/master to squash your commits.
Done and ran git rebase -i origin/master as well but did not seem to squash my commits
Commits squashed and rebased with master