chef-handler-datadog 0.12.3 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +158 -0
  3. data/.gitignore +0 -1
  4. data/CHANGELOG.md +9 -0
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +296 -0
  7. data/README.md +1 -1
  8. data/chef-handler-datadog.gemspec +1 -1
  9. data/lib/chef/handler/datadog_chef_events.rb +3 -0
  10. data/lib/chef/handler/datadog_chef_tags.rb +2 -1
  11. data/lib/chef_handler_datadog.rb +1 -1
  12. data/spec/datadog_spec.rb +173 -166
  13. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +239 -181
  14. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +119 -90
  15. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +119 -90
  16. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +119 -89
  17. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +119 -89
  18. 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 +119 -89
  19. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +119 -89
  20. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +119 -89
  21. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +119 -89
  22. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +119 -89
  23. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +119 -89
  24. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml +119 -89
  25. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/only_emits_the_run_status_metrics.yml +74 -56
  26. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +74 -56
  27. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase_with_an_elapsed_time_and_incomplete_resource_collection/only_emits_the_run_status_metrics.yml +73 -55
  28. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase_with_an_elapsed_time_and_incomplete_resource_collection/posts_an_event.yml +73 -55
  29. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_policy_tags_are_enabled/sets_the_policy_name_and_policy_group_tags.yml +120 -90
  30. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_policy_tags_are_not_enabled/does_not_set_the_policy_name_and_policy_group_tags.yml +111 -81
  31. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_empty_scope_prefix.yml +119 -90
  32. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_empty_tag_prefix.yml +117 -127
  33. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_user-specified_scope_prefix.yml +119 -90
  34. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_user-specified_tag_prefix.yml +121 -92
  35. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/sets_the_role_and_env_and_tags.yml +119 -90
  36. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_tag_blacklist_is_specified/does_not_include_the_tag_s_specified.yml +118 -88
  37. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_tag_blacklist_is_unspecified/should_include_all_of_the_tag_s_.yml +118 -88
  38. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_unspecified/sets_role_env_and_nothing_else.yml +119 -90
  39. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_not_specified/does_not_retry_after_a_failed_submission.yml +112 -124
  40. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/retries_no_more_than_twice.yml +108 -210
  41. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/stops_retrying_once_submission_is_successful.yml +110 -168
  42. data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +119 -89
  43. metadata +9 -21
  44. data/.travis.yml +0 -34
  45. data/gemfiles/chef_12.7.gemfile +0 -16
  46. data/gemfiles/chef_12.gemfile +0 -16
  47. data/gemfiles/chef_13.gemfile +0 -16
  48. data/gemfiles/chef_14.gemfile +0 -16
  49. data/spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml +0 -143
  50. data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_events/posts_an_event.yml +0 -575
  51. data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_metrics/reports_metrics.yml +0 -575
  52. data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/sets_tags/puts_the_tags_for_the_current_node.yml +0 -575
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Fiedler
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-11-19 00:00:00.000000000 Z
13
+ date: 2020-01-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: dogapi
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '='
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 1.36.0
21
+ version: 1.38.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '='
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 1.36.0
28
+ version: 1.38.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: appraisal
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -176,24 +176,21 @@ extra_rdoc_files:
176
176
  - README.md
177
177
  - LICENSE.txt
178
178
  files:
179
+ - ".circleci/config.yml"
179
180
  - ".env.example"
180
181
  - ".gitignore"
181
182
  - ".rspec"
182
183
  - ".rubocop.yml"
183
- - ".travis.yml"
184
184
  - Appraisals
185
185
  - CHANGELOG.md
186
186
  - CONTRIBUTING.md
187
187
  - Gemfile
188
+ - Gemfile.lock
188
189
  - Guardfile
189
190
  - LICENSE.txt
190
191
  - README.md
191
192
  - Rakefile
192
193
  - chef-handler-datadog.gemspec
193
- - gemfiles/chef_12.7.gemfile
194
- - gemfiles/chef_12.gemfile
195
- - gemfiles/chef_13.gemfile
196
- - gemfiles/chef_14.gemfile
197
194
  - lib/chef/handler/datadog.rb
198
195
  - lib/chef/handler/datadog_chef_events.rb
199
196
  - lib/chef/handler/datadog_chef_metrics.rb
@@ -205,7 +202,6 @@ files:
205
202
  - spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml
206
203
  - spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml
207
204
  - spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml
208
- - spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml
209
205
  - spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml
210
206
  - spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml
211
207
  - 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
@@ -233,9 +229,6 @@ files:
233
229
  - spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/retries_no_more_than_twice.yml
234
230
  - spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/stops_retrying_once_submission_is_successful.yml
235
231
  - spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml
236
- - spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_events/posts_an_event.yml
237
- - spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_metrics/reports_metrics.yml
238
- - spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/sets_tags/puts_the_tags_for_the_current_node.yml
239
232
  homepage: http://www.datadoghq.com/
240
233
  licenses:
241
234
  - BSD
@@ -255,8 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
248
  - !ruby/object:Gem::Version
256
249
  version: '0'
257
250
  requirements: []
258
- rubyforge_project:
259
- rubygems_version: 2.7.10
251
+ rubygems_version: 3.0.6
260
252
  signing_key:
261
253
  specification_version: 4
262
254
  summary: Chef Handler reports events and metrics to Datadog
@@ -266,7 +258,6 @@ test_files:
266
258
  - spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml
267
259
  - spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml
268
260
  - spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml
269
- - spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml
270
261
  - spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml
271
262
  - spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml
272
263
  - 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
@@ -294,6 +285,3 @@ test_files:
294
285
  - spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/retries_no_more_than_twice.yml
295
286
  - spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/stops_retrying_once_submission_is_successful.yml
296
287
  - spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml
297
- - spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_events/posts_an_event.yml
298
- - spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_metrics/reports_metrics.yml
299
- - spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/sets_tags/puts_the_tags_for_the_current_node.yml
@@ -1,34 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
-
5
- rvm:
6
- # Note that Chef 12.0 shipped for Ruby 2.0 for Windows and 2.1 for Linux/mac
7
- # but we need a more recent ruby to run the tests with our deps.
8
- - 2.3.1
9
- # Chef 13.0 shipped with Ruby 2.4.1
10
- - 2.4.1
11
- - 2.5.0
12
-
13
- before_install:
14
- - gem update --system
15
- - gem --version
16
- - gem install bundler
17
-
18
- bundler_args: --without=localdev
19
-
20
- gemfile:
21
- - gemfiles/chef_12.gemfile
22
- - gemfiles/chef_12.7.gemfile
23
- - gemfiles/chef_13.gemfile
24
- - gemfiles/chef_14.gemfile
25
-
26
- env:
27
- - API_KEY=somefakeapikey APPLICATION_KEY=somefakeapplicationkey
28
-
29
- matrix:
30
- exclude:
31
- # Ruby 2.4.1 minimum for Chef 14
32
- - rvm: 2.3.1
33
- gemfile: gemfiles/chef_14.gemfile
34
- allow_failures:
@@ -1,16 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "chef", "~> 12.7.0"
6
-
7
- group :localdev do
8
- gem "guard"
9
- gem "guard-rspec"
10
- gem "guard-rubocop"
11
- gem "pry"
12
- gem "terminal-notifier-guard"
13
- gem "travis-lint"
14
- end
15
-
16
- gemspec :path => "../"
@@ -1,16 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "chef", "~> 12.0"
6
-
7
- group :localdev do
8
- gem "guard"
9
- gem "guard-rspec"
10
- gem "guard-rubocop"
11
- gem "pry"
12
- gem "terminal-notifier-guard"
13
- gem "travis-lint"
14
- end
15
-
16
- gemspec :path => "../"
@@ -1,16 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "chef", "~> 13.0"
6
-
7
- group :localdev do
8
- gem "guard"
9
- gem "guard-rspec"
10
- gem "guard-rubocop"
11
- gem "pry"
12
- gem "terminal-notifier-guard"
13
- gem "travis-lint"
14
- end
15
-
16
- gemspec :path => "../"
@@ -1,16 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "chef", "~> 14.0"
6
-
7
- group :localdev do
8
- gem "guard"
9
- gem "guard-rspec"
10
- gem "guard-rubocop"
11
- gem "pry"
12
- gem "terminal-notifier-guard"
13
- gem "travis-lint"
14
- end
15
-
16
- gemspec :path => "../"
@@ -1,143 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"series":[{"metric":"chef.resources.total","points":[[1410264888,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
9
- headers:
10
- Accept:
11
- - ! '*/*'
12
- User-Agent:
13
- - Ruby
14
- Content-Type:
15
- - application/json
16
- response:
17
- status:
18
- code: 202
19
- message: Accepted
20
- headers:
21
- Content-Type:
22
- - text/json; charset=UTF-8
23
- Date:
24
- - Tue, 09 Sep 2014 12:14:44 GMT
25
- Server:
26
- - dogdispatcher/5.1.1
27
- Content-Length:
28
- - '15'
29
- Connection:
30
- - keep-alive
31
- body:
32
- encoding: US-ASCII
33
- string: ! '{"status":"ok"}'
34
- http_version:
35
- recorded_at: Tue, 09 Sep 2014 12:14:48 GMT
36
- - request:
37
- method: post
38
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
- body:
40
- encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1410264888,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
42
- headers:
43
- Accept:
44
- - ! '*/*'
45
- User-Agent:
46
- - Ruby
47
- Content-Type:
48
- - application/json
49
- response:
50
- status:
51
- code: 202
52
- message: Accepted
53
- headers:
54
- Content-Type:
55
- - text/json; charset=UTF-8
56
- Date:
57
- - Tue, 09 Sep 2014 12:14:44 GMT
58
- Server:
59
- - dogdispatcher/5.1.1
60
- Content-Length:
61
- - '15'
62
- Connection:
63
- - keep-alive
64
- body:
65
- encoding: US-ASCII
66
- string: ! '{"status":"ok"}'
67
- http_version:
68
- recorded_at: Tue, 09 Sep 2014 12:14:48 GMT
69
- - request:
70
- method: post
71
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
- body:
73
- encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1410264888,5.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
75
- headers:
76
- Accept:
77
- - ! '*/*'
78
- User-Agent:
79
- - Ruby
80
- Content-Type:
81
- - application/json
82
- response:
83
- status:
84
- code: 202
85
- message: Accepted
86
- headers:
87
- Content-Type:
88
- - text/json; charset=UTF-8
89
- Date:
90
- - Tue, 09 Sep 2014 12:14:45 GMT
91
- Server:
92
- - dogdispatcher/5.1.1
93
- Content-Length:
94
- - '15'
95
- Connection:
96
- - keep-alive
97
- body:
98
- encoding: US-ASCII
99
- string: ! '{"status":"ok"}'
100
- http_version:
101
- recorded_at: Tue, 09 Sep 2014 12:14:48 GMT
102
- - request:
103
- method: post
104
- uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
- body:
106
- encoding: UTF-8
107
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1410264888,"msg_title":"Chef
108
- completed in 5 seconds on chef.handler.datadog.test-noapp ","priority":"low","parent":null,"tags":["env:hostile","role:highlander","tag:the_one_and_only"],"aggregation_key":"chef.handler.datadog.test-noapp","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
109
- completed in 5 seconds on chef.handler.datadog.test-noapp ","text":"Chef updated
110
- 0 resources out of 0 resources total.","host":"chef.handler.datadog.test-noapp","device":null}'
111
- headers:
112
- Accept:
113
- - ! '*/*'
114
- User-Agent:
115
- - Ruby
116
- Content-Type:
117
- - application/json
118
- response:
119
- status:
120
- code: 202
121
- message: Accepted
122
- headers:
123
- Content-Type:
124
- - text/json; charset=UTF-8
125
- Date:
126
- - Tue, 09 Sep 2014 12:14:45 GMT
127
- Server:
128
- - dogdispatcher/5.1.1
129
- Content-Length:
130
- - '429'
131
- Connection:
132
- - keep-alive
133
- body:
134
- encoding: US-ASCII
135
- string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1410264888,
136
- "handle": null, "title": "Chef completed in 5 seconds on chef.handler.datadog.test-noapp
137
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2449507422336115049",
138
- "text": "Chef updated 0 resources out of 0 resources total.", "tags": ["env:hostile",
139
- "role:highlander", "tag:the_one_and_only"], "related_event_id": null, "id":
140
- 2449507422336115049}}'
141
- http_version:
142
- recorded_at: Tue, 09 Sep 2014 12:14:48 GMT
143
- recorded_with: VCR 2.9.2
@@ -1,575 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
- body:
7
- encoding: UTF-8
8
- string: '{"series":[{"metric":"chef.run.success","points":[[1453838674,1.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- Content-Type:
17
- - application/json
18
- response:
19
- status:
20
- code: 202
21
- message: Accepted
22
- headers:
23
- Content-Type:
24
- - text/json
25
- Date:
26
- - Tue, 26 Jan 2016 20:04:29 GMT
27
- Dd-Pool:
28
- - propjoe
29
- Strict-Transport-Security:
30
- - max-age=15724800;
31
- X-Content-Type-Options:
32
- - nosniff
33
- Content-Length:
34
- - '16'
35
- Connection:
36
- - keep-alive
37
- body:
38
- encoding: UTF-8
39
- string: '{"status": "ok"}'
40
- http_version:
41
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
42
- - request:
43
- method: post
44
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
45
- body:
46
- encoding: UTF-8
47
- string: '{"series":[{"metric":"chef.run.failure","points":[[1453838674,0.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
48
- headers:
49
- Accept-Encoding:
50
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
51
- Accept:
52
- - "*/*"
53
- User-Agent:
54
- - Ruby
55
- Content-Type:
56
- - application/json
57
- response:
58
- status:
59
- code: 202
60
- message: Accepted
61
- headers:
62
- Content-Type:
63
- - text/json
64
- Date:
65
- - Tue, 26 Jan 2016 20:04:29 GMT
66
- Dd-Pool:
67
- - propjoe
68
- Strict-Transport-Security:
69
- - max-age=15724800;
70
- X-Content-Type-Options:
71
- - nosniff
72
- Content-Length:
73
- - '16'
74
- Connection:
75
- - keep-alive
76
- body:
77
- encoding: UTF-8
78
- string: '{"status": "ok"}'
79
- http_version:
80
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
81
- - request:
82
- method: post
83
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
84
- body:
85
- encoding: UTF-8
86
- string: '{"series":[{"metric":"chef.resources.total","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
87
- headers:
88
- Accept-Encoding:
89
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
90
- Accept:
91
- - "*/*"
92
- User-Agent:
93
- - Ruby
94
- Content-Type:
95
- - application/json
96
- response:
97
- status:
98
- code: 202
99
- message: Accepted
100
- headers:
101
- Content-Type:
102
- - text/json
103
- Date:
104
- - Tue, 26 Jan 2016 20:04:29 GMT
105
- Dd-Pool:
106
- - propjoe
107
- Strict-Transport-Security:
108
- - max-age=15724800;
109
- X-Content-Type-Options:
110
- - nosniff
111
- Content-Length:
112
- - '16'
113
- Connection:
114
- - keep-alive
115
- body:
116
- encoding: UTF-8
117
- string: '{"status": "ok"}'
118
- http_version:
119
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
120
- - request:
121
- method: post
122
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
123
- body:
124
- encoding: UTF-8
125
- string: '{"series":[{"metric":"chef.resources.updated","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
126
- headers:
127
- Accept-Encoding:
128
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
129
- Accept:
130
- - "*/*"
131
- User-Agent:
132
- - Ruby
133
- Content-Type:
134
- - application/json
135
- response:
136
- status:
137
- code: 202
138
- message: Accepted
139
- headers:
140
- Content-Type:
141
- - text/json
142
- Date:
143
- - Tue, 26 Jan 2016 20:04:29 GMT
144
- Dd-Pool:
145
- - propjoe
146
- Strict-Transport-Security:
147
- - max-age=15724800;
148
- X-Content-Type-Options:
149
- - nosniff
150
- Content-Length:
151
- - '16'
152
- Connection:
153
- - keep-alive
154
- body:
155
- encoding: UTF-8
156
- string: '{"status": "ok"}'
157
- http_version:
158
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
159
- - request:
160
- method: post
161
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
162
- body:
163
- encoding: UTF-8
164
- string: '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1453838674,5.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
165
- headers:
166
- Accept-Encoding:
167
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
168
- Accept:
169
- - "*/*"
170
- User-Agent:
171
- - Ruby
172
- Content-Type:
173
- - application/json
174
- response:
175
- status:
176
- code: 202
177
- message: Accepted
178
- headers:
179
- Content-Type:
180
- - text/json
181
- Date:
182
- - Tue, 26 Jan 2016 20:04:29 GMT
183
- Dd-Pool:
184
- - propjoe
185
- Strict-Transport-Security:
186
- - max-age=15724800;
187
- X-Content-Type-Options:
188
- - nosniff
189
- Content-Length:
190
- - '16'
191
- Connection:
192
- - keep-alive
193
- body:
194
- encoding: UTF-8
195
- string: '{"status": "ok"}'
196
- http_version:
197
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
198
- - request:
199
- method: post
200
- uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
201
- body:
202
- encoding: UTF-8
203
- string: '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1453838674,"msg_title":"Chef
204
- completed in 5 seconds on chef.handler.datadog.test ","priority":"low","parent":null,"tags":["env:testing"],"aggregation_key":"chef.handler.datadog.test","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
205
- completed in 5 seconds on chef.handler.datadog.test ","text":"Chef updated
206
- 0 resources out of 0 resources total.","host":"chef.handler.datadog.test","device":null}'
207
- headers:
208
- Accept-Encoding:
209
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
210
- Accept:
211
- - "*/*"
212
- User-Agent:
213
- - Ruby
214
- Content-Type:
215
- - application/json
216
- response:
217
- status:
218
- code: 202
219
- message: Accepted
220
- headers:
221
- Content-Type:
222
- - text/plain; charset=utf-8
223
- Date:
224
- - Tue, 26 Jan 2016 20:04:29 GMT
225
- Dd-Pool:
226
- - propjoe
227
- Strict-Transport-Security:
228
- - max-age=15724800;
229
- X-Content-Type-Options:
230
- - nosniff
231
- Content-Length:
232
- - '350'
233
- Connection:
234
- - keep-alive
235
- body:
236
- encoding: UTF-8
237
- string: '{"status":"ok","event":{"id":381236744299842747,"title":"Chef completed
238
- in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
239
- out of 0 resources total.","date_happened":1453838674,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236744299842747"}}'
240
- http_version:
241
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
242
- - request:
243
- method: put
244
- uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
245
- body:
246
- encoding: UTF-8
247
- string: '{"tags":["env:testing"]}'
248
- headers:
249
- Accept-Encoding:
250
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
251
- Accept:
252
- - "*/*"
253
- User-Agent:
254
- - Ruby
255
- Content-Type:
256
- - application/json
257
- response:
258
- status:
259
- code: 201
260
- message: Created
261
- headers:
262
- Cache-Control:
263
- - no-cache
264
- Content-Type:
265
- - application/json
266
- Date:
267
- - Tue, 26 Jan 2016 20:04:29 GMT
268
- Dd-Pool:
269
- - dogweb_sameorig
270
- Pragma:
271
- - no-cache
272
- Strict-Transport-Security:
273
- - max-age=15724800;
274
- X-Content-Type-Options:
275
- - nosniff
276
- X-Dd-Debug:
277
- - 1TZ9yjqyTQEuQgFvlhDrXBTp0x7coU279EZsIv2sDHg=
278
- X-Frame-Options:
279
- - SAMEORIGIN
280
- Content-Length:
281
- - '62'
282
- Connection:
283
- - keep-alive
284
- body:
285
- encoding: UTF-8
286
- string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
287
- http_version:
288
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
289
- - request:
290
- method: post
291
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
292
- body:
293
- encoding: UTF-8
294
- string: '{"series":[{"metric":"chef.run.success","points":[[1453838674,1.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
295
- headers:
296
- Accept-Encoding:
297
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
298
- Accept:
299
- - "*/*"
300
- User-Agent:
301
- - Ruby
302
- Content-Type:
303
- - application/json
304
- response:
305
- status:
306
- code: 202
307
- message: Accepted
308
- headers:
309
- Content-Type:
310
- - text/json
311
- Date:
312
- - Tue, 26 Jan 2016 20:04:29 GMT
313
- Dd-Pool:
314
- - propjoe
315
- Strict-Transport-Security:
316
- - max-age=15724800;
317
- X-Content-Type-Options:
318
- - nosniff
319
- Content-Length:
320
- - '16'
321
- Connection:
322
- - keep-alive
323
- body:
324
- encoding: UTF-8
325
- string: '{"status": "ok"}'
326
- http_version:
327
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
328
- - request:
329
- method: post
330
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
331
- body:
332
- encoding: UTF-8
333
- string: '{"series":[{"metric":"chef.run.failure","points":[[1453838674,0.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
334
- headers:
335
- Accept-Encoding:
336
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
337
- Accept:
338
- - "*/*"
339
- User-Agent:
340
- - Ruby
341
- Content-Type:
342
- - application/json
343
- response:
344
- status:
345
- code: 202
346
- message: Accepted
347
- headers:
348
- Content-Type:
349
- - text/json
350
- Date:
351
- - Tue, 26 Jan 2016 20:04:29 GMT
352
- Dd-Pool:
353
- - propjoe
354
- Strict-Transport-Security:
355
- - max-age=15724800;
356
- X-Content-Type-Options:
357
- - nosniff
358
- Content-Length:
359
- - '16'
360
- Connection:
361
- - keep-alive
362
- body:
363
- encoding: UTF-8
364
- string: '{"status": "ok"}'
365
- http_version:
366
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
367
- - request:
368
- method: post
369
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
370
- body:
371
- encoding: UTF-8
372
- string: '{"series":[{"metric":"chef.resources.total","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
373
- headers:
374
- Accept-Encoding:
375
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
376
- Accept:
377
- - "*/*"
378
- User-Agent:
379
- - Ruby
380
- Content-Type:
381
- - application/json
382
- response:
383
- status:
384
- code: 202
385
- message: Accepted
386
- headers:
387
- Content-Type:
388
- - text/json
389
- Date:
390
- - Tue, 26 Jan 2016 20:04:29 GMT
391
- Dd-Pool:
392
- - propjoe
393
- Strict-Transport-Security:
394
- - max-age=15724800;
395
- X-Content-Type-Options:
396
- - nosniff
397
- Content-Length:
398
- - '16'
399
- Connection:
400
- - keep-alive
401
- body:
402
- encoding: UTF-8
403
- string: '{"status": "ok"}'
404
- http_version:
405
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
406
- - request:
407
- method: post
408
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
409
- body:
410
- encoding: UTF-8
411
- string: '{"series":[{"metric":"chef.resources.updated","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
412
- headers:
413
- Accept-Encoding:
414
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
415
- Accept:
416
- - "*/*"
417
- User-Agent:
418
- - Ruby
419
- Content-Type:
420
- - application/json
421
- response:
422
- status:
423
- code: 202
424
- message: Accepted
425
- headers:
426
- Content-Type:
427
- - text/json
428
- Date:
429
- - Tue, 26 Jan 2016 20:04:29 GMT
430
- Dd-Pool:
431
- - propjoe
432
- Strict-Transport-Security:
433
- - max-age=15724800;
434
- X-Content-Type-Options:
435
- - nosniff
436
- Content-Length:
437
- - '16'
438
- Connection:
439
- - keep-alive
440
- body:
441
- encoding: UTF-8
442
- string: '{"status": "ok"}'
443
- http_version:
444
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
445
- - request:
446
- method: post
447
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
448
- body:
449
- encoding: UTF-8
450
- string: '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1453838674,5.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
451
- headers:
452
- Accept-Encoding:
453
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
454
- Accept:
455
- - "*/*"
456
- User-Agent:
457
- - Ruby
458
- Content-Type:
459
- - application/json
460
- response:
461
- status:
462
- code: 202
463
- message: Accepted
464
- headers:
465
- Content-Type:
466
- - text/json
467
- Date:
468
- - Tue, 26 Jan 2016 20:04:29 GMT
469
- Dd-Pool:
470
- - propjoe
471
- Strict-Transport-Security:
472
- - max-age=15724800;
473
- X-Content-Type-Options:
474
- - nosniff
475
- Content-Length:
476
- - '16'
477
- Connection:
478
- - keep-alive
479
- body:
480
- encoding: UTF-8
481
- string: '{"status": "ok"}'
482
- http_version:
483
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
484
- - request:
485
- method: post
486
- uri: https://app.example.com/api/v1/events?api_key=api_key_example
487
- body:
488
- encoding: UTF-8
489
- string: '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1453838674,"msg_title":"Chef
490
- completed in 5 seconds on chef.handler.datadog.test ","priority":"low","parent":null,"tags":["env:testing"],"aggregation_key":"chef.handler.datadog.test","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
491
- completed in 5 seconds on chef.handler.datadog.test ","text":"Chef updated
492
- 0 resources out of 0 resources total.","host":"chef.handler.datadog.test","device":null}'
493
- headers:
494
- Accept-Encoding:
495
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
496
- Accept:
497
- - "*/*"
498
- User-Agent:
499
- - Ruby
500
- Content-Type:
501
- - application/json
502
- response:
503
- status:
504
- code: 202
505
- message: Accepted
506
- headers:
507
- Content-Type:
508
- - text/plain; charset=utf-8
509
- Date:
510
- - Tue, 26 Jan 2016 20:04:29 GMT
511
- Dd-Pool:
512
- - propjoe
513
- Strict-Transport-Security:
514
- - max-age=15724800;
515
- X-Content-Type-Options:
516
- - nosniff
517
- Content-Length:
518
- - '350'
519
- Connection:
520
- - keep-alive
521
- body:
522
- encoding: UTF-8
523
- string: '{"status":"ok","event":{"id":381236744299842747,"title":"Chef completed
524
- in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
525
- out of 0 resources total.","date_happened":1453838674,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.example.com/event/event?id=381236744299842747"}}'
526
- http_version:
527
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
528
- - request:
529
- method: put
530
- uri: https://app.example.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=api_key_example&application_key=application_key_example&source=chef
531
- body:
532
- encoding: UTF-8
533
- string: '{"tags":["env:testing"]}'
534
- headers:
535
- Accept-Encoding:
536
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
537
- Accept:
538
- - "*/*"
539
- User-Agent:
540
- - Ruby
541
- Content-Type:
542
- - application/json
543
- response:
544
- status:
545
- code: 201
546
- message: Created
547
- headers:
548
- Cache-Control:
549
- - no-cache
550
- Content-Type:
551
- - application/json
552
- Date:
553
- - Tue, 26 Jan 2016 20:04:29 GMT
554
- Dd-Pool:
555
- - dogweb_sameorig
556
- Pragma:
557
- - no-cache
558
- Strict-Transport-Security:
559
- - max-age=15724800;
560
- X-Content-Type-Options:
561
- - nosniff
562
- X-Dd-Debug:
563
- - 1TZ9yjqyTQEuQgFvlhDrXBTp0x7coU279EZsIv2sDHg=
564
- X-Frame-Options:
565
- - SAMEORIGIN
566
- Content-Length:
567
- - '62'
568
- Connection:
569
- - keep-alive
570
- body:
571
- encoding: UTF-8
572
- string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
573
- http_version:
574
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
575
- recorded_with: VCR 3.0.1