docker

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTAINER   = "container"
	PERFORMANCE = "performance"
	FILTERED    = "filtered"
	IMAGE       = "image"
)

The entity object for the custom tags

Variables

View Source
var (
	DEFAULT_CONTAINER_TAGS = []string{
		"docker_image",
		"image_name",
		"image_tag",
	}

	DEFAULT_PERFORMANCE_TAGS = []string{
		"container_name",
		"docker_image",
		"image_name",
		"image_tag",
	}

	DEFAULT_IMAGE_TAGS = []string{
		"image_name",
		"image_tag",
	}
)

Functions

func NewDocker

func NewDocker(conf plugin.InitConfig) plugin.Plugin

NewDocker XXX

Types

type Docker

type Docker struct {
	URL string

	CollectContainerSize bool `yaml:"collect_container_size"`
	CollectImagesStats   bool `yaml:"collect_images_stats"`
	CollectImageSize     bool `yaml:"collect_image_size"`

	Exclude []string
	Include []string

	Tags                []string
	PerformanceTags     []string `yaml:"performance_tags"`
	ContainerTags       []string `yaml:"container_tags"`
	CollectLabelsAsTags []string `yaml:"collect_labels_as_tags"`
	// contains filtered or unexported fields
}

Docker XXX

func (*Docker) Check

func (d *Docker) Check(agg metric.Aggregator) error

Check XXX

type FakeDockerClient

type FakeDockerClient struct {
}

FakeDockerClient XXX

func (FakeDockerClient) ContainerList

func (d FakeDockerClient) ContainerList(octx context.Context, options types.ContainerListOptions) ([]types.Container, error)

ContainerList XXX

func (FakeDockerClient) ContainerStats

func (d FakeDockerClient) ContainerStats(ctx context.Context, containerID string, stream bool) (types.ContainerStats, error)

ContainerStats XXX

func (FakeDockerClient) ImageList

ImageList XXX

Jump to

Keyboard shortcuts

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