forked from shundezhang/reporting-producers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.example
428 lines (423 loc) · 11.7 KB
/
config.yaml.example
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
global:
# you can overwrite the hostname here
hostname: alias.host.name
collector:
cpu:
input:
type: file
path: "/proc/stat"
frequency: 10
parser:
type: class
name: reporting.plugins.linux.CPUParser
output: buffer
metadata:
schema: linux.cpu
version: 1
memory:
input:
type: file
path: "/proc/meminfo"
frequency: 10
parser:
type: class
name: reporting.plugins.linux.MemParser
output: buffer
metadata:
schema: linux.memory
version: 1
netdev:
input:
type: file
path: "/proc/net/dev"
frequency: 10
parser:
type: class
name: reporting.plugins.linux.NetDevParser
arguments:
include_devices:
- eth*
- bond0
output: buffer
metadata:
schema: linux.netdev
version: 1
load:
input:
type: file
path: "/proc/loadavg"
frequency: 10
parser:
type: split
delimiter: |
\s
transform: |
{{"1m":{0}, "5m":{1}, "15m":{2}}}
output: buffer
metadata:
schema: linux.load
version: 1
df:
input:
type: command
source: "/bin/df -Pk"
frequency: 60
parser:
type: class
name: reporting.plugins.linux.DfParser
arguments:
exclude_devices:
- tmpfs
- udev
- none
output: buffer
metadata:
schema: linux.df
version: 1
xfs_quota_report:
input:
type: command
source: "/usr/sbin/xfs_quota -x -c 'report -u'"
frequency: 600
parser:
type: class
name: reporting.plugins.xfs.QuotaReportParser
arguments:
exclude_users:
- root
- bin
- daemon
- games
- gdm
- rpcuser
- nagios
- apache
- nobody
- nfsnobody
output: buffer
metadata:
schema: xfs.quota.report
version: 1
xfs_stat:
input:
type: file
path: "/proc/fs/xfs/stat"
frequency: 10
parser:
type: class
name: reporting.plugins.xfs.StatParser
output: buffer
metadata:
schema: xfs.stat
version: 1
pbs_server_log:
input:
type: tailer
path: /var/spool/torque/server_logs/*
collect_history_data: False
frequency: 1
parser:
type: class
name: reporting.plugins.pbs.ServerLogParser
output: kafka-http
metadata:
schema: pbs.server.log
version: 1
pbs_accounting_log:
input:
type: tailer
path: /var/spool/torque/server_priv/accounting/*
collect_history_data: True
frequency: 1
parser:
type: class
name: reporting.plugins.pbs.AccountingLogParser
output: kafka-http
metadata:
schema: pbs.accounting.log
version: 1
pbs_mom_log:
input:
type: tailer
path: /var/spool/torque/mom_logs/*
collect_history_data: False
frequency: 1
parser:
type: class
name: reporting.plugins.pbs.MomLogParser
output: kafka-http
metadata:
schema: pbs.server.log
version: 1
mountstats:
input:
type: file
path: "/proc/self/mountstats"
frequency: 10
parser:
type: class
name: reporting.plugins.nfs.MountstatsParser
arguments:
fstype:
- nfs
- nfs4
output: buffer
metadata:
schema: nfs.mountstats
version: 1
hcp_chargeback_one_tenant:
input:
type: http
url: https://tenant1.hcp1.s3.ersa.edu.au:9090/mapi/tenants/tenant1/chargebackReport
headers:
Authorization: "HCP user:token"
Accept: "application/json"
frequency: 10
parser:
type: json
arguments:
pattern: "chargebackData"
list_name: "hcp-chargeback"
output: buffer
metadata:
schema: hcp.chargeback
version: 1
hcp.chargeback_all_tenants:
input:
type: class
name: reporting.plugins.hcp.ChargeBackInput
arguments:
host: dev.hcp1.s3.ersa.edu.au:9090
username: username
password: password
query_period: 1
frequency: 60
output: buffer
metadata:
schema: hcp.chargeback
version: 1
zfs_kstat:
input:
type: class
name: reporting.plugins.zfs.KstatInput
frequency: 5
output: buffer
metadata:
schema: zfs.kstat
version: 1
zfs_iostat:
input:
type: command
source: "/sbin/zpool iostat"
frequency: 5
parser:
type: class
name: reporting.plugins.zfs.IostatParser
output: buffer
metadata:
schema: zfs.iostat
version: 1
zfs_list:
input:
type: command
source: "/sbin/zfs list -o name,avail,used,ratio"
frequency: 5
parser:
type: class
name: reporting.plugins.zfs.ListParser
output: buffer
metadata:
schema: zfs.list
version: 1
libvirt:
input:
type: class
name: reporting.plugins.kvm.LibvirtInput
frequency: 5
output: buffer
metadata:
schema: libvirt
version: 1
mysql_stat:
input:
type: command
source: "/usr/bin/mysqladmin stat"
frequency: 5
parser:
type: split
delimiter: |
\s+
transform: |
{{"Uptime":{1},"Threads":{3},"Questions":{5},"Slow queries":{8},"Opens":{10},"Flush tables":{13},"Open tables":{16},"Queries per second avg":{21}}}
output: buffer
metadata:
schema: mysql.stat
version: 1
mysql_proc:
input:
type: command
source: "/usr/bin/mysqladmin proc"
frequency: 10
parser:
type: class
name: reporting.plugins.mysql.ProcParser
output: buffer
metadata:
schema: mysql.proc
version: 1
mysql_status:
input:
type: command
source: "/usr/bin/mysqladmin extended"
frequency: 10
parser:
type: class
name: reporting.plugins.mysql.StatusParser
output: buffer
metadata:
schema: mysql.proc
version: 1
rabbitmq_overview:
input:
type: http
url: http://localhost:15672/api/overview
auth:
username: reporting
password: password
headers:
Accept: "application/json"
frequency: 10
parser:
type: json
arguments:
pattern: ""
output: buffer
metadata:
schema: rabbitmq.overview
version: 1
rabbitmq_nodes:
input:
type: http
url: http://localhost:15672/api/nodes
auth:
username: reporting
password: password
headers:
Accept: "application/json"
frequency: 10
parser:
type: json
arguments:
pattern: ""
output: buffer
metadata:
schema: rabbitmq.overview
version: 1
hnas_filesystems:
input:
type: class
name: reporting.plugins.hnas.FileSystemsInput
arguments:
host: hostname
username: reporting
password: password
frequency: 600
output: buffer
metadata:
schema: hnas.filesystems
version: 1
nova_list:
input:
type: class
name: reporting.plugins.openstack.NovaListInput
arguments:
project: tenant-name
username: username
password: token
auth_url: https://keystone.rc.nectar.org.au:5000/v2.0/
frequency: 600
output: buffer
metadata:
schema: nova.list
version: 1
keystone_list:
input:
type: class
name: reporting.plugins.openstack.KeystoneListInput
arguments:
project: tenant-name
username: username
password: token
auth_url: https://keystone.rc.nectar.org.au:5000/v2.0/
frequency: 600
output: buffer
metadata:
schema: keystone.list
version: 1
cinder_list:
input:
type: class
name: reporting.plugins.openstack.CinderListInput
arguments:
project: tenant-name
username: username
password: token
auth_url: https://keystone.rc.nectar.org.au:5000/v2.0/
frequency: 600
output: buffer
metadata:
schema: cinder.list
version: 1
swift_usage:
input:
type: class
name: reporting.plugins.openstack.SwiftUsageInput
arguments:
project: tenant-name
username: username
password: token
auth_url: https://keystone.rc.nectar.org.au:5000/v2.0/
frequency: 600
output: buffer
metadata:
schema: swift.usage
version: 1
filesystem_usage_tmp:
input:
type: class
name: reporting.plugins.linux.FileSystemUsage
arguments:
path: /tmp
output: buffer
metadata:
schema: filesystem.usage
version: 1
tailer:
db_path: /mnt/producer/tailer.db
max_line_number: 300
output:
# Reporting API server (kafka's http front end)
kafka-http:
url: https://collector.dyn.ersa.edu.au:3772/v1/topic/emu
username: test
token: test
timeout: 10
# local cache that holds data temporarily before pushing to server
buffer:
directory: /mnt/producer/cache
size: 4096000
# file output for testing (everything message will be saved into this file)
file:
path: /mnt/producer/out
# a pusher to push data in local cache
pusher:
# Local staging directory
directory: /tmp/producer-cache
output: kafka-http
back_off_indicator: /var/run/reporting-producer/back-off
stats_on: True
logging:
log_level: 3
log_location: /tmp/producer.log
log_format: "%(asctime)s - %(levelname)s - %(processName)s - %(threadName)s - %(message)s"
log_max_size: 2097152