forked from AdamMagaluk/statsd-cloudwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exampleProxyConfig.js
32 lines (27 loc) · 1.05 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
/*
Required Variables:
port: StatsD Cluster Proxy listening port [default: 8125]
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:
udp_version: defines if the address is an IPv4 or IPv6 address ['udp4' or 'udp6', default: 'udp4']
host: address to listen on over UDP [default: 0.0.0.0]
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]
*/
{
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}
],
udp_version: 'udp4',
host: '0.0.0.0',
port: 8125,
forkCount: 0,
checkInterval: 1000,
cacheSize: 10000
}