docker

package
v3.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.MonitorConfig
	// A set of dimensions to add to container metrics (see
	// https://github.com/signalfx/docker-collectd-plugin#extracting-additional-dimensions).
	Dimensions map[string]string `yaml:"dimensions"`
	// URL of the Docker engine, can be a unix socket path.
	DockerURL           string            `yaml:"dockerURL" validate:"required"`
	ExcludedImages      []string          `yaml:"excludedImages"`
	ExcludedNames       []string          `yaml:"excludedNames"`
	ExcludedLabels      map[string]string `yaml:"excludedLabels"`
	CollectNetworkStats bool              `yaml:"collectNetworkStats"`
}

Config is the monitor-specific config with the generic config embedded

type Monitor

type Monitor struct {
	collectd.MonitorCore
}

Monitor is the main type that represents the monitor

func (*Monitor) Configure

func (rm *Monitor) Configure(conf *Config) error

Configure configures and runs the plugin in collectd

Jump to

Keyboard shortcuts

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