discovery

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: MIT Imports: 16 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 {
	Interval time.Duration
	Region   string
	Path     string
}

type ECSDiscovery

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

ECSDiscovery periodically performs ECS-SD requests. It implements the TargetProvider interface.

func NewECSDiscovery

func NewECSDiscovery(config Config) *ECSDiscovery

NewECSDiscovery returns a new ECSDiscovery which periodically refreshes its targets.

func (*ECSDiscovery) Run

func (ed *ECSDiscovery) Run(ctx context.Context)

Run implements the TargetProvider interface.

type TargetGroup

type TargetGroup struct {
	Targets []string          `json:"targets,omitempty"`
	Labels  map[string]string `json:"labels,omitempty"`
}

TargetGroup is a part of output for file SD in Prometheus

Jump to

Keyboard shortcuts

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