appConfigs

package
v0.0.0-...-982fff5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: AFL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfs

type AgentConfs struct {
	SendErrorLimit int  `json:"send_error_limit"`
	Pause          bool `json:"pause"`
	Exit           bool `json:"exit"`
}

本agent的一些参数

func (*AgentConfs) Execute

func (agent *AgentConfs) Execute(wg *sync.WaitGroup) error

agent配置改变执行函数

type Config

type Config struct {
	AgentConfi   AgentConfs          `json:"Agent"`
	Etcd         client.Etcd         `json:"Etcd"`
	ReportServer client.ReportServer `json:"ReportServer"`
	CpuConfi     model.CpuConfs      `json:"cpu_rate"`
	MemConfi     model.MemConfs      `json:"memory_used"`
	DiskConfi    model.DiskConfs     `json:"disk_used"`
	CpuMemConfi  model.CpuMemConfs   `json:"cpu_mem"`
}

func LoadingConfigs

func LoadingConfigs() Config

func (*Config) InitGlobalMetrics

func (c *Config) InitGlobalMetrics()

初始化全局变量Metrics和MetricsName

func (*Config) RunEtcd

func (c *Config) RunEtcd(wg *sync.WaitGroup)

func (*Config) StartWatchEtcd

func (c *Config) StartWatchEtcd(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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