Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct { User opt.Uint `struct:"user,omitempty"` Sys opt.Uint `struct:"system,omitempty"` Idle opt.Uint `struct:"idle,omitempty"` Nice opt.Uint `struct:"nice,omitempty"` // Linux, Darwin, BSD Irq opt.Uint `struct:"irq,omitempty"` // Linux and openbsd Wait opt.Uint `struct:"iowait,omitempty"` // Linux and AIX SoftIrq opt.Uint `struct:"softirq,omitempty"` // Linux only Stolen opt.Uint `struct:"steal,omitempty"` // Linux only }
CPU manages the CPU metrics from /proc/stat If a given metric isn't available on a given platform, The value will be null. All methods that use these fields should assume that any value can be null. The values are in "ticks", which translates to milliseconds of CPU time
type CPUInfo ¶ added in v0.4.1
CPUInfo manages the CPU information from /proc/cpuinfo If a given value isn't available on a given platformn the value will be the type's zero-value
type CPUMetrics ¶
type CPUMetrics struct { // CPUInfo carries some data from /proc/cpuinfo CPUInfo []CPUInfo // contains filtered or unexported fields }
CPUMetrics carries global and per-core CPU metrics
type MetricOpts ¶
MetricOpts defines the fields that are passed along to the formatted output
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics stores the current and the last sample collected by a Beat.
type Monitor ¶
Monitor is used to monitor the overall CPU usage of the system over time.
func (*Monitor) Fetch ¶
Fetch collects a new sample of the CPU usage metrics. This will overwrite the currently stored samples.
func (*Monitor) FetchCores ¶
FetchCores collects a new sample of CPU usage metrics per-core This will overwrite the currently stored samples.