/
g.go
29 lines (25 loc) · 874 Bytes
/
g.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package g
import (
"runtime"
)
// changelog:
// 0.0.1: init project
// 0.0.4: bugfix: set replicas before add node
// 0.0.8: change receiver, mv proc cron to proc pkg, add readme, add gitversion, add config reload, add trace tools
// 0.0.9: fix bugs of conn pool(use transfer's private conn pool, named & minimum)
// 0.0.10: use more efficient proc & sema, rm conn_pool status log
// 0.0.11: fix bug: all graphs' traffic delined when one graph broken down, modify retry interval
// 0.0.14: support sending multi copies to graph node, align ts for judge, add filter
// 0.0.15: support tsdb
// 0.0.16: support config of min step
// 0.0.17: remove migrating, which is implemented in graph
const (
VERSION = "0.0.17"
GAUGE = "GAUGE"
COUNTER = "COUNTER"
DERIVE = "DERIVE"
DEFAULT_STEP = 60
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}