Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultBcsModuleLabelKey = "bcs_module" DiscoveryFileName = "_sd_config.json" )
View Source
const ( CadvisorModule = "cadvisor" NodeexportModule = "node_export" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery interface { //start Start() error // GetDiscoveryKey GetDiscoveryKey() string // get prometheus service discovery config GetPrometheusSdConfig() ([]*types.PrometheusSdConfig, error) // get prometheus sd config file path GetPromSdConfigFile() string //register event handle function RegisterEventFunc(handleFunc EventHandleFunc) }
func NewBcsMesosDiscovery ¶
new bcs mesos module service discovery
func NewBcsServiceDiscovery ¶
new bcs service module service discovery
type EventHandleFunc ¶
type EventHandleFunc func(discoveryKey string)
Click to show internal directories.
Click to hide internal directories.