-
Notifications
You must be signed in to change notification settings - Fork 9
/
statsd.conf
72 lines (61 loc) · 2.56 KB
/
statsd.conf
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
66
67
68
69
70
71
72
# Whether or not to fork and run in the background.
daemonize = false
# Comma separated list of inputs. Current choices: "udp", "zeromq".
# Inputs are configured in a separate [input:$input] config section.
inputs = udp, zeromq
# Comma separated list of outputs. Current choices: "stdout", "tcp".
# Outputs are configured in a separate [output:$input] config section.
# NOTE: daemonize==true is incompatible with the stdout output.
outputs = stdout, tcp, amqp
# How often statsd does counter/timer/gauge aggregation and flushes updates
# to any configured outputs.
flush_interval = 5
# Whether or not to "preserve" counters by sending zeros for a
# $flush_interval where we haven't seen any increment updates.
# This is on by default to maintain compatible behavior with Etsy's statsd.
preserve_counters = true
# The prefix for all statsd-generated graphite metric names. Note that
# timers will have a prefix of "$prefix.timers".
# You do not need to include a trailing '.' here, it will be auto added.
prefix = stats
# The suffix for all statsd-generated graphite metric names. This can be
# useful if you want to append the colo/machine name here, then every
# program sending data to statsd does not have to agree on the local part
# of the metric name.
# You do not need to include a leading '.' here, it will be auto added.
suffix =
# Whether or not to "inject" count/lower/mean/upper/upper_90 timer names
# into the metric name before the suffix. If you are using the suffix
# to append cluster/host information, the default is almost certainly
# what you want (e.g. timers.foo.mean.suffix). If the suffix is just for
# variable names and you want the timer names at the very end (e.g.
# timers.foo.suffix.mean), then flip this config to "false".
timer_names_before_suffix = true
# Configuration for UDP input, if enabled in 'inputs' above.
[input:udp]
bind = 127.0.0.1
port = 8125
# Configuration for ZeroMQ input.
# This is the bind string for a ZeroMQ PULL socket.
# For possible options, see http://api.zeromq.org/2-2:zmq-bind
# Most common: tcp://host:port or ipc:///path/to/file
[input:zeromq]
bind = tcp://127.0.0.1:8125
# Configuration for the TCP output. This should point at graphite's
# carbon daemon, or something that understands newline-delimited
# graphite metric update strings.
[output:tcp]
host = 127.0.0.1
port = 2003
# Configuration for the AMQP output.
# Possible exchange types: direct, fanout, topic
[output:amqp]
host = 127.0.0.1
port = 5672
user = guest
pass = guest
vhost = /
exchange_name = stats
exchange_type = topic
exchange_durable = true
exchange_auto_delete = false