-
Notifications
You must be signed in to change notification settings - Fork 0
/
diamond-test.conf
220 lines (170 loc) · 4.92 KB
/
diamond-test.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
################################################################################
# Diamond Configuration File
################################################################################
################################################################################
### Options for the server
[server]
# Handlers for published metrics.
#handlers = diamond.handler.graphite.GraphiteHandler, diamond.handler.archive.ArchiveHandler, diamond.handler.tsdb.TSDBHandler
#handlers = diamond.handler.tsdb.TSDBHandler, diamond.handler.archive.ArchiveHandler,diamond.handler.wavefront.WavefrontHandler
#handlers = diamond.handler.archive.ArchiveHandler
handlers = diamond.handler.wavefront.WavefrontHandler,diamond.handler.archive.ArchiveHandler
# 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 = /tmp/diamond.pid
# Directory to load collector modules from
collectors_path = /home/rob/work/sunos-diamond-collectors/collectors
# Directory to load collector configs from
collectors_config_path = /home/rob/work/diamond/
# Directory to load handler configs from
#handlers_config_path = /etc/diamond/handlers/
# Directory to load handler modules from
#handlers_path = /home/rob/work/sunos-diamond-collectors/handlers,/opt/diamond/lib/python2.7/site-packages/diamond/handler
################################################################################
### Options for handlers
[handlers]
# daemon logging handler(s)
keys = rotated_file
### Defaults options for all Handlers
[[default]]
[[ArchiveHandler]]
log_file = /var/tmp/diamond_archive.log
days = 7
[[WavefrontHandler]]
port = 2878
host = wavefront
timeout = 15
#
### Metrics batch size
batch = 100
################################################################################
### Options for collectors
[collectors]
[[default]]
hostname_method = uname_short
# 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_suffix = dev.diamond.host
# 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 = 1
################################################################################
# Default enabled collectors
################################################################################
#[[CPUCollector]]
#enabled = True
#[[DiskSpaceCollector]]
#enabled = True
#[[DiskUsageCollector]]
#enabled = True
#[[LoadAverageCollector]]
#enabled = True
#[[MemoryCollector]]
#enabled = True
#[[VMStatCollector]]
#enabled = True
#
##[[ZpoolCollector]]
#interval = 1
#enabled = True
#fields = __all__
#count = volume
#
[[ ZfsCollector ]]
enabled = True
#
#[[ SmfSvcCollector ]]
#enabled = True
#[[ NtpdCollector ]]
#enabled = True
#
#[[ FMACollector ]]
#enabled = True
#
#[[ SunOSDiskHealthCollector ]]
#enabled = True
#[[ SunOSNFSClientCollector ]]
#nfs_vers = 3,4
#enabled = True
#fields = read,write,remove
#[[ SunOSNFSServerCollector ]]
#interval = 10
#enabled = True
#nfs_vers = 3
#fields = read,write,remove
#[[ SunOSNetworkCollector ]]
#enabled = True
#zones = shark-ws,global
#fields = obytes64
#
#[[ ZoneUsageCollector ]]
#enabled = True
#[[ SunOSIOCollector ]]
#enabled = True
#fields = nread,nwritten
#[[ SmartOSZoneCollector ]]
#enabled = True
#[[ SunOSSwapCollector ]]
#enabled = True
#
#[[ SunOSCPUCollector ]]
#enabled = True
#as_nsec_delta = __all__
#as_pc_delta = __all__
#fields = __all__
#[[ ZonesCollector ]]
#enabled = True
#[[ ZFSArcCollector ]]
#enabled = True
#[[ SunOSMemoryCollector ]]
#enabled = True
################################################################################
#
### 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]
level = DEBUG
handlers = rotated_file
propagate = 1
[handler_rotated_file]
class = handlers.TimedRotatingFileHandler
level = DEBUG
formatter = default
# rotate at midnight, each day and keep 7 days
args = ('/var/log/diamond/diamond.log', 'midnight', 1, 7)
[formatter_default]
format = [%(asctime)s] [%(threadName)s] %(message)s
datefmt =
################################################################################
### Options for config merging
# [configs]
# path = "/etc/diamond/configs/"
# extension = ".conf"
#-------------------------------------------------------------------------------
# Example:
# /etc/diamond/configs/net.conf
# [collectors]
#
# [[NetworkCollector]]
# enabled = True