openstack

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabels

func GetLabels(sdc *SDConfig, baseDir string) ([]map[string]string, error)

GetLabels returns gce labels according to sdc.

Types

type SDConfig

type SDConfig struct {
	IdentityEndpoint            string `yaml:"identity_endpoint"`
	Username                    string `yaml:"username"`
	UserID                      string `yaml:"userid"`
	Password                    string `yaml:"password"`
	ProjectName                 string `yaml:"project_name"`
	ProjectID                   string `yaml:"project_id"`
	DomainName                  string `yaml:"domain_name"`
	DomainID                    string `yaml:"domain_id"`
	ApplicationCredentialName   string `yaml:"application_credential_name"`
	ApplicationCredentialID     string `yaml:"application_credential_id"`
	ApplicationCredentialSecret string `yaml:"application_credential_secret"`
	Role                        string `yaml:"role"`
	Region                      string `yaml:"region"`
	// RefreshInterval time.Duration `yaml:"refresh_interval"`
	// refresh_interval is obtained from `-promscrape.openstackSDCheckInterval` command-line option.
	Port         int                 `yaml:"port"`
	AllTenants   bool                `yaml:"all_tenants"`
	TLSConfig    *promauth.TLSConfig `yaml:"tls_config"`
	Availability string              `yaml:"availability"`
}

SDConfig is the configuration for OpenStack based service discovery.

See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config

Jump to

Keyboard shortcuts

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