system

package
Version: v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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"`
	// contains filtered or unexported fields
}

func NewCPUStats

func NewCPUStats(ps PS) *CPUStats

func (*CPUStats) Description

func (_ *CPUStats) Description() string

func (*CPUStats) Gather

func (s *CPUStats) Gather(acc inputs.Accumulator) error

func (*CPUStats) SampleConfig

func (_ *CPUStats) SampleConfig() string

type DiskIOStats

type DiskIOStats struct {
	Devices          []string
	SkipSerialNumber bool
	// contains filtered or unexported fields
}

func (*DiskIOStats) Description

func (_ *DiskIOStats) Description() string

func (*DiskIOStats) Gather

func (s *DiskIOStats) Gather(acc inputs.Accumulator) error

func (*DiskIOStats) SampleConfig

func (_ *DiskIOStats) SampleConfig() string

type DiskStats

type DiskStats struct {

	// Legacy support
	Mountpoints []string

	MountPoints []string
	// contains filtered or unexported fields
}

func (*DiskStats) Description

func (_ *DiskStats) Description() string

func (*DiskStats) Gather

func (s *DiskStats) Gather(acc inputs.Accumulator) error

func (*DiskStats) SampleConfig

func (_ *DiskStats) SampleConfig() string

type MemStats

type MemStats struct {
	// contains filtered or unexported fields
}

func (*MemStats) Description

func (_ *MemStats) Description() string

func (*MemStats) Gather

func (s *MemStats) Gather(acc inputs.Accumulator) error

func (*MemStats) SampleConfig

func (_ *MemStats) SampleConfig() string

type MockPS

type MockPS struct {
	mock.Mock
}

func (*MockPS) CPUTimes

func (m *MockPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.CPUTimesStat, error)

func (*MockPS) DiskIO

func (m *MockPS) DiskIO() (map[string]disk.DiskIOCountersStat, error)

func (*MockPS) DiskUsage

func (m *MockPS) DiskUsage(mountPointFilter []string) ([]*disk.DiskUsageStat, error)

func (*MockPS) LoadAvg

func (m *MockPS) LoadAvg() (*load.LoadAvgStat, error)

func (*MockPS) NetConnections

func (m *MockPS) NetConnections() ([]net.NetConnectionStat, error)

func (*MockPS) NetIO

func (m *MockPS) NetIO() ([]net.NetIOCountersStat, error)

func (*MockPS) NetProto

func (m *MockPS) NetProto() ([]net.NetProtoCountersStat, error)

func (*MockPS) SwapStat

func (m *MockPS) SwapStat() (*mem.SwapMemoryStat, error)

func (*MockPS) VMStat

func (m *MockPS) VMStat() (*mem.VirtualMemoryStat, error)

type NetIOStats

type NetIOStats struct {
	Interfaces []string
	// contains filtered or unexported fields
}

func (*NetIOStats) Description

func (_ *NetIOStats) Description() string

func (*NetIOStats) Gather

func (s *NetIOStats) Gather(acc inputs.Accumulator) error

func (*NetIOStats) SampleConfig

func (_ *NetIOStats) SampleConfig() string

type NetStats

type NetStats struct {
	// contains filtered or unexported fields
}

func (*NetStats) Description

func (_ *NetStats) Description() string

func (*NetStats) Gather

func (s *NetStats) Gather(acc inputs.Accumulator) error

func (*NetStats) SampleConfig

func (_ *NetStats) SampleConfig() string

type PS

type PS interface {
	CPUTimes(perCPU, totalCPU bool) ([]cpu.CPUTimesStat, error)
	DiskUsage(mountPointFilter []string) ([]*disk.DiskUsageStat, error)
	NetIO() ([]net.NetIOCountersStat, error)
	NetProto() ([]net.NetProtoCountersStat, error)
	DiskIO() (map[string]disk.DiskIOCountersStat, error)
	VMStat() (*mem.VirtualMemoryStat, error)
	SwapStat() (*mem.SwapMemoryStat, error)
	NetConnections() ([]net.NetConnectionStat, error)
}

type SwapStats

type SwapStats struct {
	// contains filtered or unexported fields
}

func (*SwapStats) Description

func (_ *SwapStats) Description() string

func (*SwapStats) Gather

func (s *SwapStats) Gather(acc inputs.Accumulator) error

func (*SwapStats) SampleConfig

func (_ *SwapStats) SampleConfig() string

type SystemStats

type SystemStats struct{}

func (*SystemStats) Description

func (_ *SystemStats) Description() string

func (*SystemStats) Gather

func (_ *SystemStats) Gather(acc inputs.Accumulator) error

func (*SystemStats) SampleConfig

func (_ *SystemStats) SampleConfig() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL