forked from statsd/statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exampleProxyConfig.js
42 lines (37 loc) · 1.64 KB
/
exampleProxyConfig.js
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
/*
Required Variables:
port: StatsD Cluster Proxy listening port [default: 8125]
mgmt_port: StatsD Cluster Proxy telnet management port [default: 8126]
mgmt_address: address to run the management TCP interface on [default: 0.0.0.0]
nodes: list of StatsD instances
host: address of an instance of StatsD
port: port that this instance is listening on
adminport: port that this instance is listening on for the admininterface
Optional Variables:
host: address to listen on over UDP [default: 0.0.0.0]
address_ipv6: defines if the listen address is an IPv4 or IPv6 address [true or false, default: false]
checkInterval: health status check interval [default: 10000]
cacheSize: size of the cache to store for hashring key lookups [default: 10000]
forkCount: number of child processes (cluster module), number or 'auto' for utilize all cpus [default:0]
server: the server to load. The server must exist by name in the directory
servers/. If not specified, the default udp server will be loaded.
Note: This will still send to the backends via udp regardless of the
server type for the proxy
* example for tcp server:
"./servers/tcp"
*/
{
nodes: [
{host: '127.0.0.1', port: 8127, adminport: 8128},
{host: '127.0.0.1', port: 8129, adminport: 8130},
{host: '127.0.0.1', port: 8131, adminport: 8132}
],
server: './servers/udp',
host: '0.0.0.0',
port: 8125,
udp_version:'udp4',
mgmt_port: 8126,
forkCount: 0,
checkInterval: 1000,
cacheSize: 10000
}