Documentation ¶
Index ¶
- type CPUStats
- type DiskIOStats
- type DiskStats
- type Kernel
- type KernelVmstat
- type MemStats
- type MockPS
- func (m *MockPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error)
- func (m *MockPS) DiskIO(names []string) (map[string]disk.IOCountersStat, error)
- func (m *MockPS) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, []*disk.PartitionStat, 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 MockPSDisk
- func (s MockPSDisk) CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error)
- func (s MockPSDisk) DiskIO(names []string) (map[string]disk.IOCountersStat, error)
- func (s MockPSDisk) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, []*disk.PartitionStat, error)
- func (s MockPSDisk) NetConnections() ([]net.ConnectionStat, error)
- func (s MockPSDisk) NetIO() ([]net.IOCountersStat, error)
- func (s MockPSDisk) NetProto() ([]net.ProtoCountersStat, error)
- func (s MockPSDisk) SwapStat() (*mem.SwapMemoryStat, error)
- func (s MockPSDisk) VMStat() (*mem.VirtualMemoryStat, error)
- type NetIOStats
- type NetStats
- type PS
- type PSDiskDeps
- type Processes
- type SwapStats
- type SysctlFS
- type SystemStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUStats ¶
type CPUStats struct { PerCPU bool `toml:"percpu"` TotalCPU bool `toml:"totalcpu"` CollectCPUTime bool `toml:"collect_cpu_time"` // contains filtered or unexported fields }
func NewCPUStats ¶
func (*CPUStats) SampleConfig ¶
type DiskIOStats ¶
type DiskIOStats struct { Devices []string DeviceTags []string NameTemplates []string SkipSerialNumber bool // contains filtered or unexported fields }
func (*DiskIOStats) Collect ¶
func (s *DiskIOStats) Collect() (datas []map[string]interface{}, err error)
func (*DiskIOStats) Name ¶
func (_ *DiskIOStats) Name() string
type DiskStats ¶
type DiskStats struct { // Legacy support Mountpoints []string MountPoints []string IgnoreFS []string `toml:"ignore_fs"` // contains filtered or unexported fields }
func (*DiskStats) SampleConfig ¶
type KernelVmstat ¶
type KernelVmstat struct {
// contains filtered or unexported fields
}
func (*KernelVmstat) Collect ¶
func (k *KernelVmstat) Collect() (datas []map[string]interface{}, err error)
func (*KernelVmstat) Name ¶
func (k *KernelVmstat) Name() string
type MockPS ¶
type MockPS struct { mock.Mock PSDiskDeps }
func (*MockPS) NetConnections ¶
func (m *MockPS) NetConnections() ([]net.ConnectionStat, error)
type MockPSDisk ¶
func (MockPSDisk) DiskIO ¶
func (s MockPSDisk) DiskIO(names []string) (map[string]disk.IOCountersStat, error)
func (MockPSDisk) NetConnections ¶
func (s MockPSDisk) NetConnections() ([]net.ConnectionStat, error)
func (MockPSDisk) NetIO ¶
func (s MockPSDisk) NetIO() ([]net.IOCountersStat, error)
func (MockPSDisk) NetProto ¶
func (s MockPSDisk) NetProto() ([]net.ProtoCountersStat, error)
func (MockPSDisk) SwapStat ¶
func (s MockPSDisk) SwapStat() (*mem.SwapMemoryStat, error)
func (MockPSDisk) VMStat ¶
func (s MockPSDisk) VMStat() (*mem.VirtualMemoryStat, error)
type NetIOStats ¶
type NetIOStats struct { Interfaces []string // contains filtered or unexported fields }
func (*NetIOStats) Collect ¶
func (s *NetIOStats) Collect() (datas []map[string]interface{}, err error)
func (*NetIOStats) Name ¶
func (_ *NetIOStats) Name() string
type PS ¶
type PS interface { CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, []*disk.PartitionStat, error) NetIO() ([]net.IOCountersStat, error) NetProto() ([]net.ProtoCountersStat, error) DiskIO(names []string) (map[string]disk.IOCountersStat, error) VMStat() (*mem.VirtualMemoryStat, error) SwapStat() (*mem.SwapMemoryStat, error) NetConnections() ([]net.ConnectionStat, error) }
type PSDiskDeps ¶
type Processes ¶
type Processes struct {
// contains filtered or unexported fields
}
type SwapStats ¶
type SwapStats struct {
// contains filtered or unexported fields
}
type SysctlFS ¶
type SysctlFS struct {
// contains filtered or unexported fields
}
type SystemStats ¶
type SystemStats struct{}
func (*SystemStats) Collect ¶
func (_ *SystemStats) Collect() (datas []map[string]interface{}, err error)
func (*SystemStats) Name ¶
func (_ *SystemStats) Name() string
Click to show internal directories.
Click to hide internal directories.