Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SectorSize is exported in github.com/shirou/gopsutil/disk (but not working!)
SectorSize = 512
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
Check stores disk-specific additional fields
func (*Check) Configure ¶
func (c *Check) Configure(data integration.Data, initConfig integration.Data, source string) error
Configure the disk check
type IOCheck ¶
IOCheck doesn't need additional fields
func (*IOCheck) Configure ¶
func (c *IOCheck) Configure(data integration.Data, initConfig integration.Data, source string) error
Configure the IOstats check
type TopologyCollector ¶
type TopologyCollector struct {
corechecks.CheckTopologyCollector
}
TopologyCollector contains all the metadata needed to produce disk topology
func MakeTopologyCollector ¶
func MakeTopologyCollector() *TopologyCollector
MakeTopologyCollector returns an instance of the DiskTopologyCollector
func (*TopologyCollector) BuildTopology ¶
func (dtc *TopologyCollector) BuildTopology(partitions []disk.PartitionStat) error
BuildTopology creates / collects and produces disk topology
Click to show internal directories.
Click to hide internal directories.