add diskstats on Darwin (#593)
* 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
This commit is contained in:
parent
ab3414e6fd
commit
a077024f51
10 changed files with 440 additions and 1 deletions
20
vendor/github.com/lufia/iostat/iostat.go
generated
vendored
Normal file
20
vendor/github.com/lufia/iostat/iostat.go
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue