collectors

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: BSD-3-Clause Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

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

CPU collects cpu related metrics

func NewCPU

func NewCPU(period uint, level uint8) *CPU

NewCPU returns an initialized CPU collector.

func (*CPU) Metrics

func (c *CPU) Metrics() *bytes.Buffer

Metrics delivers metrics.

type Collector

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

Collector collects external metrics

func NewCollector

func NewCollector(path string, period uint, keep uint) *Collector

NewCollector returns an initialized external collector.

func (*Collector) Metrics

func (c *Collector) Metrics() *bytes.Buffer

Metrics delivers metrics.

type Disk

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

Disk collects disk related metrics

func NewDisk

func NewDisk(period uint, level uint8, opts interface{}) *Disk

NewDisk returns an initialized Disk collector.

func (*Disk) Metrics

func (c *Disk) Metrics() *bytes.Buffer

Metrics delivers metrics.

type Load

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

Load collects load related metrics

func NewLoad

func NewLoad(period uint, level uint8) *Load

NewLoad returns an initialized Load collector.

func (*Load) Metrics

func (c *Load) Metrics() *bytes.Buffer

Metrics delivers metrics.

type Memory

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

Memory collects memory related metrics

func NewMemory

func NewMemory(period uint, level uint8) *Memory

NewMemory returns an initialized Memory collector.

func (*Memory) Metrics

func (c *Memory) Metrics() *bytes.Buffer

Metrics delivers metrics.

type Net

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

Net collects network related metrics

func NewNet

func NewNet(period uint, level uint8, opts interface{}) *Net

NewNet returns an initialized Net collector.

func (*Net) Metrics

func (c *Net) Metrics() *bytes.Buffer

Metrics delivers metrics.

Jump to

Keyboard shortcuts

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