chef-handler-datadog 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +3 -0
  3. data/.rubocop.yml +4 -0
  4. data/.travis.yml +2 -1
  5. data/Appraisals +2 -1
  6. data/CHANGELOG.md +13 -1
  7. data/CONTRIBUTING.md +23 -0
  8. data/Gemfile +4 -0
  9. data/Guardfile +37 -0
  10. data/README.md +12 -20
  11. data/Rakefile +1 -1
  12. data/chef-handler-datadog.gemspec +4 -4
  13. data/gemfiles/chef_10.26.0.gemfile +4 -0
  14. data/gemfiles/chef_10.32.2.gemfile +4 -0
  15. data/gemfiles/chef_11.10.4.gemfile +4 -0
  16. data/gemfiles/{chef_11.12.2.gemfile → chef_11.12.8.gemfile} +5 -1
  17. data/gemfiles/chef_11.14.2.gemfile +16 -0
  18. data/gemfiles/chef_11.8.2.gemfile +4 -0
  19. data/lib/chef/handler/datadog.rb +47 -12
  20. data/lib/chef_handler_datadog.rb +1 -1
  21. data/spec/datadog_spec.rb +58 -8
  22. data/spec/spec_helper.rb +0 -1
  23. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +69 -57
  24. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +35 -29
  25. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +35 -29
  26. data/spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml +20 -20
  27. data/spec/support/cassettes/Chef_Handler_Datadog/handles_tags_correctly/sets_the_role_and_env_and_tags.yml +23 -23
  28. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +23 -23
  29. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +23 -23
  30. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/does_not_use_the_instance_id_when_config_specified_to_false.yml +23 -23
  31. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +23 -23
  32. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +23 -23
  33. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +23 -23
  34. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +23 -23
  35. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +23 -23
  36. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml +23 -23
  37. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/does_not_emit_metrics.yml +81 -0
  38. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +81 -0
  39. data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +28 -28
  40. metadata +18 -16
  41. data/gemfiles/chef_10.26.0.gemfile.lock +0 -140
  42. data/gemfiles/chef_10.32.2.gemfile.lock +0 -140
  43. data/gemfiles/chef_11.10.4.gemfile.lock +0 -143
  44. data/gemfiles/chef_11.12.2.gemfile.lock +0 -139
  45. data/gemfiles/chef_11.8.2.gemfile.lock +0 -143
@@ -17,7 +17,6 @@ API_KEY = ENV['API_KEY']
17
17
  APPLICATION_KEY = ENV['APPLICATION_KEY']
18
18
 
19
19
  RSpec.configure do |config|
20
- config.treat_symbols_as_metadata_keys_with_true_values = true
21
20
  config.run_all_when_everything_filtered = true
22
21
  config.filter_run :focus
23
22
 
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"series":[{"metric":"chef.resources.total","points":[[1398187132,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
8
+ string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567936,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*'
@@ -21,9 +21,9 @@ http_interactions:
21
21
  Content-Type:
22
22
  - text/json; charset=UTF-8
23
23
  Date:
24
- - Tue, 22 Apr 2014 17:18:52 GMT
24
+ - Wed, 20 Aug 2014 20:52:14 GMT
25
25
  Server:
26
- - dogdispatcher/4.12.1
26
+ - dogdispatcher/5.1.1
27
27
  Content-Length:
28
28
  - '15'
29
29
  Connection:
@@ -32,13 +32,13 @@ http_interactions:
32
32
  encoding: US-ASCII
33
33
  string: ! '{"status":"ok"}'
34
34
  http_version:
35
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
35
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
36
36
  - request:
37
37
  method: post
38
38
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
39
  body:
40
40
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1398187132,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
41
+ string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567936,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
42
42
  headers:
43
43
  Accept:
44
44
  - ! '*/*'
@@ -54,9 +54,9 @@ http_interactions:
54
54
  Content-Type:
55
55
  - text/json; charset=UTF-8
56
56
  Date:
57
- - Tue, 22 Apr 2014 17:18:53 GMT
57
+ - Wed, 20 Aug 2014 20:52:15 GMT
58
58
  Server:
59
- - dogdispatcher/4.12.1
59
+ - dogdispatcher/5.1.1
60
60
  Content-Length:
61
61
  - '15'
62
62
  Connection:
@@ -65,13 +65,13 @@ http_interactions:
65
65
  encoding: US-ASCII
66
66
  string: ! '{"status":"ok"}'
67
67
  http_version:
68
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
68
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
69
69
  - request:
70
70
  method: post
71
71
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
72
  body:
73
73
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1398187132,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
74
+ string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567936,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
75
75
  headers:
76
76
  Accept:
77
77
  - ! '*/*'
@@ -87,9 +87,9 @@ http_interactions:
87
87
  Content-Type:
88
88
  - text/json; charset=UTF-8
89
89
  Date:
90
- - Tue, 22 Apr 2014 17:18:54 GMT
90
+ - Wed, 20 Aug 2014 20:52:15 GMT
91
91
  Server:
92
- - dogdispatcher/4.12.1
92
+ - dogdispatcher/5.1.1
93
93
  Content-Length:
94
94
  - '15'
95
95
  Connection:
@@ -98,18 +98,22 @@ http_interactions:
98
98
  encoding: US-ASCII
99
99
  string: ! '{"status":"ok"}'
100
100
  http_version:
101
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
101
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
102
102
  - request:
103
103
  method: post
104
104
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
105
  body:
106
106
  encoding: UTF-8
107
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
108
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1398187132,"msg_title":"Chef
107
+ string: ! '{"msg_text":"Chef updated 6 resources out of 6 resources total.\n$$$\n-
108
+ [paws] (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
109
+ defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
110
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","date_happened":1408567936,"msg_title":"Chef
109
111
  failed in 2 seconds on chef.handler.datadog.test-failed ","priority":"normal","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-failed","alert_type":"error","event_type":"config_management.run","source_type_name":"chef","title":"Chef
110
112
  failed in 2 seconds on chef.handler.datadog.test-failed ","text":"Chef updated
111
- 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
112
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","host":"chef.handler.datadog.test-failed","device":null}'
113
+ 6 resources out of 6 resources total.\n$$$\n- [paws] (dynamically defined)\n-
114
+ [ears] (dynamically defined)\n- [nose] (dynamically defined)\n- [tail] (dynamically
115
+ defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
116
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","host":"chef.handler.datadog.test-failed","device":null}'
113
117
  headers:
114
118
  Accept:
115
119
  - ! '*/*'
@@ -125,23 +129,25 @@ http_interactions:
125
129
  Content-Type:
126
130
  - text/json; charset=UTF-8
127
131
  Date:
128
- - Tue, 22 Apr 2014 17:18:55 GMT
132
+ - Wed, 20 Aug 2014 20:52:16 GMT
129
133
  Server:
130
- - dogdispatcher/4.12.1
134
+ - dogdispatcher/5.1.1
131
135
  Content-Length:
132
- - '474'
136
+ - '673'
133
137
  Connection:
134
138
  - keep-alive
135
139
  body:
136
140
  encoding: US-ASCII
137
141
  string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
138
- 1398187132, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
139
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246876398487094962",
140
- "text": "Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
141
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n", "tags": [], "related_event_id":
142
- null, "id": 2246876398487094962}}'
142
+ 1408567936, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
143
+ ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2421037339150571384",
144
+ "text": "Chef updated 6 resources out of 6 resources total.\n$$$\n- [paws]
145
+ (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
146
+ defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
147
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n",
148
+ "tags": [], "related_event_id": null, "id": 2421037339150571384}}'
143
149
  http_version:
144
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
150
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
145
151
  - request:
146
152
  method: put
147
153
  uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
@@ -165,11 +171,11 @@ http_interactions:
165
171
  Content-Type:
166
172
  - application/json
167
173
  Date:
168
- - Tue, 22 Apr 2014 17:18:56 GMT
174
+ - Wed, 20 Aug 2014 20:52:17 GMT
169
175
  Pragma:
170
176
  - no-cache
171
177
  Server:
172
- - gunicorn/0.17.4
178
+ - gunicorn/19.1.0
173
179
  Content-Length:
174
180
  - '112'
175
181
  Connection:
@@ -179,13 +185,13 @@ http_interactions:
179
185
  string: ! '{"host": "chef.handler.datadog.test-failed", "tags": ["env:hostile",
180
186
  "role:highlander", "tag:the_one_and_only"]}'
181
187
  http_version:
182
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
188
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
183
189
  - request:
184
190
  method: post
185
191
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
186
192
  body:
187
193
  encoding: UTF-8
188
- string: ! '{"series":[{"metric":"chef.resources.total","points":[[1398187132,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
194
+ string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567936,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
189
195
  headers:
190
196
  Accept:
191
197
  - ! '*/*'
@@ -201,9 +207,9 @@ http_interactions:
201
207
  Content-Type:
202
208
  - text/json; charset=UTF-8
203
209
  Date:
204
- - Tue, 22 Apr 2014 17:18:58 GMT
210
+ - Wed, 20 Aug 2014 20:52:17 GMT
205
211
  Server:
206
- - dogdispatcher/4.12.1
212
+ - dogdispatcher/5.1.1
207
213
  Content-Length:
208
214
  - '15'
209
215
  Connection:
@@ -212,13 +218,13 @@ http_interactions:
212
218
  encoding: US-ASCII
213
219
  string: ! '{"status":"ok"}'
214
220
  http_version:
215
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
221
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
216
222
  - request:
217
223
  method: post
218
224
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
219
225
  body:
220
226
  encoding: UTF-8
221
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1398187132,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
227
+ string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567936,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
222
228
  headers:
223
229
  Accept:
224
230
  - ! '*/*'
@@ -234,9 +240,9 @@ http_interactions:
234
240
  Content-Type:
235
241
  - text/json; charset=UTF-8
236
242
  Date:
237
- - Tue, 22 Apr 2014 17:18:59 GMT
243
+ - Wed, 20 Aug 2014 20:52:18 GMT
238
244
  Server:
239
- - dogdispatcher/4.12.1
245
+ - dogdispatcher/5.1.1
240
246
  Content-Length:
241
247
  - '15'
242
248
  Connection:
@@ -245,13 +251,13 @@ http_interactions:
245
251
  encoding: US-ASCII
246
252
  string: ! '{"status":"ok"}'
247
253
  http_version:
248
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
254
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
249
255
  - request:
250
256
  method: post
251
257
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
252
258
  body:
253
259
  encoding: UTF-8
254
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1398187132,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
260
+ string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567936,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
255
261
  headers:
256
262
  Accept:
257
263
  - ! '*/*'
@@ -267,9 +273,9 @@ http_interactions:
267
273
  Content-Type:
268
274
  - text/json; charset=UTF-8
269
275
  Date:
270
- - Tue, 22 Apr 2014 17:19:00 GMT
276
+ - Wed, 20 Aug 2014 20:52:19 GMT
271
277
  Server:
272
- - dogdispatcher/4.12.1
278
+ - dogdispatcher/5.1.1
273
279
  Content-Length:
274
280
  - '15'
275
281
  Connection:
@@ -278,18 +284,22 @@ http_interactions:
278
284
  encoding: US-ASCII
279
285
  string: ! '{"status":"ok"}'
280
286
  http_version:
281
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
287
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
282
288
  - request:
283
289
  method: post
284
290
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
285
291
  body:
286
292
  encoding: UTF-8
287
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.\nAlerting:
288
- @alice @bob\n\n@@@\nChef::Exceptions::UnsupportedAction: Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1398187132,"msg_title":"Chef
293
+ string: ! '{"msg_text":"Chef updated 6 resources out of 6 resources total.\n$$$\n-
294
+ [paws] (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
295
+ defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\nAlerting:
296
+ @alice @bob\n\n$$$\nChef::Exceptions::UnsupportedAction: Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","date_happened":1408567936,"msg_title":"Chef
289
297
  failed in 2 seconds on chef.handler.datadog.test-failed ","priority":"normal","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-failed","alert_type":"error","event_type":"config_management.run","source_type_name":"chef","title":"Chef
290
298
  failed in 2 seconds on chef.handler.datadog.test-failed ","text":"Chef updated
291
- 0 resources out of 0 resources total.\nAlerting: @alice @bob\n\n@@@\nChef::Exceptions::UnsupportedAction:
292
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","host":"chef.handler.datadog.test-failed","device":null}'
299
+ 6 resources out of 6 resources total.\n$$$\n- [paws] (dynamically defined)\n-
300
+ [ears] (dynamically defined)\n- [nose] (dynamically defined)\n- [tail] (dynamically
301
+ defined)\n- [fur] (dynamically defined)\n\n$$$\n\nAlerting: @alice @bob\n\n$$$\nChef::Exceptions::UnsupportedAction:
302
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","host":"chef.handler.datadog.test-failed","device":null}'
293
303
  headers:
294
304
  Accept:
295
305
  - ! '*/*'
@@ -305,23 +315,25 @@ http_interactions:
305
315
  Content-Type:
306
316
  - text/json; charset=UTF-8
307
317
  Date:
308
- - Tue, 22 Apr 2014 17:19:01 GMT
318
+ - Wed, 20 Aug 2014 20:52:19 GMT
309
319
  Server:
310
- - dogdispatcher/4.12.1
320
+ - dogdispatcher/5.1.1
311
321
  Content-Length:
312
- - '499'
322
+ - '698'
313
323
  Connection:
314
324
  - keep-alive
315
325
  body:
316
326
  encoding: US-ASCII
317
327
  string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
318
- 1398187132, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
319
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246876504015312374",
320
- "text": "Chef updated 0 resources out of 0 resources total.\nAlerting: @alice
321
- @bob\n\n@@@\nChef::Exceptions::UnsupportedAction: Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n",
322
- "tags": [], "related_event_id": null, "id": 2246876504015312374}}'
328
+ 1408567936, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
329
+ ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2421037393928238902",
330
+ "text": "Chef updated 6 resources out of 6 resources total.\n$$$\n- [paws]
331
+ (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
332
+ defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\nAlerting:
333
+ @alice @bob\n\n$$$\nChef::Exceptions::UnsupportedAction: Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n",
334
+ "tags": [], "related_event_id": null, "id": 2421037393928238902}}'
323
335
  http_version:
324
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
336
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
325
337
  - request:
326
338
  method: put
327
339
  uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
@@ -345,11 +357,11 @@ http_interactions:
345
357
  Content-Type:
346
358
  - application/json
347
359
  Date:
348
- - Tue, 22 Apr 2014 17:19:03 GMT
360
+ - Wed, 20 Aug 2014 20:52:20 GMT
349
361
  Pragma:
350
362
  - no-cache
351
363
  Server:
352
- - gunicorn/0.17.4
364
+ - gunicorn/19.1.0
353
365
  Content-Length:
354
366
  - '116'
355
367
  Connection:
@@ -359,5 +371,5 @@ http_interactions:
359
371
  string: ! '{"host": "chef.handler.datadog.test-failed", "tags": ["tag:tag:the_one_and_only",
360
372
  "env:hostile", "role:highlander"]}'
361
373
  http_version:
362
- recorded_at: Tue, 22 Apr 2014 17:18:52 GMT
363
- recorded_with: VCR 2.9.0
374
+ recorded_at: Wed, 20 Aug 2014 20:52:16 GMT
375
+ recorded_with: VCR 2.9.2
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"series":[{"metric":"chef.resources.total","points":[[1398157261,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
8
+ string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567933,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*'
@@ -21,9 +21,9 @@ http_interactions:
21
21
  Content-Type:
22
22
  - text/json; charset=UTF-8
23
23
  Date:
24
- - Tue, 22 Apr 2014 09:01:00 GMT
24
+ - Wed, 20 Aug 2014 20:52:12 GMT
25
25
  Server:
26
- - dogdispatcher/4.12.1
26
+ - dogdispatcher/5.1.1
27
27
  Content-Length:
28
28
  - '15'
29
29
  Connection:
@@ -32,13 +32,13 @@ http_interactions:
32
32
  encoding: US-ASCII
33
33
  string: ! '{"status":"ok"}'
34
34
  http_version:
35
- recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
35
+ recorded_at: Wed, 20 Aug 2014 20:52:13 GMT
36
36
  - request:
37
37
  method: post
38
38
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
39
  body:
40
40
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1398157261,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
41
+ string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567933,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
42
42
  headers:
43
43
  Accept:
44
44
  - ! '*/*'
@@ -54,9 +54,9 @@ http_interactions:
54
54
  Content-Type:
55
55
  - text/json; charset=UTF-8
56
56
  Date:
57
- - Tue, 22 Apr 2014 09:01:01 GMT
57
+ - Wed, 20 Aug 2014 20:52:12 GMT
58
58
  Server:
59
- - dogdispatcher/4.12.1
59
+ - dogdispatcher/5.1.1
60
60
  Content-Length:
61
61
  - '15'
62
62
  Connection:
@@ -65,13 +65,13 @@ http_interactions:
65
65
  encoding: US-ASCII
66
66
  string: ! '{"status":"ok"}'
67
67
  http_version:
68
- recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
68
+ recorded_at: Wed, 20 Aug 2014 20:52:13 GMT
69
69
  - request:
70
70
  method: post
71
71
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
72
  body:
73
73
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1398157261,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
74
+ string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567933,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
75
75
  headers:
76
76
  Accept:
77
77
  - ! '*/*'
@@ -87,9 +87,9 @@ http_interactions:
87
87
  Content-Type:
88
88
  - text/json; charset=UTF-8
89
89
  Date:
90
- - Tue, 22 Apr 2014 09:01:02 GMT
90
+ - Wed, 20 Aug 2014 20:52:13 GMT
91
91
  Server:
92
- - dogdispatcher/4.12.1
92
+ - dogdispatcher/5.1.1
93
93
  Content-Length:
94
94
  - '15'
95
95
  Connection:
@@ -98,18 +98,22 @@ http_interactions:
98
98
  encoding: US-ASCII
99
99
  string: ! '{"status":"ok"}'
100
100
  http_version:
101
- recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
101
+ recorded_at: Wed, 20 Aug 2014 20:52:13 GMT
102
102
  - request:
103
103
  method: post
104
104
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
105
  body:
106
106
  encoding: UTF-8
107
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
108
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1398157261,"msg_title":"Chef
107
+ string: ! '{"msg_text":"Chef updated 6 resources out of 6 resources total.\n$$$\n-
108
+ [paws] (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
109
+ defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
110
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","date_happened":1408567933,"msg_title":"Chef
109
111
  failed in 2 seconds on chef.handler.datadog.test-failed ","priority":"normal","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-failed","alert_type":"error","event_type":"config_management.run","source_type_name":"chef","title":"Chef
110
112
  failed in 2 seconds on chef.handler.datadog.test-failed ","text":"Chef updated
111
- 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
112
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","host":"chef.handler.datadog.test-failed","device":null}'
113
+ 6 resources out of 6 resources total.\n$$$\n- [paws] (dynamically defined)\n-
114
+ [ears] (dynamically defined)\n- [nose] (dynamically defined)\n- [tail] (dynamically
115
+ defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
116
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","host":"chef.handler.datadog.test-failed","device":null}'
113
117
  headers:
114
118
  Accept:
115
119
  - ! '*/*'
@@ -125,23 +129,25 @@ http_interactions:
125
129
  Content-Type:
126
130
  - text/json; charset=UTF-8
127
131
  Date:
128
- - Tue, 22 Apr 2014 09:01:04 GMT
132
+ - Wed, 20 Aug 2014 20:52:13 GMT
129
133
  Server:
130
- - dogdispatcher/4.12.1
134
+ - dogdispatcher/5.1.1
131
135
  Content-Length:
132
- - '474'
136
+ - '673'
133
137
  Connection:
134
138
  - keep-alive
135
139
  body:
136
140
  encoding: US-ASCII
137
141
  string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
138
- 1398157261, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
139
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246375237107537507",
140
- "text": "Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
141
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n", "tags": [], "related_event_id":
142
- null, "id": 2246375237107537507}}'
142
+ 1408567933, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
143
+ ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2421037292929640262",
144
+ "text": "Chef updated 6 resources out of 6 resources total.\n$$$\n- [paws]
145
+ (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
146
+ defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
147
+ Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n",
148
+ "tags": [], "related_event_id": null, "id": 2421037292929640262}}'
143
149
  http_version:
144
- recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
150
+ recorded_at: Wed, 20 Aug 2014 20:52:13 GMT
145
151
  - request:
146
152
  method: put
147
153
  uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
@@ -165,11 +171,11 @@ http_interactions:
165
171
  Content-Type:
166
172
  - application/json
167
173
  Date:
168
- - Tue, 22 Apr 2014 09:01:05 GMT
174
+ - Wed, 20 Aug 2014 20:52:14 GMT
169
175
  Pragma:
170
176
  - no-cache
171
177
  Server:
172
- - gunicorn/0.17.4
178
+ - gunicorn/19.1.0
173
179
  Content-Length:
174
180
  - '112'
175
181
  Connection:
@@ -179,5 +185,5 @@ http_interactions:
179
185
  string: ! '{"host": "chef.handler.datadog.test-failed", "tags": ["env:hostile",
180
186
  "role:highlander", "tag:the_one_and_only"]}'
181
187
  http_version:
182
- recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
183
- recorded_with: VCR 2.9.0
188
+ recorded_at: Wed, 20 Aug 2014 20:52:13 GMT
189
+ recorded_with: VCR 2.9.2