collector

package
v0.0.0-...-957cb1c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "dw"

Namespace of metrics produced by docker_watch

Variables

View Source
var Factories = make(map[string]func() (Collector, error))

Factories map of collectors to names

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) (err error)
}

Collector Interface a collector has to implement.

func NewDockerInspectCollector

func NewDockerInspectCollector() (Collector, error)

NewDockerInspectCollector instanstiates DockerInspectCollector

func NewDockerStatsCollector

func NewDockerStatsCollector() (Collector, error)

NewDockerStatsCollector instanstiates DockerStatsCollector

type DockerInspectCollector

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

DockerInspectCollector orchestrates the collectors for Docker containers

func (*DockerInspectCollector) Update

func (c *DockerInspectCollector) Update(ch chan<- prometheus.Metric) (err error)

Update - checks for new/departed containers and scrapes them

type DockerStatsCollector

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

DockerStatsCollector orchestrates the collectors for Docker containers

func (*DockerStatsCollector) Update

func (c *DockerStatsCollector) Update(ch chan<- prometheus.Metric) (err error)

Update - checks for new/departed containers and scrapes them

Jump to

Keyboard shortcuts

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