chef-handler-datadog 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +7 -0
- data/Appraisals +2 -0
- data/CHANGELOG.md +5 -0
- data/gemfiles/chef_11.16.0.gemfile +16 -0
- data/gemfiles/chef_12.0.0.alpha.1.gemfile +16 -0
- data/lib/chef/handler/datadog.rb +8 -4
- data/lib/chef_handler_datadog.rb +1 -1
- data/spec/datadog_spec.rb +1 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +43 -41
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +23 -22
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +20 -19
- data/spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml +19 -18
- data/spec/support/cassettes/Chef_Handler_Datadog/handles_tags_correctly/sets_the_role_and_env_and_tags.yml +22 -21
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +20 -20
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +21 -21
- 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 +20 -20
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +20 -20
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +20 -20
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +20 -20
- 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 +21 -21
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml +22 -22
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/does_not_emit_metrics.yml +12 -11
- data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +13 -12
- data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +20 -20
- metadata +4 -2
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":[[1410264908,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/json; charset=UTF-8
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Tue, 09 Sep 2014 12:15:06 GMT
|
25
25
|
Server:
|
26
26
|
- dogdispatcher/5.1.1
|
27
27
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:15:08 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":[[1410264908,6.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
|
42
42
|
headers:
|
43
43
|
Accept:
|
44
44
|
- ! '*/*'
|
@@ -54,7 +54,7 @@ http_interactions:
|
|
54
54
|
Content-Type:
|
55
55
|
- text/json; charset=UTF-8
|
56
56
|
Date:
|
57
|
-
-
|
57
|
+
- Tue, 09 Sep 2014 12:15:07 GMT
|
58
58
|
Server:
|
59
59
|
- dogdispatcher/5.1.1
|
60
60
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:15:08 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":[[1410264908,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
|
75
75
|
headers:
|
76
76
|
Accept:
|
77
77
|
- ! '*/*'
|
@@ -87,7 +87,7 @@ http_interactions:
|
|
87
87
|
Content-Type:
|
88
88
|
- text/json; charset=UTF-8
|
89
89
|
Date:
|
90
|
-
-
|
90
|
+
- Tue, 09 Sep 2014 12:15:07 GMT
|
91
91
|
Server:
|
92
92
|
- dogdispatcher/5.1.1
|
93
93
|
Content-Length:
|
@@ -98,7 +98,7 @@ http_interactions:
|
|
98
98
|
encoding: US-ASCII
|
99
99
|
string: ! '{"status":"ok"}'
|
100
100
|
http_version:
|
101
|
-
recorded_at:
|
101
|
+
recorded_at: Tue, 09 Sep 2014 12:15:08 GMT
|
102
102
|
- request:
|
103
103
|
method: post
|
104
104
|
uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
|
@@ -107,8 +107,8 @@ http_interactions:
|
|
107
107
|
string: ! '{"msg_text":"Chef updated 6 resources out of 6 resources total.\n$$$\n-
|
108
108
|
[paws] (dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
|
109
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":
|
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
|
+
Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n","date_happened":1410264908,"msg_title":"Chef
|
111
|
+
failed in 2 seconds on chef.handler.datadog.test-failed ","priority":"normal","parent":null,"tags":["env:hostile","role:highlander","tag:the_one_and_only"],"aggregation_key":"chef.handler.datadog.test-failed","alert_type":"error","event_type":"config_management.run","source_type_name":"chef","title":"Chef
|
112
112
|
failed in 2 seconds on chef.handler.datadog.test-failed ","text":"Chef updated
|
113
113
|
6 resources out of 6 resources total.\n$$$\n- [paws] (dynamically defined)\n-
|
114
114
|
[ears] (dynamically defined)\n- [nose] (dynamically defined)\n- [tail] (dynamically
|
@@ -129,25 +129,26 @@ http_interactions:
|
|
129
129
|
Content-Type:
|
130
130
|
- text/json; charset=UTF-8
|
131
131
|
Date:
|
132
|
-
-
|
132
|
+
- Tue, 09 Sep 2014 12:15:08 GMT
|
133
133
|
Server:
|
134
134
|
- dogdispatcher/5.1.1
|
135
135
|
Content-Length:
|
136
|
-
- '
|
136
|
+
- '729'
|
137
137
|
Connection:
|
138
138
|
- keep-alive
|
139
139
|
body:
|
140
140
|
encoding: US-ASCII
|
141
141
|
string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
|
142
|
-
|
143
|
-
", "url": "https://app.datadoghq.com/event/jump_to?event_id=
|
142
|
+
1410264908, "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=2449507804185796858",
|
144
144
|
"text": "Chef updated 6 resources out of 6 resources total.\n$$$\n- [paws]
|
145
145
|
(dynamically defined)\n- [ears] (dynamically defined)\n- [nose] (dynamically
|
146
146
|
defined)\n- [tail] (dynamically defined)\n- [fur] (dynamically defined)\n\n$$$\n\n$$$\nChef::Exceptions::UnsupportedAction:
|
147
147
|
Something awry.\n$$$\n\n$$$\nwhiskers.rb:2\npaws.rb:1\nfile.rb:2\nfile.rb:1\n$$$\n",
|
148
|
-
"tags": [
|
148
|
+
"tags": ["env:hostile", "role:highlander", "tag:the_one_and_only"], "related_event_id":
|
149
|
+
null, "id": 2449507804185796858}}'
|
149
150
|
http_version:
|
150
|
-
recorded_at:
|
151
|
+
recorded_at: Tue, 09 Sep 2014 12:15:08 GMT
|
151
152
|
- request:
|
152
153
|
method: put
|
153
154
|
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
|
@@ -171,7 +172,7 @@ http_interactions:
|
|
171
172
|
Content-Type:
|
172
173
|
- application/json
|
173
174
|
Date:
|
174
|
-
-
|
175
|
+
- Tue, 09 Sep 2014 12:15:09 GMT
|
175
176
|
Pragma:
|
176
177
|
- no-cache
|
177
178
|
Server:
|
@@ -185,5 +186,5 @@ http_interactions:
|
|
185
186
|
string: ! '{"host": "chef.handler.datadog.test-failed", "tags": ["env:hostile",
|
186
187
|
"role:highlander", "tag:the_one_and_only"]}'
|
187
188
|
http_version:
|
188
|
-
recorded_at:
|
189
|
+
recorded_at: Tue, 09 Sep 2014 12:15:08 GMT
|
189
190
|
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":[[1410264888,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/json; charset=UTF-8
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Tue, 09 Sep 2014 12:14:44 GMT
|
25
25
|
Server:
|
26
26
|
- dogdispatcher/5.1.1
|
27
27
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:14:48 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":[[1410264888,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
|
42
42
|
headers:
|
43
43
|
Accept:
|
44
44
|
- ! '*/*'
|
@@ -54,7 +54,7 @@ http_interactions:
|
|
54
54
|
Content-Type:
|
55
55
|
- text/json; charset=UTF-8
|
56
56
|
Date:
|
57
|
-
-
|
57
|
+
- Tue, 09 Sep 2014 12:14:44 GMT
|
58
58
|
Server:
|
59
59
|
- dogdispatcher/5.1.1
|
60
60
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:14:48 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":[[1410264888,5.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
|
75
75
|
headers:
|
76
76
|
Accept:
|
77
77
|
- ! '*/*'
|
@@ -87,7 +87,7 @@ http_interactions:
|
|
87
87
|
Content-Type:
|
88
88
|
- text/json; charset=UTF-8
|
89
89
|
Date:
|
90
|
-
-
|
90
|
+
- Tue, 09 Sep 2014 12:14:45 GMT
|
91
91
|
Server:
|
92
92
|
- dogdispatcher/5.1.1
|
93
93
|
Content-Length:
|
@@ -98,14 +98,14 @@ http_interactions:
|
|
98
98
|
encoding: US-ASCII
|
99
99
|
string: ! '{"status":"ok"}'
|
100
100
|
http_version:
|
101
|
-
recorded_at:
|
101
|
+
recorded_at: Tue, 09 Sep 2014 12:14:48 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":
|
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
|
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
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}'
|
111
111
|
headers:
|
@@ -123,20 +123,21 @@ http_interactions:
|
|
123
123
|
Content-Type:
|
124
124
|
- text/json; charset=UTF-8
|
125
125
|
Date:
|
126
|
-
-
|
126
|
+
- Tue, 09 Sep 2014 12:14:45 GMT
|
127
127
|
Server:
|
128
128
|
- dogdispatcher/5.1.1
|
129
129
|
Content-Length:
|
130
|
-
- '
|
130
|
+
- '429'
|
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": 1410264888,
|
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=
|
138
|
-
"text": "Chef updated 0 resources out of 0 resources total.", "tags": [
|
139
|
-
"related_event_id": null, "id":
|
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}}'
|
140
141
|
http_version:
|
141
|
-
recorded_at:
|
142
|
+
recorded_at: Tue, 09 Sep 2014 12:14:48 GMT
|
142
143
|
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":[[1410264919,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
|
+
- Tue, 09 Sep 2014 12:15:14 GMT
|
25
25
|
Server:
|
26
|
-
- dogdispatcher/5.
|
26
|
+
- dogdispatcher/5.2.0
|
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: Tue, 09 Sep 2014 12:15:19 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":[[1410264919,0.0]],"type":"gauge","host":"chef.handler.datadog.test-tags","device":null}]}'
|
42
42
|
headers:
|
43
43
|
Accept:
|
44
44
|
- ! '*/*'
|
@@ -54,7 +54,7 @@ http_interactions:
|
|
54
54
|
Content-Type:
|
55
55
|
- text/json; charset=UTF-8
|
56
56
|
Date:
|
57
|
-
-
|
57
|
+
- Tue, 09 Sep 2014 12:15:15 GMT
|
58
58
|
Server:
|
59
59
|
- dogdispatcher/5.1.1
|
60
60
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:15:19 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":[[1410264919,5.0]],"type":"gauge","host":"chef.handler.datadog.test-tags","device":null}]}'
|
75
75
|
headers:
|
76
76
|
Accept:
|
77
77
|
- ! '*/*'
|
@@ -87,7 +87,7 @@ http_interactions:
|
|
87
87
|
Content-Type:
|
88
88
|
- text/json; charset=UTF-8
|
89
89
|
Date:
|
90
|
-
-
|
90
|
+
- Tue, 09 Sep 2014 12:15:15 GMT
|
91
91
|
Server:
|
92
92
|
- dogdispatcher/5.1.1
|
93
93
|
Content-Length:
|
@@ -98,14 +98,14 @@ http_interactions:
|
|
98
98
|
encoding: US-ASCII
|
99
99
|
string: ! '{"status":"ok"}'
|
100
100
|
http_version:
|
101
|
-
recorded_at:
|
101
|
+
recorded_at: Tue, 09 Sep 2014 12:15:19 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":
|
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
|
107
|
+
string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1410264919,"msg_title":"Chef
|
108
|
+
completed in 5 seconds on chef.handler.datadog.test-tags ","priority":"low","parent":null,"tags":["env:hostile","role:highlander","tag:the_one_and_only"],"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}'
|
111
111
|
headers:
|
@@ -123,22 +123,23 @@ http_interactions:
|
|
123
123
|
Content-Type:
|
124
124
|
- text/json; charset=UTF-8
|
125
125
|
Date:
|
126
|
-
-
|
126
|
+
- Tue, 09 Sep 2014 12:15:16 GMT
|
127
127
|
Server:
|
128
128
|
- dogdispatcher/5.1.1
|
129
129
|
Content-Length:
|
130
|
-
- '
|
130
|
+
- '428'
|
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": 1410264919,
|
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=
|
138
|
-
"text": "Chef updated 0 resources out of 0 resources total.", "tags": [
|
139
|
-
"related_event_id": null, "id":
|
137
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2449507933236142332",
|
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
|
+
2449507933236142332}}'
|
140
141
|
http_version:
|
141
|
-
recorded_at:
|
142
|
+
recorded_at: Tue, 09 Sep 2014 12:15:19 GMT
|
142
143
|
- request:
|
143
144
|
method: put
|
144
145
|
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,7 +163,7 @@ http_interactions:
|
|
162
163
|
Content-Type:
|
163
164
|
- application/json
|
164
165
|
Date:
|
165
|
-
-
|
166
|
+
- Tue, 09 Sep 2014 12:15:16 GMT
|
166
167
|
Pragma:
|
167
168
|
- no-cache
|
168
169
|
Server:
|
@@ -176,5 +177,5 @@ http_interactions:
|
|
176
177
|
string: ! '{"host": "chef.handler.datadog.test-tags", "tags": ["env:hostile",
|
177
178
|
"role:highlander", "tag:the_one_and_only"]}'
|
178
179
|
http_version:
|
179
|
-
recorded_at:
|
180
|
+
recorded_at: Tue, 09 Sep 2014 12:15:19 GMT
|
180
181
|
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":[[1410264901,0.0]],"type":"gauge","host":"chef.handler.datadog.test-hostname","device":null}]}'
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- ! '*/*'
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Content-Type:
|
22
22
|
- text/json; charset=UTF-8
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Tue, 09 Sep 2014 12:14:57 GMT
|
25
25
|
Server:
|
26
26
|
- dogdispatcher/5.1.1
|
27
27
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:15:01 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":[[1410264901,0.0]],"type":"gauge","host":"chef.handler.datadog.test-hostname","device":null}]}'
|
42
42
|
headers:
|
43
43
|
Accept:
|
44
44
|
- ! '*/*'
|
@@ -54,7 +54,7 @@ http_interactions:
|
|
54
54
|
Content-Type:
|
55
55
|
- text/json; charset=UTF-8
|
56
56
|
Date:
|
57
|
-
-
|
57
|
+
- Tue, 09 Sep 2014 12:14:57 GMT
|
58
58
|
Server:
|
59
59
|
- dogdispatcher/5.1.1
|
60
60
|
Content-Length:
|
@@ -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: Tue, 09 Sep 2014 12:15:01 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":[[1410264901,5.0]],"type":"gauge","host":"chef.handler.datadog.test-hostname","device":null}]}'
|
75
75
|
headers:
|
76
76
|
Accept:
|
77
77
|
- ! '*/*'
|
@@ -87,7 +87,7 @@ http_interactions:
|
|
87
87
|
Content-Type:
|
88
88
|
- text/json; charset=UTF-8
|
89
89
|
Date:
|
90
|
-
-
|
90
|
+
- Tue, 09 Sep 2014 12:14:58 GMT
|
91
91
|
Server:
|
92
92
|
- dogdispatcher/5.1.1
|
93
93
|
Content-Length:
|
@@ -98,14 +98,14 @@ http_interactions:
|
|
98
98
|
encoding: US-ASCII
|
99
99
|
string: ! '{"status":"ok"}'
|
100
100
|
http_version:
|
101
|
-
recorded_at:
|
101
|
+
recorded_at: Tue, 09 Sep 2014 12:15:01 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":
|
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
|
107
|
+
string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1410264901,"msg_title":"Chef
|
108
|
+
completed in 5 seconds on chef.handler.datadog.test-hostname ","priority":"low","parent":null,"tags":["env:testing"],"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}'
|
111
111
|
headers:
|
@@ -123,22 +123,22 @@ http_interactions:
|
|
123
123
|
Content-Type:
|
124
124
|
- text/json; charset=UTF-8
|
125
125
|
Date:
|
126
|
-
-
|
126
|
+
- Tue, 09 Sep 2014 12:14:58 GMT
|
127
127
|
Server:
|
128
128
|
- dogdispatcher/5.1.1
|
129
129
|
Content-Length:
|
130
|
-
- '
|
130
|
+
- '389'
|
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": 1410264901,
|
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=
|
138
|
-
"text": "Chef updated 0 resources out of 0 resources total.", "tags": [],
|
139
|
-
"related_event_id": null, "id":
|
137
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2449507639349448987",
|
138
|
+
"text": "Chef updated 0 resources out of 0 resources total.", "tags": ["env:testing"],
|
139
|
+
"related_event_id": null, "id": 2449507639349448987}}'
|
140
140
|
http_version:
|
141
|
-
recorded_at:
|
141
|
+
recorded_at: Tue, 09 Sep 2014 12:15:01 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,7 +162,7 @@ http_interactions:
|
|
162
162
|
Content-Type:
|
163
163
|
- application/json
|
164
164
|
Date:
|
165
|
-
-
|
165
|
+
- Tue, 09 Sep 2014 12:14:59 GMT
|
166
166
|
Pragma:
|
167
167
|
- no-cache
|
168
168
|
Server:
|
@@ -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:
|
178
|
+
recorded_at: Tue, 09 Sep 2014 12:15:01 GMT
|
179
179
|
recorded_with: VCR 2.9.2
|