Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SDCheckInterval = flag.Duration("promscrape.marathonSDCheckInterval", 30*time.Second, "Interval for checking for changes in Marathon REST API. "+
"This works only if marathon_sd_configs is configured in '-promscrape.config' file. "+
"See https://docs.victoriametrics.com/sd_configs/#marathon_sd_configs for details")
SDCheckInterval defines interval for targets refresh.
Functions ¶
This section is empty.
Types ¶
type AppList ¶
type AppList struct {
Apps []app `json:"apps"`
}
AppList is a list of Marathon apps.
func GetAppsList ¶
GetAppsList randomly choose a server from the `servers` and get the list of running applications.
type SDConfig ¶
type SDConfig struct { Servers []string `yaml:"servers"` HTTPClientConfig promauth.HTTPClientConfig `yaml:",inline"` ProxyURL *proxy.URL `yaml:"proxy_url,omitempty"` ProxyClientConfig promauth.ProxyClientConfig `yaml:",inline"` }
SDConfig is the configuration for Marathon service discovery.
Click to show internal directories.
Click to hide internal directories.