action

package
v0.0.0-...-2bfca78 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 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{
		"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",
	}
)

Functions

func Server

func Server(cfg *config.Config, logger *slog.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