Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"` Token *string `yaml:"token"` Datacenter string `yaml:"datacenter"` Scheme string `yaml:"scheme,omitempty"` Username string `yaml:"username"` Password string `yaml:"password"` ProxyURL proxy.URL `yaml:"proxy_url,omitempty"` TLSConfig *promauth.TLSConfig `yaml:"tls_config,omitempty"` // RefreshInterval time.Duration `yaml:"refresh_interval"` // refresh_interval is obtained from `-promscrape.ec2SDCheckInterval` command-line option. Port *int `yaml:"port,omitempty"` }
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.