-
Notifications
You must be signed in to change notification settings - Fork 2
/
diamond.conf
162 lines (113 loc) · 4.18 KB
/
diamond.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
################################################################################
# Diamond Configuration File
################################################################################
################################################################################
### Options for the server
[server]
# Handlers for published metrics.
handlers = {HANDLERS}
# User diamond will run as
# Leave empty to use the current user
user =
# Group diamond will run as
# Leave empty to use the current group
group =
# Pid file
pid_file = /var/run/diamond.pid
# Directory to load collector modules from
collectors_path = {COLLECTORS_DIR}
# Directory to load collector configs from
collectors_config_path = {COLLECTORS_CONF_DIR}
# Number of seconds between each collector load
# collectors_load_delay = 1.0
# Directory to load handler configs from
handlers_config_path = {HANDLERS_CONF_DIR}
# Directory to load handler modules from
handlers_path = {HANDLERS_DIR}
# Maximum number of metrics waiting to be processed by handlers.
# When metric queue is full, new metrics are dropped.
metric_queue_size = 16384
################################################################################
### Options for handlers
[handlers]
# daemon logging handler(s)
keys = stdout
### Defaults options for all Handlers
[[default]]
[[GraphiteHandler]]
### Options for GraphiteHandler
# Graphite server host
host = {GRAPHITE_HOST}
# Port to send metrics to
port = {GRAPHITE_PORT}
# Socket timeout (seconds)
timeout = 15
# Batch size for metrics
batch = 1
[[StatsdHandler]]
host = {STATSD_HOST}
port = {STATSD_PORT}
# And any other config settings from GraphiteHandler are valid here
################################################################################
### Options for collectors
[collectors]
[[default]]
### Defaults options for all Collectors
# Uncomment and set to hardcode a hostname for the collector path
# Keep in mind, periods are seperators in graphite
# hostname = my_custom_hostname
# If you prefer to just use a different way of calculating the hostname
# Uncomment and set this to one of these values:
# smart = Default. Tries fqdn_short. If that's localhost, uses hostname_short
# fqdn_short = Default. Similar to hostname -s
# fqdn = hostname output
# fqdn_rev = hostname in reverse (com.example.www)
# uname_short = Similar to uname -n, but only the first part
# uname_rev = uname -r in reverse (com.example.www)
# hostname_short = `hostname -s`
hostname = {HOSTNAME}
# hostname_rev = `hostname` in reverse (com.example.www)
# shell = Run the string set in hostname as a shell command and use its
# output(with spaces trimmed off from both ends) as the hostname.
# hostname_method = smart
# Path Prefix and Suffix
# you can use one or both to craft the path where you want to put metrics
# such as: %(path_prefix)s.$(hostname)s.$(path_suffix)s.$(metric)s
path_prefix = {PATH_PREFIX}
# path_suffix =
# Path Prefix for Virtual Machines
# If the host supports virtual machines, collectors may report per
# VM metrics. Following OpenStack nomenclature, the prefix for
# reporting per VM metrics is "instances", and metric foo for VM
# bar will be reported as: instances.bar.foo...
# instance_prefix = instances
# Default Poll Interval (seconds)
interval = {INTERVAL}
################################################################################
# Default enabled collectors
################################################################################
################################################################################
### Options for logging
# for more information on file format syntax:
# http://docs.python.org/library/logging.config.html#configuration-file-format
[loggers]
keys = root
# handlers are higher in this config file, in:
# [handlers]
# keys = ...
[formatters]
keys = default
[logger_root]
# to increase verbosity, set DEBUG
level = INFO
handlers = stdout
propagate = 1
[handler_stdout]
class = StreamHandler
level = INFO
formatter = default
# rotate at midnight, each day and keep 7 days
args = (sys.stdout,)
[formatter_default]
format = [%(asctime)s] [%(threadName)s] %(message)s
datefmt =