qcollector_docker_stats

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 14 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

collector-docker-stats

Collector to subscribe to docker-stats stream of container running/starting

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitLabels

func SplitLabels(labels []string) map[string]string

Types

type ContainerSupervisor

type ContainerSupervisor struct {
	CntID     string // ContainerID
	CntName   string // sanatized name of container
	Container docker.Container
	Com       chan interface{} // Channel to communicate with goroutine
	// contains filtered or unexported fields
}

struct to keep info and channels to goroutine -> get heartbeats so that we know it's still alive -> allow for gracefully shutdown of the supervisor

func (ContainerSupervisor) Run

func (cs ContainerSupervisor) Run()

type Plugin

type Plugin struct {
	qtypes.Plugin
	// contains filtered or unexported fields
}

func New

func New(qChan qtypes.QChan, cfg *config.Config, name string) (Plugin, error)

func (*Plugin) Run

func (p *Plugin) Run()

func (*Plugin) StartSupervisor

func (p *Plugin) StartSupervisor(CntID, CntName string)

func (*Plugin) StartSupervisorCe

func (p *Plugin) StartSupervisorCe(ce qtypes_docker_events.ContainerEvent)

func (*Plugin) StartSupervisorQm

func (p *Plugin) StartSupervisorQm(qm qtypes.QMsg)

Jump to

Keyboard shortcuts

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