Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SDCheckInterval = flag.Duration("promscrape.eurekaSDCheckInterval", 30*time.Second, "Interval for checking for changes in eureka. "+
"This works only if eureka_sd_configs is configured in '-promscrape.config' file. "+
"See https://docs.victoriametrics.com/sd_configs.html#eureka_sd_configs for details")
SDCheckInterval defines interval for targets refresh.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application - eureka application https://github.com/Netflix/eureka/wiki/Eureka-REST-operations/
type DataCenterInfo ¶
DataCenterInfo -eureka datacentre metadata
type Instance ¶
type Instance struct { HostName string `xml:"hostName"` HomePageURL string `xml:"homePageUrl"` StatusPageURL string `xml:"statusPageUrl"` HealthCheckURL string `xml:"healthCheckUrl"` App string `xml:"app"` IPAddr string `xml:"ipAddr"` VipAddress string `xml:"vipAddress"` SecureVipAddress string `xml:"secureVipAddress"` Status string `xml:"status"` Port Port `xml:"port"` SecurePort Port `xml:"securePort"` DataCenterInfo DataCenterInfo `xml:"dataCenterInfo"` Metadata MetaData `xml:"metadata"` CountryID int `xml:"countryId"` InstanceID string `xml:"instanceId"` }
Instance - eureka instance https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
type MetaData ¶
type MetaData struct {
Items []Tag `xml:",any"`
}
MetaData - eureka objects metadata.
type SDConfig ¶
type SDConfig struct { Server string `yaml:"server,omitempty"` HTTPClientConfig promauth.HTTPClientConfig `yaml:",inline"` ProxyURL *proxy.URL `yaml:"proxy_url,omitempty"` ProxyClientConfig promauth.ProxyClientConfig `yaml:",inline"` }
SDConfig represents service discovery config for eureka.
See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#eureka
Click to show internal directories.
Click to hide internal directories.