forked from go-graphite/carbonzipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.conf
More file actions
65 lines (53 loc) · 2.35 KB
/
Copy pathexample.conf
File metadata and controls
65 lines (53 loc) · 2.35 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
#
# A single shell-style (#) comment block may appear at the top of the file
# and will be stripped off. However, the remainder of the file must be valid JSON.
# (So the `//` comments below will cause it to fail)
# (grep -v '^#\|\/\/\s' example.conf | jq '.') will extract the JSON.
#
# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
{
// Listen port
"Port": 8080,
// Your preferred GOMAXPROCS setting; if you wish to override it in config
// rather than the environment.
"MaxProcs": 0,
// Graphite, "host:port", to send zipper's metrics to.
"GraphiteHost": "",
// Interval seconds to send zipper's own metrics.
"IntervalSec": 60,
// Metric sent to graphite will be prefixed with "$InternalMetricPrefix.$hostname.",
// default is "carbon.zipper"
"InternalMetricPrefix": "carbon.zipper",
// Number of 100ms buckets to track request distribution in. Used to build
// 'carbon.zipper.hostname.requests_in_0ms_to_100ms' metric and friends.
// Requests beyond the last bucket are logged as slow
// (default of 10 implies "slow" is >1 second).
"Buckets": 10,
// Maximum total backend requesting timeout in ms.
// ( How long we may spend making requests. )
"TimeoutMs": 10000,
// Timeout, in ms, once the final backend has been contacted.
// ( [Effectively] How long we'll wait for the slowest response. )
"TimeoutMsAfterAllStarted": 2000,
// Number of concurrent requests to any given backend - default is no limit.
// If set, you likely want >= MaxIdleConnsPerHost
"ConcurrencyLimitPerServer": 0,
// Control http.MaxIdleConnsPerHost. Large values can lead to more idle
// connections on the backend servers which may bump into limits; tune with care.
"MaxIdleConnsPerHost": 100,
// "http://host:port" array of instances of carbonserver stores
// This is the *ONLY* config element that MUST be specified.
"Backends":
[
"http://10.0.0.1:8080",
"http://10.0.0.2:8080",
"http://192.168.0.100:8080",
"http://192.168.0.200:8080",
"http://192.168.1.212:8080"
],
// Instance of carbonsearch backend
"SearchBackend": "http://127.0.0.1:8070",
// carbonsearch prefix to reserve/register
"SearchPrefix": "virt.v1.*"
}