ecs

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package ecs is a file-based observer that is primarily meant for development and test purposes. It will watch a json file, which should consist of an array of serialized service instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.ObserverConfig
	// The URL of the ECS task metadata. Default is http://169.254.170.2/v2/metadata, which is hardcoded by AWS for version 2.
	MetadataEndpoint string `yaml:"metadataEndpoint" default:"http://169.254.170.2/v2/metadata"`
	// A mapping of container label names to dimension names that will get
	// applied to the metrics of all discovered services. The corresponding
	// label values will become the dimension values for the mapped name.  E.g.
	// `io.kubernetes.container.name: container_spec_name` would result in a
	// dimension called `container_spec_name` that has the value of the
	// `io.kubernetes.container.name` container label.
	LabelsToDimensions map[string]string `yaml:"labelsToDimensions"`
}

Config for the ecs observer

type ECS

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

ECS observer plugin

func (*ECS) Configure

func (o *ECS) Configure(config *Config) error

Configure the ecs observer

func (*ECS) Shutdown

func (o *ECS) Shutdown()

Shutdown the service differ routine

Jump to

Keyboard shortcuts

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