Documentation ¶
Index ¶
- Constants
- func NewDiskStats(conf plugin.InitConfig) plugin.Plugin
- func NewStats(conf plugin.InitConfig) plugin.Plugin
- type CPUStats
- type DiskIOStats
- type DiskStats
- type MockPS
- func (m *MockPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error)
- func (m *MockPS) DiskIO() (map[string]disk.IOCountersStat, error)
- func (m *MockPS) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, error)
- func (m *MockPS) LoadAvg() (*load.AvgStat, error)
- func (m *MockPS) NetConnections() ([]net.ConnectionStat, error)
- func (m *MockPS) NetIO() ([]net.IOCountersStat, error)
- func (m *MockPS) NetProto() ([]net.ProtoCountersStat, error)
- func (m *MockPS) SwapStat() (*mem.SwapMemoryStat, error)
- func (m *MockPS) VMStat() (*mem.VirtualMemoryStat, error)
- type PS
- type Stats
Constants ¶
View Source
const ( KB float64 = 1 << (10 * iota) MB GB TB PB )
KB, MB, GB, TB, PB...human friendly
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiskIOStats ¶
type DiskIOStats struct { Devices []string // contains filtered or unexported fields }
DiskIOStats XXX
type DiskStats ¶
type DiskStats struct { MountPoints []string IgnoreFS []string // contains filtered or unexported fields }
DiskStats XXX
type MockPS ¶
MockPS XXX
func (*MockPS) DiskIO ¶
func (m *MockPS) DiskIO() (map[string]disk.IOCountersStat, error)
DiskIO XXX
func (*MockPS) DiskUsage ¶
func (m *MockPS) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, error)
DiskUsage XXX
func (*MockPS) NetConnections ¶
func (m *MockPS) NetConnections() ([]net.ConnectionStat, error)
NetConnections XXX
type PS ¶
type PS interface { CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, error) NetIO() ([]net.IOCountersStat, error) NetProto() ([]net.ProtoCountersStat, error) DiskIO() (map[string]disk.IOCountersStat, error) VMStat() (*mem.VirtualMemoryStat, error) SwapStat() (*mem.SwapMemoryStat, error) NetConnections() ([]net.ConnectionStat, error) }
PS XXX
Click to show internal directories.
Click to hide internal directories.