Documentation ¶
Index ¶
- type Collector
- type Docker
- func (c *Docker) Logs() LogCollector
- func (c *Docker) ReadCPU(stats *api.Stats)
- func (c *Docker) ReadIO(stats *api.Stats)
- func (c *Docker) ReadMem(stats *api.Stats)
- func (c *Docker) ReadNet(stats *api.Stats)
- func (c *Docker) Running() bool
- func (c *Docker) Start()
- func (c *Docker) Stop()
- func (c *Docker) Stream() chan models.Metrics
- type DockerLogs
- type LogCollector
- type Mock
- type MockLogs
- type Runc
- func (c *Runc) Logs() LogCollector
- func (c *Runc) ReadCPU(stats *cgroups.Stats)
- func (c *Runc) ReadIO(stats *cgroups.Stats)
- func (c *Runc) ReadMem(stats *cgroups.Stats)
- func (c *Runc) ReadNet(interfaces []*libcontainer.NetworkInterface)
- func (c *Runc) Running() bool
- func (c *Runc) Start()
- func (c *Runc) Stop()
- func (c *Runc) Stream() chan models.Metrics
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 ¶
Docker collector
func (*Docker) Logs ¶ added in v0.6.1
func (c *Docker) Logs() LogCollector
type DockerLogs ¶ added in v0.6.1
type DockerLogs struct {
// contains filtered or unexported fields
}
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 Runc ¶
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) ReadNet ¶
func (c *Runc) ReadNet(interfaces []*libcontainer.NetworkInterface)
Click to show internal directories.
Click to hide internal directories.