collector

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	metrics.Metrics
	// contains filtered or unexported fields
}

Docker collector

func NewDocker

func NewDocker(client *api.Client, id string) *Docker

func (*Docker) ReadCPU

func (c *Docker) ReadCPU(stats *api.Stats)

func (*Docker) ReadIO

func (c *Docker) ReadIO(stats *api.Stats)

func (*Docker) ReadMem

func (c *Docker) ReadMem(stats *api.Stats)

func (*Docker) ReadNet

func (c *Docker) ReadNet(stats *api.Stats)

func (*Docker) Running

func (c *Docker) Running() bool

func (*Docker) Start

func (c *Docker) Start()

func (*Docker) Stop

func (c *Docker) Stop()

Stop collector

func (*Docker) Stream

func (c *Docker) Stream() chan metrics.Metrics

type Mock

type Mock struct {
	metrics.Metrics
	// contains filtered or unexported fields
}

Mock collector

func NewMock

func NewMock(a int64) *Mock

func (*Mock) Running

func (c *Mock) Running() bool

func (*Mock) Start

func (c *Mock) Start()

func (*Mock) Stop

func (c *Mock) Stop()

func (*Mock) Stream

func (c *Mock) Stream() chan metrics.Metrics

type Runc

type Runc struct {
	metrics.Metrics
	// contains filtered or unexported fields
}

Runc collector

func NewRunc

func NewRunc(libc libcontainer.Container) *Runc

func (*Runc) ReadCPU

func (c *Runc) ReadCPU(stats *cgroups.Stats)

func (*Runc) ReadIO

func (c *Runc) ReadIO(stats *cgroups.Stats)

func (*Runc) ReadMem

func (c *Runc) ReadMem(stats *cgroups.Stats)

func (*Runc) ReadNet

func (c *Runc) ReadNet(interfaces []*libcontainer.NetworkInterface)

func (*Runc) Running

func (c *Runc) Running() bool

func (*Runc) Start

func (c *Runc) Start()

func (*Runc) Stop

func (c *Runc) Stop()

func (*Runc) Stream

func (c *Runc) Stream() chan metrics.Metrics

Jump to

Keyboard shortcuts

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