stats

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

README

Stats

This plugin reports stats as reported from the Docker stats API.

Configuration

The following configuration is available through environment variables:

  • STATS_CARBON_ADDRESS: Carbon receiver address (i.e. 1.2.3.4:2003)
  • STATS_PREFIX: Stat prefix (default: docker.stats)
  • STATS_IMAGE_NAME_FILTER: Regex to match against container image name to gather stats (default: .* - all containers)
  • STATS_INTERVAL: Interval (in seconds) to send stats to Carbon (default: 10)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(interlockConfig *interlock.Config, client *dockerclient.DockerClient) (interlock.Plugin, error)

Types

type PluginConfig

type PluginConfig struct {
	CarbonAddress   string
	StatsPrefix     string
	ImageNameFilter *regexp.Regexp
	Interval        int
}

type StatsPlugin

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

func (StatsPlugin) HandleEvent

func (p StatsPlugin) HandleEvent(event *dockerclient.Event) error

func (StatsPlugin) Info

func (p StatsPlugin) Info() *interlock.PluginInfo

func (StatsPlugin) Init

func (p StatsPlugin) Init() error

Jump to

Keyboard shortcuts

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