mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-22 00:16:08 +01:00
21 lines
482 B
Go
21 lines
482 B
Go
|
// Package iostat presents I/O statistics.
|
||
|
package iostat
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// DriveStats represents I/O statistics of a drive.
|
||
|
type DriveStats struct {
|
||
|
Name string // drive name
|
||
|
Size int64 // total drive size in bytes
|
||
|
BlockSize int64 // block size in bytes
|
||
|
|
||
|
BytesRead int64
|
||
|
BytesWritten int64
|
||
|
NumRead int64
|
||
|
NumWrite int64
|
||
|
TotalReadTime time.Duration
|
||
|
TotalWriteTime time.Duration
|
||
|
ReadLatency time.Duration
|
||
|
WriteLatency time.Duration
|
||
|
}
|