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

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