mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-22 16:36:07 +01:00
a077024f51
* Add diskstats collector for Darwin * Update year in the header * Update README.md * Add github.com/lufia/iostat to vendored packages * Change stats to follow naming guidelines * Add a entry of github.com/lufia/iostat into vendor.json * Remove /proc/diskstats from description
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
|
|
}
|