Documentation
¶
Index ¶
- Variables
- func Collect()
- func CreateProcMapperWatcher(services map[string][]string)
- func DeleteService(name string)
- func DynamicMapperWatcher()
- func DynamicServiceWatcher(sNames []string)
- func ExecDynamicFunc(sec int64, fn func() []*model.MetricValue)
- func ExecProcDynamicFunc(sec int64, name string, pids []string, ...)
- func FindPid(line string) string
- func FindService(line string) string
- func GetPidsForAllSysService() map[string][]string
- func InitDataHistory()
- func ReportAgentStatus()
- func SyncBuiltinMetrics()
- func SyncDynamicMonitoringConfig()
- func SyncMinePlugins()
- func SyncServiceConfig()
- func SyncTrustableIps()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Collect ¶
func Collect()
Colleet:配置信息读取,读取Mapper中的FuncsAndInterval,根据func调用采集函数,采集所有信息(并非先过滤采集项),从所有采集到的数据中过滤ignore的项,并上报到transfer。
func CreateProcMapperWatcher ¶
接收变更信号,查看是否需要启动且启动哪个service proc采集
func DeleteService ¶
func DeleteService(name string)
func DynamicServiceWatcher ¶
func DynamicServiceWatcher(sNames []string)
func ExecDynamicFunc ¶
func ExecDynamicFunc(sec int64, fn func() []*model.MetricValue)
func ExecProcDynamicFunc ¶
func FindService ¶
func GetPidsForAllSysService ¶
获取系统所有service和pids 映射表
func InitDataHistory ¶
func InitDataHistory()
func ReportAgentStatus ¶
func ReportAgentStatus()
func SyncBuiltinMetrics ¶
func SyncBuiltinMetrics()
func SyncDynamicMonitoringConfig ¶
func SyncDynamicMonitoringConfig()
func SyncTrustableIps ¶
func SyncTrustableIps()
SyncTrustableIps:同步可信IP列表 请求获取远程访问执行shell命令的IP白名单,在通过http/run.go调用shell命令是会判断请求IP是否可信
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.