Documentation ¶
Index ¶
Constants ¶
View Source
const ( VERSION = "1.0.0" GAUGE = "GAUGE" COUNTER = "COUNTER" DERIVE = "DERIVE" DEFAULT_STEP = 60 MIN_STEP = 30 )
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type ClusterNode ¶
type ClusterNode struct {
Addrs []string `json:"addrs"`
}
CLUSTER NODE
func NewClusterNode ¶
func NewClusterNode(addrs []string) *ClusterNode
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` NodePath string `json:"nodepatch"` Http *HttpConfig `json:"http"` Rpc *RpcConfig `json:"rpc"` Influxdb *InfluxdbConfig `json:"influxdb"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type InfluxdbConfig ¶
type InfluxdbConfig struct { Enabled bool `json:"enabled"` Batch int `json:"batch"` Username string `json:"username"` Password string `json:"password"` Database string `json:"database"` ConnTimeout int `json:"connTimeout"` CallTimeout int `json:"callTimeout"` MaxConns int `json:"maxConns"` MaxIdle int `json:"maxIdle"` MaxRetry int `json:"retry"` Cluster map[string]string `json:"cluster"` RemoveMetrics map[string]bool `json:"remove"` Cluster2 map[string]*ClusterNode `json:"cluster2"` }
type ReceiverStatusManager ¶
func NewReceiverStatusManager ¶
func NewReceiverStatusManager() *ReceiverStatusManager
func (*ReceiverStatusManager) IsRun ¶
func (r *ReceiverStatusManager) IsRun() bool
func (*ReceiverStatusManager) Run ¶
func (r *ReceiverStatusManager) Run()
func (*ReceiverStatusManager) Stop ¶
func (r *ReceiverStatusManager) Stop()
Click to show internal directories.
Click to hide internal directories.