mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Read drive IO stats from sysfs instead of procfs (#19131)
Currently, we read from `/proc/diskstats` which is found to be un-reliable in k8s environments. We can read from `sysfs` instead. Also, cache the latest drive io stats to find the diff and update the metrics.
This commit is contained in:
@@ -83,7 +83,7 @@ func GetInfo(path string, _ bool) (info Info, err error) {
|
||||
return info, nil
|
||||
}
|
||||
|
||||
// GetAllDrivesIOStats returns IO stats of all drives found in the machine
|
||||
func GetAllDrivesIOStats() (info AllDrivesIOStats, err error) {
|
||||
return nil, errors.New("operation unsupported")
|
||||
// GetDriveStats returns IO stats of the drive by its major:minor
|
||||
func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
|
||||
return IOStats{}, errors.New("operation unsupported")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user