forked from DataDog/chef-datadog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
550 lines (513 loc) · 12.8 KB
/
.kitchen.yml
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
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
---
driver:
name: vagrant
customize:
memory: 1024
platforms:
# Loop through two lists and output a total matrix of all possible platform + chef versions
# fedora-20 needs kitchen-docker 1.7.0, but other bugs prevent that version from being used.
<% test_platforms = %w(
ubuntu-14.04
ubuntu-12.04
centos-6.6
centos-5.11
centos-7.1
debian-7.7
)
chef_versions = %w(
13
12.2.1
11.18.6
)
test_platforms.product(chef_versions).each do |platform_version, chef_version|
%>
- name: <%= platform_version %>-<%= chef_version %>
driver_config:
box: opscode_<%= platform_version %>_chef-provisionerless
box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_<%= platform_version %>_chef-provisionerless.box
require_chef_omnibus: <%= chef_version %>
<% end
windows_platform = 'windows-2012r2'
windows_chef_versions = %w(
13
12.2.1
)
windows_chef_versions.each do |chef_version|
%>
- name: <%= windows_platform %>-<%= chef_version %>
driver_config:
box: mwrock/Windows2012R2 # lightweight windows box
require_chef_omnibus: <%= chef_version %>
communicator: winrm
customize:
usb: "off" # USB is disabled on this box to make it more lightweight
vrde: "on" # enable RDP
transport:
name: winrm
<% end %>
suites:
# - name: default
# run_list: ["recipe[datadog::default]"]
# attributes: {}
# # This should actually do nothing.
# # There is a sanity.bats test to simply verify that /tmp exists.
- name: dd-agent
run_list:
- recipe[datadog::dd-agent]
attributes:
datadog: &DATADOG
api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
- name: dd-handler
run_list:
- recipe[datadog::dd-handler]
attributes:
datadog: &DATADOG
api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
- name: datadog_apache
run_list:
- recipe[datadog::apache]
attributes:
datadog:
<<: *DATADOG
apache:
instances:
- status_url: http://mysite.com/server-status?auto
apache_user: someusername
apache_password: sekret
tags:
- kitchen
- sink
- name: datadog_cacti
run_list:
- recipe[datadog::cacti]
excludes: &WINDOWS_PLATFORMS
<% chef_versions.each do |chef_version| %>
- <%= windows_platform %>-<%= chef_version %>
<% end %>
attributes:
datadog:
<<: *DATADOG
cacti:
instances:
- mysql_host: localhost
mysql_user: mysql_read_only
mysql_password: mysql_read_only_password
rrd_path: /path/to/cacti/rra
rrd_whitelist: /path/to/rrd_whitelist.txt
field_names:
- ifIndex
- dskDevice
- ifName
- name: datadog_consul
run_list:
- recipe[datadog::consul]
attributes:
datadog:
<<: *DATADOG
consul:
instances:
- url: http://localhost:8500
new_leader_checks: false
catalog_checks: false
service_whitelist: consul
tags: ['_default']
- name: datadog_cassandra
run_list:
- recipe[datadog::cassandra]
attributes:
datadog:
<<: *DATADOG
cassandra:
instances:
- host: localhost
port: 7199
user: someuser
password: somepass
process_name_regex: .*cassandra.*
- name: datadog_cassandra_version
run_list:
- recipe[datadog::cassandra]
attributes:
datadog:
<<: *DATADOG
cassandra:
version: 2
instances:
- host: localhost
port: 7199
user: someuser
password: somepass
process_name_regex: .*cassandra.*
- name: datadog_couchdb
run_list:
- recipe[datadog::couchdb]
attributes:
datadog:
<<: *DATADOG
couch:
instances:
- server: http://localhost:5984
user: someuser
password: somepass
- name: datadog_etcd
run_list:
- recipe[datadog::etcd]
attributes:
datadog:
<<: *DATADOG
etcd:
instances:
- url: http://localhost:2379
timeout: 5
ssl_keyfile: /etc/etcd/ssl.key
ssl_certfile: /etc/etcd/ssl.crt
ssl_cert_validation: true
ssl_ca_certs: /etc/etcd/ca-certs.crt
- name: datadog_docker
run_list:
- recipe[datadog::docker]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
docker:
init_config:
docker_root: /
socket_timeout: 10
instances:
- url: unix://var/run/docker.sock
new_tag_names: false
tag_by_command: false
tags:
- toto
- tata
include:
- docker_image:ubuntu
- docker_image:debian
exclude:
- .*
collect_events: true
collect_container_size: false
collect_all_metrics: false
collect_images_stats: false
- name: datadog_elasticsearch
run_list:
- recipe[datadog::elasticsearch]
attributes:
datadog:
<<: *DATADOG
elasticsearch:
instances:
- url: http://localhost:9200
username: someuser
password: somepass
is_external: false
pshard_stats: true
shard_level_metrics: true
tags:
- kitchen
- sink
- name: datadog_fluentd
run_list:
- recipe[datadog::fluentd]
attributes:
datadog:
<<: *DATADOG
fluentd:
instances:
- monitor_agent_url: http://localhost.com:24220/api/plugins.json
plugin_ids:
- api
- plugin
tags:
- kitchen
- sink
- name: datadog_haproxy
run_list:
- recipe[datadog::haproxy]
attributes:
datadog:
<<: *DATADOG
haproxy:
instances:
- username: admin
password: sekret
url: http://localhost:22002/status
status_check: false
collect_aggregates_only: true
collect_status_metrics: true
- name: datadog_http_check
run_list:
- recipe[datadog::http_check]
attributes:
datadog:
<<: *DATADOG
http_check:
instances:
- name: test
url: http://localhost/
- name: test2
url: http://localhost/
- name: datadog_jmx
run_list:
- recipe[datadog::jmx]
attributes:
datadog:
<<: *DATADOG
jmx:
instances:
- host: localhost
port: 7199
user: someuser
password: somepass
name: jmx_instance
tags:
env: stage
newTag: test
conf:
- include:
domain: my_domain
bean:
- my_bean
- my_second_bean
attribute:
attribute1:
metric_type: counter
alias: jmx.my_metric_name
attribute2:
metric_type: gauge
alias: jmx.my2ndattribute
- include:
domain: 2nd_domain
exclude:
bean:
- excluded_bean
- include:
domain_regex: regex_on_domain
exclude:
bean_regex:
- regex_on_excluded_bean
- name: datadog_mongo
run_list:
- recipe[datadog::mongo]
attributes:
datadog:
<<: *DATADOG
mongo:
instances:
- host: localhost
port: 27017
- name: datadog_mysql
run_list:
- recipe[datadog::mysql]
attributes:
datadog:
<<: *DATADOG
mysql:
instances:
- server: 1.1.1.1
port: 3307
user: my_username
pass: my_password
sock: /path/to/mysql.sock
tags: ['prod', 'my_app']
options:
- 'replication: 0'
queries:
- type: gauge
field: users_count
metric: my_app.my_users.count
query: SELECT COUNT(1) AS users_count FROM users
- type: gauge
field: max_query_time
metric: mysql.performance.max_query_time
query: SELECT IFNULL(MAX(TIME), 0) AS max_query_time FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND != 'Sleep'
- name: datadog_ntp
run_list:
- recipe[datadog::ntp]
attributes:
datadog:
<<: *DATADOG
ntp:
instances:
- offset_threshold: 600
host: europe.pool.ntp.org
port: 9999
version: 4
timeout: 10
- name: datadog_kafka
run_list:
- recipe[datadog::kafka]
attributes:
datadog:
<<: *DATADOG
kafka:
instances:
- host: localhost
port: 9999
name: my_kafka
user: username
password: password
java_bin_path: /path/to/java
trust_store_path: /path/to/trustStore.jks
trust_store_password: password
- name: datadog_kafka_consumer
run_list:
- recipe[datadog::kafka_consumer]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
kafka_consumer:
instances:
- kafka_connect_str: localhost:19092
zk_connect_str: localhost:2181
zk_prefix: /0.8
consumer_groups:
my_consumer:
my_topic: [0, 1, 4, 12]
- name: datadog_mesos
run_list:
- recipe[datadog::mesos]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
mesos:
instances:
- url: localhost:5050
timeout: 8
tags:
- toto
- tata
init_config:
default_timeout: 10
- name: datadog_pgbouncer
run_list:
- recipe[datadog::pgbouncer]
attributes:
datadog:
<<: *DATADOG
pgbouncer:
instances:
- host: localhost
port: 6432
username: john
password: doe
tags:
- toto
- tata
- name: datadog_process
run_list:
- recipe[datadog::process]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
process:
instances:
- name: "pidname"
exact_match: false
ignore_denied_access: true
tags:
- "env:test"
- "appname:somename"
search_string:
- "somepid"
- "pidname"
- name: datadog_ssh_check
run_list:
- recipe[datadog::ssh_check]
attributes:
datadog:
<<: *DATADOG
ssh_check:
instances:
- host: localhost
username: root
password: password
add_missing_keys: false
tags:
- tag1
- tag2
- host: sftp_server.example.com
username: test
port: 2323
sftp_check: true
private_key_file: /path/to/key
tags:
- tag1
- tag3
- name: datadog_supervisord
run_list:
- recipe[datadog::supervisord]
attributes:
datadog:
<<: *DATADOG
supervisord:
instances:
- name: server0
socket: unix:///var/run/default-supervisor.sock
- name: server1
host: localhost
port: 9001
user: user
pass: pass
proc_names:
- apache2
- webapp
- name: datadog_tcp_check
run_list:
- recipe[datadog::tcp_check]
attributes:
datadog:
<<: *DATADOG
tcp_check:
instances:
- name: test
host: localhost
port: 1234
- name: test2
host: localhost
port: 5678
- name: datadog_integrations
run_list:
- recipe[datadog::dd-agent]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
extra_packages:
twemproxy:
name: dd-check-twemproxy
version: 0.1.0-1
twemproxy:
instances:
- url: http://localhost:22222
- name: datadog_postfix
run_list:
- recipe[sudo]
- recipe[datadog::postfix]
attributes:
authorization:
sudo:
include_sudoers_d: true
datadog:
<<: *DATADOG
postfix:
instances:
- directory: "/var/spool/postfix"
queues:
- incoming
- active
- deferred
tags:
- prod
- postfix_core
- directory: "/var/spool/postfix"
queues:
- bounce
tags:
- test