Documentation
¶
Overview ¶
Package iostat presents I/O and CPU statistics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUStats ¶
type CPUStats struct {
// consumed cpu ticks for each.
User uint64
Nice uint64
Sys uint64
Idle uint64
}
CPUStats represents CPU statistics.
func ReadCPUStats ¶
ReadCPUStats returns statistics of CPU usage.
type DriveStats ¶
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
ReadErrors int64
WriteErrors int64
ReadRetries int64
WriteRetries int64
}
DriveStats represents I/O statistics of a drive.
func ReadDriveStats ¶
func ReadDriveStats() ([]*DriveStats, error)
ReadDriveStats returns statistics of each of the drives.
Click to show internal directories.
Click to hide internal directories.