prom

package
v0.0.0-...-bb0d4a4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 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)
)

Functions

func DeployAgent

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

func DoSyncAgentManagerJob

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

func GetEndpointData

func GetEndpointData(param models.QueryPrometheusMetricParam) (error, []string)

func GetSnmpMetricList

func GetSnmpMetricList(address, target string) (metricList []string, err error)

func InitAgentManager

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

func ReloadConfig

func ReloadConfig() error

func StartCheckProcessList

func StartCheckProcessList(interval int)

func StartCheckPrometheusJob

func StartCheckPrometheusJob(interval int)

func StartConsumeRuleConfig

func StartConsumeRuleConfig()

func StartConsumeSdConfig

func StartConsumeSdConfig()

func StopAgent

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

func SyncLocalRuleConfig

func SyncLocalRuleConfig(input models.RuleLocalConfigJob)

func SyncLocalSdConfig

func SyncLocalSdConfig(param m.SdLocalConfigJob)

Types

This section is empty.

Jump to

Keyboard shortcuts

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