Documentation ¶
Overview ¶
Package diskstat implements metrics collection related to disk IO usage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskStat ¶
type DiskStat struct { Disks map[string]*PerDiskStat // contains filtered or unexported fields }
func (*DiskStat) ByUsage ¶
func (c *DiskStat) ByUsage() []*PerDiskStat
ByUsage() returns an slice of *PerDiskStat entries sorted by usage
func (*DiskStat) RefreshBlkDevList ¶
func (s *DiskStat) RefreshBlkDevList()
type PerDiskStat ¶
type PerDiskStat struct { Metrics *PerDiskStatMetrics Name string // contains filtered or unexported fields }
func NewPerDiskStat ¶
func NewPerDiskStat(m *metrics.MetricContext, blkdev string) *PerDiskStat
func (*PerDiskStat) Usage ¶
func (s *PerDiskStat) Usage() float64
Usage returns approximate measure of disk usage (time spent doing IO / wall clock time)
type PerDiskStatMetrics ¶
type PerDiskStatMetrics struct { ReadCompleted *metrics.Counter ReadMerged *metrics.Counter ReadSectors *metrics.Counter ReadSpentMsecs *metrics.Counter WriteCompleted *metrics.Counter WriteMerged *metrics.Counter WriteSectors *metrics.Counter WriteSpentMsecs *metrics.Counter IOInProgress *metrics.Gauge IOSpentMsecs *metrics.Counter WeightedIOSpentMsecs *metrics.Counter SectorSize *metrics.Gauge }
Click to show internal directories.
Click to hide internal directories.