Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SDCheckInterval = flag.Duration("promscrape.azureSDCheckInterval", 60*time.Second, "Interval for checking for changes in Azure. "+
"This works only if azure_sd_configs is configured in '-promscrape.config' file. "+
"See https://docs.victoriametrics.com/sd_configs/#azure_sd_configs for details")
SDCheckInterval is check interval for Azure service discovery.
Functions ¶
This section is empty.
Types ¶
type SDConfig ¶
type SDConfig struct { Environment string `yaml:"environment,omitempty"` // AuthenticationMethod can be either Oauth or ManagedIdentity. // See https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview AuthenticationMethod string `yaml:"authentication_method,omitempty"` SubscriptionID string `yaml:"subscription_id"` TenantID string `yaml:"tenant_id,omitempty"` ClientID string `yaml:"client_id,omitempty"` ClientSecret *promauth.Secret `yaml:"client_secret,omitempty"` ResourceGroup string `yaml:"resource_group,omitempty"` Port int `yaml:"port"` HTTPClientConfig promauth.HTTPClientConfig `yaml:",inline"` ProxyURL *proxy.URL `yaml:"proxy_url,omitempty"` ProxyClientConfig promauth.ProxyClientConfig `yaml:",inline"` }
SDConfig represents service discovery config for Azure.
See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#azure_sd_config
Click to show internal directories.
Click to hide internal directories.