procfs

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2018 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() ([]collector.Collector, error)

New creates new ProcFS collector

func NewCPUCollector

func NewCPUCollector(cfgBaseName string) (collector.Collector, error)

NewCPUCollector creates new procfs cpu collector

func NewDiskstatsCollector added in v0.8.0

func NewDiskstatsCollector(cfgBaseName string) (collector.Collector, error)

NewDiskstatsCollector creates new procfs cpu collector

func NewIFCollector added in v0.8.0

func NewIFCollector(cfgBaseName string) (collector.Collector, error)

NewIFCollector creates new procfs cpu collector

func NewLoadavgCollector added in v0.8.0

func NewLoadavgCollector(cfgBaseName string) (collector.Collector, error)

NewLoadavgCollector creates new procfs cpu collector

func NewVMCollector added in v0.8.0

func NewVMCollector(cfgBaseName string) (collector.Collector, error)

NewVMCollector creates new procfs cpu collector

Types

type CPU

type CPU struct {
	// contains filtered or unexported fields
}

CPU metrics from the Linux ProcFS

func (*CPU) Collect

func (c *CPU) Collect() error

Collect metrics from the procfs resource

func (*CPU) Flush

func (c *CPU) Flush() cgm.Metrics

Flush returns last metrics collected

func (*CPU) ID

func (c *CPU) ID() string

ID returns the id of the instance

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) Collect added in v0.8.0

func (c *Diskstats) Collect() error

Collect metrics from the procfs resource

func (*Diskstats) Flush added in v0.8.0

func (c *Diskstats) Flush() cgm.Metrics

Flush returns last metrics collected

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) Collect added in v0.8.0

func (c *IF) Collect() error

Collect metrics from the procfs resource

func (*IF) Flush added in v0.8.0

func (c *IF) Flush() cgm.Metrics

Flush returns last metrics collected

func (*IF) ID added in v0.8.0

func (c *IF) ID() string

ID returns the id of the instance

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) Collect added in v0.8.0

func (c *Loadavg) Collect() error

Collect metrics from the procfs resource

func (*Loadavg) Flush added in v0.8.0

func (c *Loadavg) Flush() cgm.Metrics

Flush returns last metrics collected

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) Collect added in v0.8.0

func (c *VM) Collect() error

Collect metrics from the procfs resource

func (*VM) Flush added in v0.8.0

func (c *VM) Flush() cgm.Metrics

Flush returns last metrics collected

func (*VM) ID added in v0.8.0

func (c *VM) ID() string

ID returns the id of the instance

func (*VM) Inventory added in v0.8.0

func (c *VM) Inventory() collector.InventoryStats

Inventory returns collector stats for /inventory endpoint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL