forked from statsd/statsd
/
exampleConfig.js
45 lines (37 loc) · 1.64 KB
/
exampleConfig.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
43
44
45
/*
Required Variables:
(udp server)
udp: StatsD UDP server mode
udpPort: StatsD UDP Server listening port [default: 8125]
(udp server)
udpPort: StatsD listening port
Graphite Required Variables:
(Leave these unset to avoid sending stats to Graphite.
Set debug flag and leave these unset to run in 'dry' debug mode -
useful for testing statsd clients without a Graphite server.)
graphiteHost: hostname or IP of Graphite server
graphitePort: port of Graphite server
Optional Variables:
debug: debug flag [default: false]
port: port to listen for messages on over UDP [default: 8125]
address: ip to listen for messages on over UDP [default: 0.0.0.0]
mgmtPort: port to run the management TCP interface on [default: 8127]
mgmtAddress: ip to run the management TCP interface on [default: 0.0.0.0]
debugInterval: interval to print debug information [ms, default: 10000]
dumpMessages: log all incoming messages
flushInterval: interval (in ms) to flush to Graphite
percentThreshold: for time information, calculate the Nth percentile(s)
(can be a single value or list of floating-point values)
[%, default: 90]
keyFlush: log the most frequently sent keys [object, default: undefined]
interval: how often to log frequent keys [ms, default: 0]
percent: percentage of frequent keys to log [%, default: 100]
log: location of log file for frequent keys [default: STDOUT]
*/
{
graphitePort: 2003
, graphiteHost: "graphite.host.com"
, udp: true
, tcp: true
, mgmt: true,
}