-
Notifications
You must be signed in to change notification settings - Fork 261
/
kitchen.yml
623 lines (582 loc) · 14.6 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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
---
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(
amazonlinux-2
ubuntu-14.04
ubuntu-16.04
centos-5.11
centos-6.6
centos-7.1
debian-7.8
debian-9.13
debian-10.11
rockylinux-8.5
)
chef_versions = %w(
12.7.2
14.10.9
16.5
17
18
)
test_platforms.product(chef_versions).each do |platform_version, chef_version|
%>
- name: <%= platform_version %>-<%= chef_version %>
driver_config:
box: bento/<%= platform_version %>
require_chef_omnibus: <%= chef_version %>
<% end
windows_platform = 'windows-2012r2'
windows_chef_versions = %w(
12.7.2
13.11.3
14
15
)
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-agent-iot
run_list:
- recipe[datadog::dd-agent]
attributes:
datadog: &DATADOG
api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
install_info_enabled: true
agent_flavor: datadog-iot-agent
aptrepo: 'https://apt.datad0g.com'
aptrepo_dist: 'beta'
agent_version: '7.20.0~rc.3'
- name: system-probe
run_list:
- recipe[datadog::dd-agent]
attributes:
datadog: &DATADOG
aptrepo: 'http://apt.datad0g.com'
aptrepo_dist: 'beta'
# agent_version: '1:6.11.3~rc.2-1'
agent_package_action: 'install'
agent_allow_downgrade: true
api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
system_probe:
enabled: true
sysprobe_socket: /opt/datadog-agent/run/sysprobe.sock
debug_port: 7654
bpf_debug: true
enable_conntrack: true
- name: security-agent
run_list:
- recipe[datadog::dd-agent]
attributes:
datadog: &DATADOG
aptrepo: 'http://apt.datad0g.com'
aptrepo_dist: 'beta'
api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
security_agent:
cws:
enabled: true
- 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
index_stats: true
shard_level_metrics: true
tags:
- kitchen
- sink
- 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_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
consumer_groups:
my_consumer:
my_topic: [0, 1, 4, 12]
monitor_unlisted_consumer_groups: true
zk_connect_str: localhost:2181
zk_prefix: /0.8
kafka_consumer_offsets: true
- name: datadog_mesos_master
run_list:
- recipe[datadog::mesos_master]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
mesos_master:
instances:
- url: localhost:5050
timeout: 8
tags:
- master
- tata
init_config:
default_timeout: 10
- name: datadog_mesos_slave
run_list:
- recipe[datadog::mesos_slave]
excludes: *WINDOWS_PLATFORMS
attributes:
datadog:
<<: *DATADOG
mesos_slave:
instances:
- url: localhost:5050
timeout: 8
tags:
- slave
- 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_rabbitmq
run_list:
- recipe[datadog::rabbitmq]
attributes:
datadog:
<<: *DATADOG
rabbitmq:
instances:
- api_url: 'http://localhost:15672/api/'
user: someuser
pass: somepassword
max_detailed_exchanges: 300
max_detailed_queues: 300
tags:
- tag1
- tag2
nodes:
- node1
- node2
nodes_regexes:
- node3.*
- node4.*
queues:
- queue1
- queue2
queues_regexes:
- queue3.*
- queue4.*
vhosts:
- vhost1
- vhost2
timeout: 30
- 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
# Integrations test of the datadog_integration resource
- name: dd_integration_resource
run_list:
- recipe[datadog::dd-agent]
- recipe[test::dd_integration_resource]
attributes:
datadog:
<<: *DATADOG
# Autogenerated monitor
- name: datadog_ignite
run_list:
- recipe[datadog::ignite]
attributes:
datadog:
<<: *DATADOG
ignite:
init_config:
is_jmx: true
instances:
- host: localhost
port: 49112
- name: datadog_jboss_wildfly
run_list:
- recipe[datadog::jboss_wildfly]
attributes:
datadog:
<<: *DATADOG
jboss_wildfly:
init_config:
custom_jar_paths: ["/opt/wildfly/bin/client/jboss-client.jar"]
instances:
- jmx_url: localhost:9990
tools_jar_path: /opt/wildfly/bin/client/jboss-client.jar