Versions in this module Expand all Collapse all v0 v0.2.1 Aug 15, 2017 v0.2.0 Jun 18, 2017 Changes in this version + const COLLECT_INTERVAL + const DU_BS + const NET_PORT_LISTEN + const PROC_NUM + const URL_CHECK_HEALTH + const VERSION + var ConfigFile string + var LocalIp string + var Root string + var TransferClients map[string]*SingleConnRpcClient = map[string]*SingleConnRpcClient + var TransferClientsLock *sync.RWMutex = new(sync.RWMutex) + func DuPaths() []string + func GetCurrPluginVersion() string + func Hostname() (string, error) + func IP() string + func InitLocalIp() + func InitLog(level string) (err error) + func InitRootDir() + func InitRpcClients() + func IsTrustable(remoteAddr string) bool + func ParseConfig(cfg string) + func ReportPorts() []int64 + func ReportProcs() map[string]map[int]string + func ReportUrls() map[string]string + func SendMetrics(metrics []*model.MetricValue, resp *model.TransferResponse) + func SendToTransfer(metrics []*model.MetricValue) + func SetDuPaths(paths []string) + func SetReportPorts(ports []int64) + func SetReportProcs(procs map[string]map[int]string) + func SetReportUrls(urls map[string]string) + func SetTrustableIps(ipStr string) + func TrustableIps() []string + type CollectorConfig struct + IfacePrefix []string + MountPoint []string + type GlobalConfig struct + Collector *CollectorConfig + Debug bool + DefaultTags map[string]string + Heartbeat *HeartbeatConfig + Hostname string + Http *HttpConfig + IP string + IgnoreMetrics map[string]bool + Plugin *PluginConfig + Transfer *TransferConfig + func Config() *GlobalConfig + type HeartbeatConfig struct + Addr string + Enabled bool + Interval int + Timeout int + type HttpConfig struct + Backdoor bool + Enabled bool + Listen string + type PluginConfig struct + Dir string + Enabled bool + Git string + LogDir string + type SingleConnRpcClient struct + RpcServer string + Timeout time.Duration + var HbsClient *SingleConnRpcClient + func (this *SingleConnRpcClient) Call(method string, args interface{}, reply interface{}) error + type TransferConfig struct + Addrs []string + Enabled bool + Interval int + Timeout int