prom

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AgentManagerInitFlag = false
	AgentManagerLock     = new(sync.RWMutex)
)
View Source
var FileMap map[string]fileObj
View Source
var PathEnbale bool

Functions

func AddSdEndpoint added in v1.5.0

func AddSdEndpoint(param m.ServiceDiscoverFileObj) []int

func DeleteSdEndpoint added in v1.5.0

func DeleteSdEndpoint(guid string)

func DeployAgent added in v1.1.0

func DeployAgent(agentType, instance, bin, ip, port, user, pwd, url, configFile string) (address string, err error)

func GetConfig

func GetConfig(name string, isGrp bool) (error, bool, m.RFGroup)

func GetEndpointData

func GetEndpointData(ip, port string, prefix, keyword []string) (error, []string)

func InitAgentManager added in v1.5.0

func InitAgentManager(param []*m.AgentManagerTable, url string)

func InitPrometheusRuleFile added in v1.11.1

func InitPrometheusRuleFile()

func InitSdConfig added in v1.5.0

func InitSdConfig(param []*m.ServiceDiscoverFileObj)

func ReloadConfig added in v1.3.0

func ReloadConfig() error

func SetConfig

func SetConfig(name string, isGrp bool, config m.RFGroup, exist bool) error

func StartCheckProcessList added in v1.7.0

func StartCheckProcessList(interval int)

func StartCheckPrometheusJob added in v1.5.0

func StartCheckPrometheusJob(interval int)

func StartSyncAgentManagerJob added in v1.6.0

func StartSyncAgentManagerJob(param []*m.AgentManagerTable, url string)

func StopAgent added in v1.1.0

func StopAgent(agentType, instance, ip, url string) error

func SyncSdConfigFile added in v1.5.0

func SyncSdConfigFile(step int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL