Documentation ¶
Index ¶
- type CPUStats
- type DiskIOStats
- type DiskStats
- type DockerContainerStat
- type DockerStats
- type MemStats
- type MockPS
- func (m *MockPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.CPUTimesStat, error)
- func (m *MockPS) DiskIO() (map[string]disk.DiskIOCountersStat, error)
- func (m *MockPS) DiskUsage() ([]*disk.DiskUsageStat, error)
- func (m *MockPS) DockerStat() ([]*DockerContainerStat, error)
- func (m *MockPS) LoadAvg() (*load.LoadAvgStat, error)
- func (m *MockPS) NetIO() ([]net.NetIOCountersStat, error)
- func (m *MockPS) SwapStat() (*mem.SwapMemoryStat, error)
- func (m *MockPS) VMStat() (*mem.VirtualMemoryStat, error)
- type NetIOStats
- type PS
- type SwapStats
- 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"` // contains filtered or unexported fields }
func NewCPUStats ¶ added in v0.1.4
func (*CPUStats) Description ¶
func (*CPUStats) SampleConfig ¶
type DiskIOStats ¶
type DiskIOStats struct {
// contains filtered or unexported fields
}
func (*DiskIOStats) Description ¶
func (_ *DiskIOStats) Description() string
func (*DiskIOStats) Gather ¶
func (s *DiskIOStats) Gather(acc plugins.Accumulator) error
func (*DiskIOStats) SampleConfig ¶
func (_ *DiskIOStats) SampleConfig() string
type DiskStats ¶
type DiskStats struct {
// contains filtered or unexported fields
}
func (*DiskStats) Description ¶
func (*DiskStats) SampleConfig ¶
type DockerContainerStat ¶
type DockerContainerStat struct { Id string Name string Command string CPU *cpu.CPUTimesStat Mem *docker.CgroupMemStat }
type DockerStats ¶
type DockerStats struct {
// contains filtered or unexported fields
}
func (*DockerStats) Description ¶
func (_ *DockerStats) Description() string
func (*DockerStats) Gather ¶
func (s *DockerStats) Gather(acc plugins.Accumulator) error
func (*DockerStats) SampleConfig ¶
func (_ *DockerStats) SampleConfig() string
type MemStats ¶
type MemStats struct {
// contains filtered or unexported fields
}
func (*MemStats) Description ¶
func (*MemStats) SampleConfig ¶
type MockPS ¶
func (*MockPS) CPUTimes ¶
func (m *MockPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.CPUTimesStat, error)
func (*MockPS) DockerStat ¶
func (m *MockPS) DockerStat() ([]*DockerContainerStat, 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 plugins.Accumulator) error
func (*NetIOStats) SampleConfig ¶
func (_ *NetIOStats) SampleConfig() string
type PS ¶
type PS interface { LoadAvg() (*load.LoadAvgStat, error) CPUTimes(perCPU, totalCPU bool) ([]cpu.CPUTimesStat, error) DiskUsage() ([]*disk.DiskUsageStat, error) NetIO() ([]net.NetIOCountersStat, error) DiskIO() (map[string]disk.DiskIOCountersStat, error) VMStat() (*mem.VirtualMemoryStat, error) SwapStat() (*mem.SwapMemoryStat, error) DockerStat() ([]*DockerContainerStat, error) }
type SwapStats ¶
type SwapStats struct {
// contains filtered or unexported fields
}
func (*SwapStats) Description ¶
func (*SwapStats) SampleConfig ¶
type SystemStats ¶
type SystemStats struct {
// contains filtered or unexported fields
}
func (*SystemStats) Description ¶
func (_ *SystemStats) Description() string
func (*SystemStats) Gather ¶
func (s *SystemStats) Gather(acc plugins.Accumulator) error
func (*SystemStats) SampleConfig ¶
func (_ *SystemStats) SampleConfig() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
common
gopsutil is a port of psutil(http://pythonhosted.org/psutil/).
|
gopsutil is a port of psutil(http://pythonhosted.org/psutil/). |
disk
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints.
|
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints. |
process
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints.
|
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints. |
Click to show internal directories.
Click to hide internal directories.