Documentation ¶
Index ¶
- type DiskUsageStat
- 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) ([]*DiskUsageStat, []*disk.PartitionStat, error)
- func (s *SystemPS) NetConnections() ([]net.ConnectionStat, error)
- func (s *SystemPS) NetIO() ([]net.IOCountersStat, error)
- func (s *SystemPS) NetProto() ([]net.ProtoCountersStat, error)
- func (s *SystemPS) SwapStat() (*mem.SwapMemoryStat, error)
- func (s *SystemPS) Temperature() ([]host.TemperatureStat, 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 DiskUsageStat ¶
type PS ¶
type PS interface { CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error) DiskUsage(mountPointFilter []string, fstypeExclude []string) ([]*DiskUsageStat, []*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) Temperature() ([]host.TemperatureStat, error) }
type PSDiskDeps ¶
type SystemPS ¶
type SystemPS struct {
PSDiskDeps
}
func NewSystemPS ¶
func NewSystemPS() *SystemPS
func (*SystemPS) DiskUsage ¶
func (s *SystemPS) DiskUsage( mountPointFilter []string, fstypeExclude []string, ) ([]*DiskUsageStat, []*disk.PartitionStat, error)
func (*SystemPS) NetConnections ¶
func (s *SystemPS) NetConnections() ([]net.ConnectionStat, error)
func (*SystemPS) Temperature ¶
func (s *SystemPS) Temperature() ([]host.TemperatureStat, 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 { config.PluginConfig CollectUserNumber bool `toml:"collect_user_number"` }
func (*SystemStats) Clone ¶
func (s *SystemStats) Clone() inputs.Input
func (*SystemStats) Gather ¶
func (s *SystemStats) Gather(slist *types.SampleList)
func (*SystemStats) Name ¶
func (s *SystemStats) Name() string
Click to show internal directories.
Click to hide internal directories.