chef-handler-datadog 0.9.0 → 0.10.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/Appraisals +9 -1
- data/CHANGELOG.md +15 -0
- data/chef-handler-datadog.gemspec +1 -1
- data/gemfiles/chef_11.gemfile +2 -0
- data/lib/chef/handler/datadog.rb +70 -12
- data/lib/chef/handler/datadog_chef_events.rb +12 -20
- data/lib/chef/handler/datadog_chef_metrics.rb +8 -15
- data/lib/chef/handler/datadog_chef_tags.rb +33 -34
- data/lib/chef_handler_datadog.rb +1 -1
- data/spec/datadog_spec.rb +266 -7
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +90 -12
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +45 -6
- 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 +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/{only_emits_a_failure_metric.yml → only_emits_the_run_status_metrics.yml} +43 -4
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +43 -4
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_empty_scope_prefix.yml +290 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_empty_tag_prefix.yml +84 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_user-specified_scope_prefix.yml +290 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_user-specified_tag_prefix.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/sets_the_role_and_env_and_tags.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_tag_blacklist_is_specified/does_not_include_the_tag_s_specified.yml +289 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_tag_blacklist_is_unspecified/should_include_all_of_the_tag_s_.yml +289 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_unspecified/sets_role_env_and_nothing_else.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_not_specified/does_not_retry_after_a_failed_submission.yml +37 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/retries_no_more_than_twice.yml +37 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/stops_retrying_once_submission_is_successful.yml +37 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +45 -6
- data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_events/posts_an_event.yml +575 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_metrics/reports_metrics.yml +575 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/sets_tags/puts_the_tags_for_the_current_node.yml +575 -0
- metadata +24 -11
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/does_not_emit_metrics.yml +0 -82
@@ -37,7 +37,46 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"status": "ok"}'
|
40
|
-
http_version:
|
40
|
+
http_version:
|
41
|
+
recorded_at: Tue, 26 Jan 2016 20:04:28 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":[[1453838668,0.0]],"type":"counter","host":"my-imaginary-hostname.local","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:23 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:
|
41
80
|
recorded_at: Tue, 26 Jan 2016 20:04:28 GMT
|
42
81
|
- request:
|
43
82
|
method: post
|
@@ -76,7 +115,7 @@ http_interactions:
|
|
76
115
|
body:
|
77
116
|
encoding: UTF-8
|
78
117
|
string: '{"status": "ok"}'
|
79
|
-
http_version:
|
118
|
+
http_version:
|
80
119
|
recorded_at: Tue, 26 Jan 2016 20:04:28 GMT
|
81
120
|
- request:
|
82
121
|
method: post
|
@@ -115,7 +154,7 @@ http_interactions:
|
|
115
154
|
body:
|
116
155
|
encoding: UTF-8
|
117
156
|
string: '{"status": "ok"}'
|
118
|
-
http_version:
|
157
|
+
http_version:
|
119
158
|
recorded_at: Tue, 26 Jan 2016 20:04:28 GMT
|
120
159
|
- request:
|
121
160
|
method: post
|
@@ -154,7 +193,7 @@ http_interactions:
|
|
154
193
|
body:
|
155
194
|
encoding: UTF-8
|
156
195
|
string: '{"status": "ok"}'
|
157
|
-
http_version:
|
196
|
+
http_version:
|
158
197
|
recorded_at: Tue, 26 Jan 2016 20:04:28 GMT
|
159
198
|
- request:
|
160
199
|
method: post
|
@@ -198,7 +237,7 @@ http_interactions:
|
|
198
237
|
string: '{"status":"ok","event":{"id":381236652309264256,"title":"Chef completed
|
199
238
|
in 5 seconds on my-imaginary-hostname.local ","text":"Chef updated 0 resources
|
200
239
|
out of 0 resources total.","date_happened":1453838668,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236652309264256"}}'
|
201
|
-
http_version:
|
240
|
+
http_version:
|
202
241
|
recorded_at: Tue, 26 Jan 2016 20:04:28 GMT
|
203
242
|
- request:
|
204
243
|
method: put
|
@@ -245,6 +284,6 @@ http_interactions:
|
|
245
284
|
body:
|
246
285
|
encoding: UTF-8
|
247
286
|
string: '{"host": "my-imaginary-hostname.local", "tags": ["env:testing"]}'
|
248
|
-
http_version:
|
287
|
+
http_version:
|
249
288
|
recorded_at: Tue, 26 Jan 2016 20:04:28 GMT
|
250
289
|
recorded_with: VCR 3.0.1
|
@@ -37,7 +37,46 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"status": "ok"}'
|
40
|
-
http_version:
|
40
|
+
http_version:
|
41
|
+
recorded_at: Tue, 26 Jan 2016 20:04:29 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":[[1453838669,0.0]],"type":"counter","host":"chef.handler.datadog.test-ec2","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:24 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:
|
41
80
|
recorded_at: Tue, 26 Jan 2016 20:04:29 GMT
|
42
81
|
- request:
|
43
82
|
method: post
|
@@ -76,7 +115,7 @@ http_interactions:
|
|
76
115
|
body:
|
77
116
|
encoding: UTF-8
|
78
117
|
string: '{"status": "ok"}'
|
79
|
-
http_version:
|
118
|
+
http_version:
|
80
119
|
recorded_at: Tue, 26 Jan 2016 20:04:29 GMT
|
81
120
|
- request:
|
82
121
|
method: post
|
@@ -115,7 +154,7 @@ http_interactions:
|
|
115
154
|
body:
|
116
155
|
encoding: UTF-8
|
117
156
|
string: '{"status": "ok"}'
|
118
|
-
http_version:
|
157
|
+
http_version:
|
119
158
|
recorded_at: Tue, 26 Jan 2016 20:04:29 GMT
|
120
159
|
- request:
|
121
160
|
method: post
|
@@ -154,7 +193,7 @@ http_interactions:
|
|
154
193
|
body:
|
155
194
|
encoding: UTF-8
|
156
195
|
string: '{"status": "ok"}'
|
157
|
-
http_version:
|
196
|
+
http_version:
|
158
197
|
recorded_at: Tue, 26 Jan 2016 20:04:29 GMT
|
159
198
|
- request:
|
160
199
|
method: post
|
@@ -198,7 +237,7 @@ http_interactions:
|
|
198
237
|
string: '{"status":"ok","event":{"id":381236668415818934,"title":"Chef completed
|
199
238
|
in 5 seconds on chef.handler.datadog.test-ec2 ","text":"Chef updated 0 resources
|
200
239
|
out of 0 resources total.","date_happened":1453838669,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236668415818934"}}'
|
201
|
-
http_version:
|
240
|
+
http_version:
|
202
241
|
recorded_at: Tue, 26 Jan 2016 20:04:29 GMT
|
203
242
|
- request:
|
204
243
|
method: put
|
@@ -245,6 +284,6 @@ http_interactions:
|
|
245
284
|
body:
|
246
285
|
encoding: UTF-8
|
247
286
|
string: '{"host": "chef.handler.datadog.test-ec2", "tags": ["env:testing"]}'
|
248
|
-
http_version:
|
287
|
+
http_version:
|
249
288
|
recorded_at: Tue, 26 Jan 2016 20:04:29 GMT
|
250
289
|
recorded_with: VCR 3.0.1
|
@@ -37,7 +37,46 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"status": "ok"}'
|
40
|
-
http_version:
|
40
|
+
http_version:
|
41
|
+
recorded_at: Tue, 26 Jan 2016 20:04:30 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":[[1453838670,0.0]],"type":"counter","host":"i-123456","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:25 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:
|
41
80
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
42
81
|
- request:
|
43
82
|
method: post
|
@@ -76,7 +115,7 @@ http_interactions:
|
|
76
115
|
body:
|
77
116
|
encoding: UTF-8
|
78
117
|
string: '{"status": "ok"}'
|
79
|
-
http_version:
|
118
|
+
http_version:
|
80
119
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
81
120
|
- request:
|
82
121
|
method: post
|
@@ -115,7 +154,7 @@ http_interactions:
|
|
115
154
|
body:
|
116
155
|
encoding: UTF-8
|
117
156
|
string: '{"status": "ok"}'
|
118
|
-
http_version:
|
157
|
+
http_version:
|
119
158
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
120
159
|
- request:
|
121
160
|
method: post
|
@@ -154,7 +193,7 @@ http_interactions:
|
|
154
193
|
body:
|
155
194
|
encoding: UTF-8
|
156
195
|
string: '{"status": "ok"}'
|
157
|
-
http_version:
|
196
|
+
http_version:
|
158
197
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
159
198
|
- request:
|
160
199
|
method: post
|
@@ -198,7 +237,7 @@ http_interactions:
|
|
198
237
|
string: '{"status":"ok","event":{"id":381236677124917119,"title":"Chef completed
|
199
238
|
in 5 seconds on i-123456 ","text":"Chef updated 0 resources out of 0 resources
|
200
239
|
total.","date_happened":1453838670,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236677124917119"}}'
|
201
|
-
http_version:
|
240
|
+
http_version:
|
202
241
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
203
242
|
- request:
|
204
243
|
method: put
|
@@ -245,6 +284,6 @@ http_interactions:
|
|
245
284
|
body:
|
246
285
|
encoding: UTF-8
|
247
286
|
string: '{"host": "i-123456", "tags": ["env:testing"]}'
|
248
|
-
http_version:
|
287
|
+
http_version:
|
249
288
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
250
289
|
recorded_with: VCR 3.0.1
|
@@ -37,7 +37,46 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"status": "ok"}'
|
40
|
-
http_version:
|
40
|
+
http_version:
|
41
|
+
recorded_at: Tue, 26 Jan 2016 20:04:30 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":[[1453838670,0.0]],"type":"counter","host":"i-123456","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:25 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:
|
41
80
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
42
81
|
- request:
|
43
82
|
method: post
|
@@ -76,7 +115,7 @@ http_interactions:
|
|
76
115
|
body:
|
77
116
|
encoding: UTF-8
|
78
117
|
string: '{"status": "ok"}'
|
79
|
-
http_version:
|
118
|
+
http_version:
|
80
119
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
81
120
|
- request:
|
82
121
|
method: post
|
@@ -115,7 +154,7 @@ http_interactions:
|
|
115
154
|
body:
|
116
155
|
encoding: UTF-8
|
117
156
|
string: '{"status": "ok"}'
|
118
|
-
http_version:
|
157
|
+
http_version:
|
119
158
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
120
159
|
- request:
|
121
160
|
method: post
|
@@ -154,7 +193,7 @@ http_interactions:
|
|
154
193
|
body:
|
155
194
|
encoding: UTF-8
|
156
195
|
string: '{"status": "ok"}'
|
157
|
-
http_version:
|
196
|
+
http_version:
|
158
197
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
159
198
|
- request:
|
160
199
|
method: post
|
@@ -198,7 +237,7 @@ http_interactions:
|
|
198
237
|
string: '{"status":"ok","event":{"id":381236685916283962,"title":"Chef completed
|
199
238
|
in 5 seconds on i-123456 ","text":"Chef updated 0 resources out of 0 resources
|
200
239
|
total.","date_happened":1453838670,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236685916283962"}}'
|
201
|
-
http_version:
|
240
|
+
http_version:
|
202
241
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
203
242
|
- request:
|
204
243
|
method: put
|
@@ -245,6 +284,6 @@ http_interactions:
|
|
245
284
|
body:
|
246
285
|
encoding: UTF-8
|
247
286
|
string: '{"host": "i-123456", "tags": ["env:testing"]}'
|
248
|
-
http_version:
|
287
|
+
http_version:
|
249
288
|
recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
|
250
289
|
recorded_with: VCR 3.0.1
|
@@ -37,7 +37,46 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"status": "ok"}'
|
40
|
-
http_version:
|
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:
|
41
80
|
recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
|
42
81
|
- request:
|
43
82
|
method: post
|
@@ -76,7 +115,7 @@ http_interactions:
|
|
76
115
|
body:
|
77
116
|
encoding: UTF-8
|
78
117
|
string: '{"status": "ok"}'
|
79
|
-
http_version:
|
118
|
+
http_version:
|
80
119
|
recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
|
81
120
|
- request:
|
82
121
|
method: post
|
@@ -115,7 +154,7 @@ http_interactions:
|
|
115
154
|
body:
|
116
155
|
encoding: UTF-8
|
117
156
|
string: '{"status": "ok"}'
|
118
|
-
http_version:
|
157
|
+
http_version:
|
119
158
|
recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
|
120
159
|
- request:
|
121
160
|
method: post
|
@@ -154,7 +193,7 @@ http_interactions:
|
|
154
193
|
body:
|
155
194
|
encoding: UTF-8
|
156
195
|
string: '{"status": "ok"}'
|
157
|
-
http_version:
|
196
|
+
http_version:
|
158
197
|
recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
|
159
198
|
- request:
|
160
199
|
method: post
|
@@ -198,7 +237,7 @@ http_interactions:
|
|
198
237
|
string: '{"status":"ok","event":{"id":381236744299842747,"title":"Chef completed
|
199
238
|
in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
|
200
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"}}'
|
201
|
-
http_version:
|
240
|
+
http_version:
|
202
241
|
recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
|
203
242
|
- request:
|
204
243
|
method: put
|
@@ -245,6 +284,6 @@ http_interactions:
|
|
245
284
|
body:
|
246
285
|
encoding: UTF-8
|
247
286
|
string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
|
248
|
-
http_version:
|
287
|
+
http_version:
|
249
288
|
recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
|
250
289
|
recorded_with: VCR 3.0.1
|
@@ -37,7 +37,46 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"status": "ok"}'
|
40
|
-
http_version:
|
40
|
+
http_version:
|
41
|
+
recorded_at: Tue, 26 Jan 2016 20:04:33 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":[[1453838673,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:28 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:
|
41
80
|
recorded_at: Tue, 26 Jan 2016 20:04:33 GMT
|
42
81
|
- request:
|
43
82
|
method: post
|
@@ -76,7 +115,7 @@ http_interactions:
|
|
76
115
|
body:
|
77
116
|
encoding: UTF-8
|
78
117
|
string: '{"status": "ok"}'
|
79
|
-
http_version:
|
118
|
+
http_version:
|
80
119
|
recorded_at: Tue, 26 Jan 2016 20:04:33 GMT
|
81
120
|
- request:
|
82
121
|
method: post
|
@@ -115,7 +154,7 @@ http_interactions:
|
|
115
154
|
body:
|
116
155
|
encoding: UTF-8
|
117
156
|
string: '{"status": "ok"}'
|
118
|
-
http_version:
|
157
|
+
http_version:
|
119
158
|
recorded_at: Tue, 26 Jan 2016 20:04:33 GMT
|
120
159
|
- request:
|
121
160
|
method: post
|
@@ -154,7 +193,7 @@ http_interactions:
|
|
154
193
|
body:
|
155
194
|
encoding: UTF-8
|
156
195
|
string: '{"status": "ok"}'
|
157
|
-
http_version:
|
196
|
+
http_version:
|
158
197
|
recorded_at: Tue, 26 Jan 2016 20:04:33 GMT
|
159
198
|
- request:
|
160
199
|
method: post
|
@@ -198,7 +237,7 @@ http_interactions:
|
|
198
237
|
string: '{"status":"ok","event":{"id":381236735158043892,"title":"Chef completed
|
199
238
|
in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
|
200
239
|
out of 0 resources total.","date_happened":1453838673,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236735158043892"}}'
|
201
|
-
http_version:
|
240
|
+
http_version:
|
202
241
|
recorded_at: Tue, 26 Jan 2016 20:04:33 GMT
|
203
242
|
- request:
|
204
243
|
method: put
|
@@ -245,6 +284,6 @@ http_interactions:
|
|
245
284
|
body:
|
246
285
|
encoding: UTF-8
|
247
286
|
string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
|
248
|
-
http_version:
|
287
|
+
http_version:
|
249
288
|
recorded_at: Tue, 26 Jan 2016 20:04:33 GMT
|
250
289
|
recorded_with: VCR 3.0.1
|