collector

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector added in v0.6.1

type Collector interface {
	Stream() chan models.Metrics
	Logs() LogCollector
	Running() bool
	Start()
	Stop()
}

type Docker

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

Docker collector

func NewDocker

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

func (*Docker) Logs added in v0.6.1

func (c *Docker) Logs() LogCollector

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 models.Metrics

type DockerLogs added in v0.6.1

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

func NewDockerLogs added in v0.7.1

func NewDockerLogs(id string, client *api.Client) *DockerLogs

func (*DockerLogs) Stop added in v0.6.1

func (l *DockerLogs) Stop()

func (*DockerLogs) Stream added in v0.6.1

func (l *DockerLogs) Stream() chan models.Log

type LogCollector added in v0.6.1

type LogCollector interface {
	Stream() chan models.Log
	Stop()
}

type Mock

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

Mock collector

func NewMock

func NewMock(a int64) *Mock

func (*Mock) Logs added in v0.6.1

func (c *Mock) Logs() LogCollector

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 models.Metrics

type MockLogs added in v0.6.1

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

func (*MockLogs) Stop added in v0.6.1

func (l *MockLogs) Stop()

func (*MockLogs) Stream added in v0.6.1

func (l *MockLogs) Stream() chan models.Log

type Runc

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

Runc collector

func NewRunc

func NewRunc(libc libcontainer.Container) *Runc

func (*Runc) Logs added in v0.6.1

func (c *Runc) Logs() LogCollector

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 models.Metrics

Jump to

Keyboard shortcuts

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