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: 26 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{
		"id":                providerPrefix + "id",
		"metadataPrefix":    providerPrefix + "metadata_",
		"name":              providerPrefix + "name",
		"networkPrefix":     providerPrefix + "network_",
		"numCoresPerSocket": providerPrefix + "num_cores_per_socket",
		"numCpus":           providerPrefix + "num_cpus",
		"org":               providerPrefix + "org",
		"osType":            providerPrefix + "os_type",
		"project":           providerPrefix + "project",
		"status":            providerPrefix + "status",
		"storageProfile":    providerPrefix + "storage_profile",
		"vdc":               providerPrefix + "vdc",
	}

	// ErrClientEndpoint defines an error if the client auth fails.
	ErrClientEndpoint = errors.New("failed to parse api url")
)

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