chef-handler-datadog 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.gitignore +3 -0
- data/.rubocop.yml +4 -0
- data/.travis.yml +2 -1
- data/Appraisals +2 -1
- data/CHANGELOG.md +13 -1
- data/CONTRIBUTING.md +23 -0
- data/Gemfile +4 -0
- data/Guardfile +37 -0
- data/README.md +12 -20
- data/Rakefile +1 -1
- data/chef-handler-datadog.gemspec +4 -4
- data/gemfiles/chef_10.26.0.gemfile +4 -0
- data/gemfiles/chef_10.32.2.gemfile +4 -0
- data/gemfiles/chef_11.10.4.gemfile +4 -0
- data/gemfiles/{chef_11.12.2.gemfile → chef_11.12.8.gemfile} +5 -1
- data/gemfiles/chef_11.14.2.gemfile +16 -0
- data/gemfiles/chef_11.8.2.gemfile +4 -0
- data/lib/chef/handler/datadog.rb +47 -12
- data/lib/chef_handler_datadog.rb +1 -1
- data/spec/datadog_spec.rb +58 -8
- data/spec/spec_helper.rb +0 -1
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +69 -57
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +35 -29
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +35 -29
- data/spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml +20 -20
- data/spec/support/cassettes/Chef_Handler_Datadog/handles_tags_correctly/sets_the_role_and_env_and_tags.yml +23 -23
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +23 -23
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +23 -23
- 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
- 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
- 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
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +23 -23
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +23 -23
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +23 -23
- 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
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/does_not_emit_metrics.yml +81 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +81 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +28 -28
- metadata +18 -16
- data/gemfiles/chef_10.26.0.gemfile.lock +0 -140
- data/gemfiles/chef_10.32.2.gemfile.lock +0 -140
- data/gemfiles/chef_11.10.4.gemfile.lock +0 -143
- data/gemfiles/chef_11.12.2.gemfile.lock +0 -139
- data/gemfiles/chef_11.8.2.gemfile.lock +0 -143
data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml
CHANGED
|
@@ -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":[[
|
|
8
|
+
string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567929,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
|
-
-
|
|
24
|
+
- Wed, 20 Aug 2014 20:52:09 GMT
|
|
25
25
|
Server:
|
|
26
|
-
- dogdispatcher/
|
|
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:
|
|
35
|
+
recorded_at: Wed, 20 Aug 2014 20:52:09 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":[[
|
|
41
|
+
string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567929,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
|
-
-
|
|
57
|
+
- Wed, 20 Aug 2014 20:52:10 GMT
|
|
58
58
|
Server:
|
|
59
|
-
- dogdispatcher/
|
|
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:
|
|
68
|
+
recorded_at: Wed, 20 Aug 2014 20:52:09 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":[[
|
|
74
|
+
string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567929,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
|
-
-
|
|
90
|
+
- Wed, 20 Aug 2014 20:52:10 GMT
|
|
91
91
|
Server:
|
|
92
|
-
- dogdispatcher/
|
|
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:
|
|
101
|
+
recorded_at: Wed, 20 Aug 2014 20:52:09 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
|
|
108
|
-
|
|
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":1408567929,"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
|
-
|
|
112
|
-
|
|
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
|
-
-
|
|
132
|
+
- Wed, 20 Aug 2014 20:52:10 GMT
|
|
129
133
|
Server:
|
|
130
|
-
- dogdispatcher/
|
|
134
|
+
- dogdispatcher/5.1.1
|
|
131
135
|
Content-Length:
|
|
132
|
-
- '
|
|
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
|
-
|
|
139
|
-
", "url": "https://app.datadoghq.com/event/jump_to?event_id=
|
|
140
|
-
"text": "Chef updated
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
1408567929, "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=2421037243805951769",
|
|
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": 2421037243805951769}}'
|
|
143
149
|
http_version:
|
|
144
|
-
recorded_at:
|
|
150
|
+
recorded_at: Wed, 20 Aug 2014 20:52:09 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
|
-
-
|
|
174
|
+
- Wed, 20 Aug 2014 20:52:11 GMT
|
|
169
175
|
Pragma:
|
|
170
176
|
- no-cache
|
|
171
177
|
Server:
|
|
172
|
-
- gunicorn/
|
|
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:
|
|
183
|
-
recorded_with: VCR 2.9.
|
|
188
|
+
recorded_at: Wed, 20 Aug 2014 20:52:09 GMT
|
|
189
|
+
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":[[
|
|
8
|
+
string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567896,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","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
|
-
-
|
|
24
|
+
- Wed, 20 Aug 2014 20:51:32 GMT
|
|
25
25
|
Server:
|
|
26
|
-
- dogdispatcher/
|
|
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:
|
|
35
|
+
recorded_at: Wed, 20 Aug 2014 20:51:36 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":[[
|
|
41
|
+
string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567896,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","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
|
-
-
|
|
57
|
+
- Wed, 20 Aug 2014 20:51:33 GMT
|
|
58
58
|
Server:
|
|
59
|
-
- dogdispatcher/
|
|
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:
|
|
68
|
+
recorded_at: Wed, 20 Aug 2014 20:51:36 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":[[
|
|
74
|
+
string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567896,5.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","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
|
-
-
|
|
90
|
+
- Wed, 20 Aug 2014 20:51:33 GMT
|
|
91
91
|
Server:
|
|
92
|
-
- dogdispatcher/
|
|
92
|
+
- dogdispatcher/5.1.1
|
|
93
93
|
Content-Length:
|
|
94
94
|
- '15'
|
|
95
95
|
Connection:
|
|
@@ -98,13 +98,13 @@ http_interactions:
|
|
|
98
98
|
encoding: US-ASCII
|
|
99
99
|
string: ! '{"status":"ok"}'
|
|
100
100
|
http_version:
|
|
101
|
-
recorded_at:
|
|
101
|
+
recorded_at: Wed, 20 Aug 2014 20:51:36 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.","date_happened":
|
|
107
|
+
string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1408567896,"msg_title":"Chef
|
|
108
108
|
completed in 5 seconds on chef.handler.datadog.test-noapp ","priority":"low","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-noapp","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
|
|
109
109
|
completed in 5 seconds on chef.handler.datadog.test-noapp ","text":"Chef updated
|
|
110
110
|
0 resources out of 0 resources total.","host":"chef.handler.datadog.test-noapp","device":null}'
|
|
@@ -123,20 +123,20 @@ http_interactions:
|
|
|
123
123
|
Content-Type:
|
|
124
124
|
- text/json; charset=UTF-8
|
|
125
125
|
Date:
|
|
126
|
-
-
|
|
126
|
+
- Wed, 20 Aug 2014 20:51:34 GMT
|
|
127
127
|
Server:
|
|
128
|
-
- dogdispatcher/
|
|
128
|
+
- dogdispatcher/5.1.1
|
|
129
129
|
Content-Length:
|
|
130
130
|
- '373'
|
|
131
131
|
Connection:
|
|
132
132
|
- keep-alive
|
|
133
133
|
body:
|
|
134
134
|
encoding: US-ASCII
|
|
135
|
-
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened":
|
|
135
|
+
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1408567896,
|
|
136
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=
|
|
137
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2421036624676108153",
|
|
138
138
|
"text": "Chef updated 0 resources out of 0 resources total.", "tags": [],
|
|
139
|
-
"related_event_id": null, "id":
|
|
139
|
+
"related_event_id": null, "id": 2421036624676108153}}'
|
|
140
140
|
http_version:
|
|
141
|
-
recorded_at:
|
|
142
|
-
recorded_with: VCR 2.9.
|
|
141
|
+
recorded_at: Wed, 20 Aug 2014 20:51:36 GMT
|
|
142
|
+
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":[[
|
|
8
|
+
string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567905,0.0]],"type":"gauge","host":"chef.handler.datadog.test-tags","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
|
-
-
|
|
24
|
+
- Wed, 20 Aug 2014 20:51:40 GMT
|
|
25
25
|
Server:
|
|
26
|
-
- dogdispatcher/
|
|
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:
|
|
35
|
+
recorded_at: Wed, 20 Aug 2014 20:51:45 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":[[
|
|
41
|
+
string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567905,0.0]],"type":"gauge","host":"chef.handler.datadog.test-tags","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
|
-
-
|
|
57
|
+
- Wed, 20 Aug 2014 20:51:41 GMT
|
|
58
58
|
Server:
|
|
59
|
-
- dogdispatcher/
|
|
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:
|
|
68
|
+
recorded_at: Wed, 20 Aug 2014 20:51:45 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":[[
|
|
74
|
+
string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567905,5.0]],"type":"gauge","host":"chef.handler.datadog.test-tags","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
|
-
-
|
|
90
|
+
- Wed, 20 Aug 2014 20:51:41 GMT
|
|
91
91
|
Server:
|
|
92
|
-
- dogdispatcher/
|
|
92
|
+
- dogdispatcher/5.1.1
|
|
93
93
|
Content-Length:
|
|
94
94
|
- '15'
|
|
95
95
|
Connection:
|
|
@@ -98,13 +98,13 @@ http_interactions:
|
|
|
98
98
|
encoding: US-ASCII
|
|
99
99
|
string: ! '{"status":"ok"}'
|
|
100
100
|
http_version:
|
|
101
|
-
recorded_at:
|
|
101
|
+
recorded_at: Wed, 20 Aug 2014 20:51:45 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.","date_happened":
|
|
107
|
+
string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1408567905,"msg_title":"Chef
|
|
108
108
|
completed in 5 seconds on chef.handler.datadog.test-tags ","priority":"low","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-tags","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
|
|
109
109
|
completed in 5 seconds on chef.handler.datadog.test-tags ","text":"Chef updated
|
|
110
110
|
0 resources out of 0 resources total.","host":"chef.handler.datadog.test-tags","device":null}'
|
|
@@ -123,22 +123,22 @@ http_interactions:
|
|
|
123
123
|
Content-Type:
|
|
124
124
|
- text/json; charset=UTF-8
|
|
125
125
|
Date:
|
|
126
|
-
-
|
|
126
|
+
- Wed, 20 Aug 2014 20:51:42 GMT
|
|
127
127
|
Server:
|
|
128
|
-
- dogdispatcher/
|
|
128
|
+
- dogdispatcher/5.1.1
|
|
129
129
|
Content-Length:
|
|
130
130
|
- '372'
|
|
131
131
|
Connection:
|
|
132
132
|
- keep-alive
|
|
133
133
|
body:
|
|
134
134
|
encoding: US-ASCII
|
|
135
|
-
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened":
|
|
135
|
+
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1408567905,
|
|
136
136
|
"handle": null, "title": "Chef completed in 5 seconds on chef.handler.datadog.test-tags
|
|
137
|
-
", "url": "https://app.datadoghq.com/event/jump_to?event_id=
|
|
137
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2421036761326475167",
|
|
138
138
|
"text": "Chef updated 0 resources out of 0 resources total.", "tags": [],
|
|
139
|
-
"related_event_id": null, "id":
|
|
139
|
+
"related_event_id": null, "id": 2421036761326475167}}'
|
|
140
140
|
http_version:
|
|
141
|
-
recorded_at:
|
|
141
|
+
recorded_at: Wed, 20 Aug 2014 20:51:45 GMT
|
|
142
142
|
- request:
|
|
143
143
|
method: put
|
|
144
144
|
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-tags?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
|
|
@@ -162,11 +162,11 @@ http_interactions:
|
|
|
162
162
|
Content-Type:
|
|
163
163
|
- application/json
|
|
164
164
|
Date:
|
|
165
|
-
-
|
|
165
|
+
- Wed, 20 Aug 2014 20:51:42 GMT
|
|
166
166
|
Pragma:
|
|
167
167
|
- no-cache
|
|
168
168
|
Server:
|
|
169
|
-
- gunicorn/
|
|
169
|
+
- gunicorn/19.1.0
|
|
170
170
|
Content-Length:
|
|
171
171
|
- '110'
|
|
172
172
|
Connection:
|
|
@@ -176,5 +176,5 @@ http_interactions:
|
|
|
176
176
|
string: ! '{"host": "chef.handler.datadog.test-tags", "tags": ["env:hostile",
|
|
177
177
|
"role:highlander", "tag:the_one_and_only"]}'
|
|
178
178
|
http_version:
|
|
179
|
-
recorded_at:
|
|
180
|
-
recorded_with: VCR 2.9.
|
|
179
|
+
recorded_at: Wed, 20 Aug 2014 20:51:45 GMT
|
|
180
|
+
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":[[
|
|
8
|
+
string: ! '{"series":[{"metric":"chef.resources.total","points":[[1408567902,0.0]],"type":"gauge","host":"chef.handler.datadog.test-hostname","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
|
-
-
|
|
24
|
+
- Wed, 20 Aug 2014 20:51:37 GMT
|
|
25
25
|
Server:
|
|
26
|
-
- dogdispatcher/
|
|
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:
|
|
35
|
+
recorded_at: Wed, 20 Aug 2014 20:51:42 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":[[
|
|
41
|
+
string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1408567902,0.0]],"type":"gauge","host":"chef.handler.datadog.test-hostname","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
|
-
-
|
|
57
|
+
- Wed, 20 Aug 2014 20:51:38 GMT
|
|
58
58
|
Server:
|
|
59
|
-
- dogdispatcher/
|
|
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:
|
|
68
|
+
recorded_at: Wed, 20 Aug 2014 20:51:42 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":[[
|
|
74
|
+
string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1408567902,5.0]],"type":"gauge","host":"chef.handler.datadog.test-hostname","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
|
-
-
|
|
90
|
+
- Wed, 20 Aug 2014 20:51:38 GMT
|
|
91
91
|
Server:
|
|
92
|
-
- dogdispatcher/
|
|
92
|
+
- dogdispatcher/5.1.1
|
|
93
93
|
Content-Length:
|
|
94
94
|
- '15'
|
|
95
95
|
Connection:
|
|
@@ -98,13 +98,13 @@ http_interactions:
|
|
|
98
98
|
encoding: US-ASCII
|
|
99
99
|
string: ! '{"status":"ok"}'
|
|
100
100
|
http_version:
|
|
101
|
-
recorded_at:
|
|
101
|
+
recorded_at: Wed, 20 Aug 2014 20:51:42 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.","date_happened":
|
|
107
|
+
string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1408567902,"msg_title":"Chef
|
|
108
108
|
completed in 5 seconds on chef.handler.datadog.test-hostname ","priority":"low","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-hostname","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
|
|
109
109
|
completed in 5 seconds on chef.handler.datadog.test-hostname ","text":"Chef
|
|
110
110
|
updated 0 resources out of 0 resources total.","host":"chef.handler.datadog.test-hostname","device":null}'
|
|
@@ -123,22 +123,22 @@ http_interactions:
|
|
|
123
123
|
Content-Type:
|
|
124
124
|
- text/json; charset=UTF-8
|
|
125
125
|
Date:
|
|
126
|
-
-
|
|
126
|
+
- Wed, 20 Aug 2014 20:51:39 GMT
|
|
127
127
|
Server:
|
|
128
|
-
- dogdispatcher/
|
|
128
|
+
- dogdispatcher/5.1.1
|
|
129
129
|
Content-Length:
|
|
130
130
|
- '376'
|
|
131
131
|
Connection:
|
|
132
132
|
- keep-alive
|
|
133
133
|
body:
|
|
134
134
|
encoding: US-ASCII
|
|
135
|
-
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened":
|
|
135
|
+
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1408567902,
|
|
136
136
|
"handle": null, "title": "Chef completed in 5 seconds on chef.handler.datadog.test-hostname
|
|
137
|
-
", "url": "https://app.datadoghq.com/event/jump_to?event_id=
|
|
137
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2421036717101790995",
|
|
138
138
|
"text": "Chef updated 0 resources out of 0 resources total.", "tags": [],
|
|
139
|
-
"related_event_id": null, "id":
|
|
139
|
+
"related_event_id": null, "id": 2421036717101790995}}'
|
|
140
140
|
http_version:
|
|
141
|
-
recorded_at:
|
|
141
|
+
recorded_at: Wed, 20 Aug 2014 20:51:42 GMT
|
|
142
142
|
- request:
|
|
143
143
|
method: put
|
|
144
144
|
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-hostname?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
|
|
@@ -162,11 +162,11 @@ http_interactions:
|
|
|
162
162
|
Content-Type:
|
|
163
163
|
- application/json
|
|
164
164
|
Date:
|
|
165
|
-
-
|
|
165
|
+
- Wed, 20 Aug 2014 20:51:40 GMT
|
|
166
166
|
Pragma:
|
|
167
167
|
- no-cache
|
|
168
168
|
Server:
|
|
169
|
-
- gunicorn/
|
|
169
|
+
- gunicorn/19.1.0
|
|
170
170
|
Content-Length:
|
|
171
171
|
- '71'
|
|
172
172
|
Connection:
|
|
@@ -175,5 +175,5 @@ http_interactions:
|
|
|
175
175
|
encoding: US-ASCII
|
|
176
176
|
string: ! '{"host": "chef.handler.datadog.test-hostname", "tags": ["env:testing"]}'
|
|
177
177
|
http_version:
|
|
178
|
-
recorded_at:
|
|
179
|
-
recorded_with: VCR 2.9.
|
|
178
|
+
recorded_at: Wed, 20 Aug 2014 20:51:42 GMT
|
|
179
|
+
recorded_with: VCR 2.9.2
|