Documentation ¶
Index ¶
- func New() ([]collector.Collector, error)
- func NewCPUCollector(cfgBaseName string) (collector.Collector, error)
- func NewDiskstatsCollector(cfgBaseName string) (collector.Collector, error)
- func NewIFCollector(cfgBaseName string) (collector.Collector, error)
- func NewLoadavgCollector(cfgBaseName string) (collector.Collector, error)
- func NewVMCollector(cfgBaseName string) (collector.Collector, error)
- type CPU
- type Diskstats
- type IF
- type Loadavg
- type VM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCPUCollector ¶
NewCPUCollector creates new procfs cpu collector
func NewDiskstatsCollector ¶ added in v0.8.0
NewDiskstatsCollector creates new procfs cpu collector
func NewIFCollector ¶ added in v0.8.0
NewIFCollector creates new procfs cpu collector
func NewLoadavgCollector ¶ added in v0.8.0
NewLoadavgCollector creates new procfs cpu collector
Types ¶
type CPU ¶
type CPU struct {
// contains filtered or unexported fields
}
CPU metrics from the Linux ProcFS
func (*CPU) Inventory ¶
func (c *CPU) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Diskstats ¶ added in v0.8.0
type Diskstats struct {
// contains filtered or unexported fields
}
Diskstats metrics from the Linux ProcFS
func (*Diskstats) ID ¶ added in v0.8.0
func (c *Diskstats) ID() string
ID returns the id of the instance
func (*Diskstats) Inventory ¶ added in v0.8.0
func (c *Diskstats) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type IF ¶ added in v0.8.0
type IF struct {
// contains filtered or unexported fields
}
IF metrics from the Linux ProcFS
func (*IF) Inventory ¶ added in v0.8.0
func (c *IF) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Loadavg ¶ added in v0.8.0
type Loadavg struct {
// contains filtered or unexported fields
}
Loadavg metrics from the Linux ProcFS (actually from unix.Sysinfo call)
func (*Loadavg) ID ¶ added in v0.8.0
func (c *Loadavg) ID() string
ID returns the id of the instance
func (*Loadavg) Inventory ¶ added in v0.8.0
func (c *Loadavg) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type VM ¶ added in v0.8.0
type VM struct {
// contains filtered or unexported fields
}
VM metrics from the Linux ProcFS
func (*VM) Inventory ¶ added in v0.8.0
func (c *VM) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint