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 ¶
NewDockerInspectCollector instanstiates DockerInspectCollector
func NewDockerStatsCollector ¶
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
Click to show internal directories.
Click to hide internal directories.