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 ¶
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.
Click to show internal directories.
Click to hide internal directories.