prometheus_sd

package
Version: v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(configuration map[string]interface{}) (output.Output, error)

Types

type Config

type Config map[string]interface{}

func (Config) Labels

func (c Config) Labels() map[string]interface{}

func (Config) Path

func (c Config) Path() string

func (Config) TargetAddress

func (c Config) TargetAddress() TargetAddressType

type Output

type Output struct {
	output.Output
	// contains filtered or unexported fields
}

func (*Output) Save

func (o *Output) Save(nodes *runtime.Nodes)

type TargetAddressType

type TargetAddressType string
const (
	TargetAddressIP     TargetAddressType = "ip"
	TargetAddressNodeID TargetAddressType = "node_id"
)

type Targets

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

Source Files

Jump to

Keyboard shortcuts

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