action

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Labels defines all available labels for this provider.
	Labels = map[string]string{
		"cancelled": providerPrefix + "cancelled",
		"dc":        providerPrefix + "dc",
		"flatrate":  providerPrefix + "flatrate",
		"ip":        providerPrefix + "ipv4",
		"name":      providerPrefix + "name",
		"number":    providerPrefix + "number",
		"product":   providerPrefix + "product",
		"project":   providerPrefix + "project",
		"status":    providerPrefix + "status",
		"throttled": providerPrefix + "throttled",
		"traffic":   providerPrefix + "traffic",
	}
)

Functions

func Server

func Server(cfg *config.Config, logger log.Logger) error

Server handles the server sub-command.

Types

type Discoverer

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

Discoverer implements the Prometheus discoverer interface.

func (Discoverer) Run

func (d Discoverer) Run(ctx context.Context, ch chan<- []*targetgroup.Group)

Run initializes fetching the targets for service discovery.

Jump to

Keyboard shortcuts

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