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() (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 NetIOStats
- type NetStats
- type PS
- type Processes
- 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"` CollectCPUTime bool `toml:"collect_cpu_time"` // contains filtered or unexported fields }
func NewCPUStats ¶
func (*CPUStats) Description ¶
func (*CPUStats) SampleConfig ¶
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 telegraf.Accumulator) error
func (*DiskIOStats) SampleConfig ¶
func (_ *DiskIOStats) SampleConfig() string
type DiskStats ¶
type DiskStats struct { // Legacy support Mountpoints []string MountPoints []string IgnoreFS []string `toml:"ignore_fs"` // contains filtered or unexported fields }
func (*DiskStats) Description ¶
func (*DiskStats) SampleConfig ¶
type Kernel ¶ added in v1.2.0
type Kernel struct {
// contains filtered or unexported fields
}
func (*Kernel) Description ¶ added in v1.2.0
func (*Kernel) SampleConfig ¶ added in v1.2.0
type KernelVmstat ¶ added in v1.2.0
type KernelVmstat struct {
// contains filtered or unexported fields
}
func (*KernelVmstat) Description ¶ added in v1.2.0
func (k *KernelVmstat) Description() string
func (*KernelVmstat) Gather ¶ added in v1.2.0
func (k *KernelVmstat) Gather(acc telegraf.Accumulator) error
func (*KernelVmstat) SampleConfig ¶ added in v1.2.0
func (k *KernelVmstat) SampleConfig() string
type MemStats ¶
type MemStats struct {
// contains filtered or unexported fields
}
func (*MemStats) Description ¶
func (*MemStats) SampleConfig ¶
type MockPS ¶
func (*MockPS) NetConnections ¶
func (m *MockPS) NetConnections() ([]net.ConnectionStat, 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 telegraf.Accumulator) error
func (*NetIOStats) SampleConfig ¶
func (_ *NetIOStats) SampleConfig() string
type NetStats ¶
type NetStats struct {
// contains filtered or unexported fields
}
func (*NetStats) Description ¶
func (*NetStats) SampleConfig ¶
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() (map[string]disk.IOCountersStat, error) VMStat() (*mem.VirtualMemoryStat, error) SwapStat() (*mem.SwapMemoryStat, error) NetConnections() ([]net.ConnectionStat, error) }
type Processes ¶ added in v1.2.0
type Processes struct {
// contains filtered or unexported fields
}
func (*Processes) Description ¶ added in v1.2.0
func (*Processes) Gather ¶ added in v1.2.0
func (p *Processes) Gather(acc telegraf.Accumulator) error
func (*Processes) SampleConfig ¶ added in v1.2.0
type SwapStats ¶
type SwapStats struct {
// contains filtered or unexported fields
}
func (*SwapStats) Description ¶
func (*SwapStats) SampleConfig ¶
type SystemStats ¶
type SystemStats struct{}
func (*SystemStats) Description ¶
func (_ *SystemStats) Description() string
func (*SystemStats) Gather ¶
func (_ *SystemStats) Gather(acc telegraf.Accumulator) error
func (*SystemStats) SampleConfig ¶
func (_ *SystemStats) SampleConfig() string
Click to show internal directories.
Click to hide internal directories.