action

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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{
		"datacenterName":    providerPrefix + "datacenter",
		"imageName":         providerPrefix + "image_name",
		"imageType":         providerPrefix + "image_type",
		"labelPrefix":       providerPrefix + "label_",
		"locationCity":      providerPrefix + "city",
		"locationCountry":   providerPrefix + "country",
		"locationName":      providerPrefix + "location",
		"name":              providerPrefix + "name",
		"osFlavor":          providerPrefix + "os_flavor",
		"osVersion":         providerPrefix + "os_version",
		"project":           providerPrefix + "project",
		"privateIPv4":       providerPrefix + "ipv4_",
		"publicIPv4":        providerPrefix + "public_ipv4",
		"publicIPv6":        providerPrefix + "public_ipv6",
		"serverTypeCores":   providerPrefix + "cores",
		"serverTypeCPU":     providerPrefix + "cpu",
		"serverTypeDisk":    providerPrefix + "disk",
		"serverTypeMemory":  providerPrefix + "memory",
		"serverTypeName":    providerPrefix + "type",
		"serverTypeStorage": providerPrefix + "storage",
		"status":            providerPrefix + "status",
	}
)

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