Documentation ¶
Index ¶
- type PS
- type PSDiskDeps
- type SystemPS
- func (s *SystemPS) CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error)
- func (s *SystemPS) DiskIO(names []string) (map[string]disk.IOCountersStat, error)
- func (s *SystemPS) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*disk.UsageStat, []*disk.PartitionStat, error)
- func (s *SystemPS) NetConnections(fns ...net.ConnectionStatOptionsFn) ([]net.ConnectionStat, error)
- func (s *SystemPS) NetIO() ([]net.IOCountersStat, error)
- func (s *SystemPS) VMStat() (*mem.VirtualMemoryStat, error)
- type SystemPSDisk
- type SystemStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) DiskIO(names []string) (map[string]disk.IOCountersStat, error) VMStat() (*mem.VirtualMemoryStat, error) NetConnections(fns ...net.ConnectionStatOptionsFn) ([]net.ConnectionStat, error) }
type PSDiskDeps ¶
type SystemPS ¶
type SystemPS struct {
PSDiskDeps
}
func NewSystemPS ¶
func NewSystemPS() *SystemPS
func (*SystemPS) NetConnections ¶
func (s *SystemPS) NetConnections(fns ...net.ConnectionStatOptionsFn) ([]net.ConnectionStat, error)
type SystemPSDisk ¶
type SystemPSDisk struct{}
func (*SystemPSDisk) OSGetenv ¶
func (s *SystemPSDisk) OSGetenv(key string) string
func (*SystemPSDisk) PSDiskUsage ¶
func (s *SystemPSDisk) PSDiskUsage(path string) (*disk.UsageStat, error)
func (*SystemPSDisk) Partitions ¶
func (s *SystemPSDisk) Partitions(all bool) ([]disk.PartitionStat, error)
type SystemStats ¶
type SystemStats struct{}
func (*SystemStats) Gather ¶
func (s *SystemStats) Gather() ([]interface{}, error)
func (*SystemStats) Series ¶
func (s *SystemStats) Series() plugins.Series
Click to show internal directories.
Click to hide internal directories.