Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SDCheckInterval = flag.Duration("promscrape.yandexcloudSDCheckInterval", 30*time.Second, "Interval for checking for changes in Yandex Cloud API. "+
"This works only if yandexcloud_sd_configs is configured in '-promscrape.config' file.")
SDCheckInterval defines interval for targets refresh.
Functions ¶
This section is empty.
Types ¶
type SDConfig ¶
type SDConfig struct { Service string `yaml:"service"` YandexPassportOAuthToken *promauth.Secret `yaml:"yandex_passport_oauth_token,omitempty"` APIEndpoint string `yaml:"api_endpoint,omitempty"` TLSConfig *promauth.TLSConfig `yaml:"tls_config,omitempty"` }
SDConfig is the configuration for Yandex Cloud service discovery.
Click to show internal directories.
Click to hide internal directories.