cron

package
Version: v0.0.0-...-4fdcf46 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Services    = make(map[string][]string)
	ServiceLock = new(sync.RWMutex)
)

Functions

func Collect

func Collect()

Colleet:配置信息读取,读取Mapper中的FuncsAndInterval,根据func调用采集函数,采集所有信息(并非先过滤采集项),从所有采集到的数据中过滤ignore的项,并上报到transfer。

func CreateProcMapperWatcher

func CreateProcMapperWatcher(services map[string][]string)

接收变更信号,查看是否需要启动且启动哪个service proc采集

func DeleteService

func DeleteService(name string)

func DynamicMapperWatcher

func DynamicMapperWatcher()

接收变更信号,停止老的采集方法,启动新的采集方法

func DynamicServiceWatcher

func DynamicServiceWatcher(sNames []string)

func ExecDynamicFunc

func ExecDynamicFunc(sec int64, fn func() []*model.MetricValue)

func ExecProcDynamicFunc

func ExecProcDynamicFunc(sec int64, name string, pids []string, fns []func(string, []string) []*model.MetricValue)

func FindPid

func FindPid(line string) string

func FindService

func FindService(line string) string

func GetPidsForAllSysService

func GetPidsForAllSysService() map[string][]string

获取系统所有service和pids 映射表

func InitDataHistory

func InitDataHistory()

func ReportAgentStatus

func ReportAgentStatus()

func SyncBuiltinMetrics

func SyncBuiltinMetrics()

func SyncDynamicMonitoringConfig

func SyncDynamicMonitoringConfig()

func SyncMinePlugins

func SyncMinePlugins()

同步插件

func SyncServiceConfig

func SyncServiceConfig()

同步service name列表

func SyncTrustableIps

func SyncTrustableIps()

SyncTrustableIps:同步可信IP列表 请求获取远程访问执行shell命令的IP白名单,在通过http/run.go调用shell命令是会判断请求IP是否可信

Types

This section is empty.

Jump to

Keyboard shortcuts

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