chef-handler-datadog 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -2
- data/.rubocop.yml +3 -1
- data/.travis.yml +3 -2
- data/Appraisals +4 -4
- data/CHANGELOG.md +12 -1
- data/chef-handler-datadog.gemspec +6 -6
- data/gemfiles/chef_10.26.0.gemfile +1 -1
- data/gemfiles/chef_10.26.0.gemfile.lock +140 -0
- data/gemfiles/chef_10.32.2.gemfile +13 -0
- data/gemfiles/chef_10.32.2.gemfile.lock +140 -0
- data/gemfiles/{chef_10.14.0.gemfile → chef_11.10.4.gemfile} +2 -2
- data/gemfiles/chef_11.10.4.gemfile.lock +143 -0
- data/gemfiles/{chef_10.30.2.gemfile → chef_11.12.2.gemfile} +2 -2
- data/gemfiles/chef_11.12.2.gemfile.lock +139 -0
- data/gemfiles/chef_11.8.2.gemfile +1 -2
- data/gemfiles/chef_11.8.2.gemfile.lock +143 -0
- data/lib/chef/handler/datadog.rb +102 -79
- data/lib/{chef-handler-datadog.rb → chef_handler_datadog.rb} +1 -1
- data/spec/datadog_spec.rb +55 -7
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +363 -0
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +25 -60
- data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +25 -60
- 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 +25 -60
- data/spec/support/cassettes/Chef_Handler_Datadog/{reports_metrics_event_and_sets_tags/get_and_set_tags/gets_the_tags_for_the_current_node.yml → hostname/uses_the_node_name_when_no_config_specified.yml} +30 -65
- data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +179 -0
- 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 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +23 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +23 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +23 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +23 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +23 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/{get_and_set_tags → sets_tags}/puts_the_tags_for_the_current_node.yml +23 -58
- data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +23 -58
- metadata +28 -18
@@ -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":[[1398157282,0.0]],"type":"gauge","host":"chef.handler.datadog.test","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, 22 Apr 2014 09:01:19 GMT
|
25
25
|
Server:
|
26
|
-
- dogdispatcher/4.
|
26
|
+
- dogdispatcher/4.12.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: Tue, 22 Apr 2014 09:01:22 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":[[1398157282,0.0]],"type":"gauge","host":"chef.handler.datadog.test","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
|
+
- Tue, 22 Apr 2014 09:01:21 GMT
|
58
58
|
Server:
|
59
|
-
- dogdispatcher/4.
|
59
|
+
- dogdispatcher/4.12.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: Tue, 22 Apr 2014 09:01:22 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":[[1398157282,5.0]],"type":"gauge","host":"chef.handler.datadog.test","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
|
+
- Tue, 22 Apr 2014 09:01:22 GMT
|
91
91
|
Server:
|
92
|
-
- dogdispatcher/4.
|
92
|
+
- dogdispatcher/4.12.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: Tue, 22 Apr 2014 09:01:22 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":1398157282,"msg_title":"Chef
|
108
108
|
completed in 5 seconds on chef.handler.datadog.test ","priority":"low","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test","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 ","text":"Chef updated
|
110
110
|
0 resources out of 0 resources total.","host":"chef.handler.datadog.test","device":null}'
|
@@ -123,60 +123,25 @@ http_interactions:
|
|
123
123
|
Content-Type:
|
124
124
|
- text/json; charset=UTF-8
|
125
125
|
Date:
|
126
|
-
-
|
126
|
+
- Tue, 22 Apr 2014 09:01:23 GMT
|
127
127
|
Server:
|
128
|
-
- dogdispatcher/4.
|
128
|
+
- dogdispatcher/4.12.1
|
129
129
|
Content-Length:
|
130
130
|
- '367'
|
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": 1398157282,
|
136
136
|
"handle": null, "title": "Chef completed in 5 seconds on chef.handler.datadog.test
|
137
|
-
", "url": "https://app.datadoghq.com/event/jump_to?event_id=
|
137
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246375563659269569",
|
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": 2246375563659269569}}'
|
140
140
|
http_version:
|
141
|
-
recorded_at:
|
142
|
-
- request:
|
143
|
-
method: get
|
144
|
-
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=<API_KEY>&application_key=<APPLICATION_KEY>
|
145
|
-
body:
|
146
|
-
encoding: US-ASCII
|
147
|
-
string: ''
|
148
|
-
headers:
|
149
|
-
Accept:
|
150
|
-
- ! '*/*'
|
151
|
-
User-Agent:
|
152
|
-
- Ruby
|
153
|
-
response:
|
154
|
-
status:
|
155
|
-
code: 200
|
156
|
-
message: OK
|
157
|
-
headers:
|
158
|
-
Cache-Control:
|
159
|
-
- no-cache
|
160
|
-
Content-Type:
|
161
|
-
- application/json
|
162
|
-
Date:
|
163
|
-
- Sun, 19 Jan 2014 01:54:26 GMT
|
164
|
-
Pragma:
|
165
|
-
- no-cache
|
166
|
-
Server:
|
167
|
-
- gunicorn/0.17.4
|
168
|
-
Content-Length:
|
169
|
-
- '59'
|
170
|
-
Connection:
|
171
|
-
- keep-alive
|
172
|
-
body:
|
173
|
-
encoding: US-ASCII
|
174
|
-
string: ! '{"tags": ["env:hostile", "role:highlander", "env:testing"]}'
|
175
|
-
http_version:
|
176
|
-
recorded_at: Sun, 19 Jan 2014 01:54:38 GMT
|
141
|
+
recorded_at: Tue, 22 Apr 2014 09:01:22 GMT
|
177
142
|
- request:
|
178
143
|
method: put
|
179
|
-
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=<API_KEY>&application_key=<APPLICATION_KEY
|
144
|
+
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
|
180
145
|
body:
|
181
146
|
encoding: UTF-8
|
182
147
|
string: ! '{"tags":["env:testing"]}'
|
@@ -197,7 +162,7 @@ http_interactions:
|
|
197
162
|
Content-Type:
|
198
163
|
- application/json
|
199
164
|
Date:
|
200
|
-
-
|
165
|
+
- Tue, 22 Apr 2014 09:01:25 GMT
|
201
166
|
Pragma:
|
202
167
|
- no-cache
|
203
168
|
Server:
|
@@ -210,5 +175,5 @@ http_interactions:
|
|
210
175
|
encoding: US-ASCII
|
211
176
|
string: ! '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
|
212
177
|
http_version:
|
213
|
-
recorded_at:
|
214
|
-
recorded_with: VCR 2.
|
178
|
+
recorded_at: Tue, 22 Apr 2014 09:01:22 GMT
|
179
|
+
recorded_with: VCR 2.9.0
|
@@ -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":[[1398157256,2.0]],"type":"gauge","host":"chef.handler.datadog.test-resources","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, 22 Apr 2014 09:00:49 GMT
|
25
25
|
Server:
|
26
|
-
- dogdispatcher/4.
|
26
|
+
- dogdispatcher/4.12.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: Tue, 22 Apr 2014 09:00:56 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":[[1398157256,1.0]],"type":"gauge","host":"chef.handler.datadog.test-resources","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
|
+
- Tue, 22 Apr 2014 09:00:50 GMT
|
58
58
|
Server:
|
59
|
-
- dogdispatcher/4.
|
59
|
+
- dogdispatcher/4.12.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: Tue, 22 Apr 2014 09:00:56 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":[[1398157256,8.0]],"type":"gauge","host":"chef.handler.datadog.test-resources","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
|
+
- Tue, 22 Apr 2014 09:00:51 GMT
|
91
91
|
Server:
|
92
|
-
- dogdispatcher/4.
|
92
|
+
- dogdispatcher/4.12.1
|
93
93
|
Content-Length:
|
94
94
|
- '15'
|
95
95
|
Connection:
|
@@ -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, 22 Apr 2014 09:00:56 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
107
|
string: ! '{"msg_text":"Chef updated 1 resources out of 2 resources total.\n@@@\n-
|
108
|
-
[whiskers] (dynamically defined)\n\n@@@\n","date_happened":
|
108
|
+
[whiskers] (dynamically defined)\n\n@@@\n","date_happened":1398157256,"msg_title":"Chef
|
109
109
|
completed in 8 seconds on chef.handler.datadog.test-resources ","priority":"low","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-resources","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
|
110
110
|
completed in 8 seconds on chef.handler.datadog.test-resources ","text":"Chef
|
111
111
|
updated 1 resources out of 2 resources total.\n@@@\n- [whiskers] (dynamically
|
@@ -125,61 +125,26 @@ http_interactions:
|
|
125
125
|
Content-Type:
|
126
126
|
- text/json; charset=UTF-8
|
127
127
|
Date:
|
128
|
-
-
|
128
|
+
- Tue, 22 Apr 2014 09:00:53 GMT
|
129
129
|
Server:
|
130
|
-
- dogdispatcher/4.
|
130
|
+
- dogdispatcher/4.12.1
|
131
131
|
Content-Length:
|
132
132
|
- '427'
|
133
133
|
Connection:
|
134
134
|
- keep-alive
|
135
135
|
body:
|
136
136
|
encoding: US-ASCII
|
137
|
-
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened":
|
137
|
+
string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1398157256,
|
138
138
|
"handle": null, "title": "Chef completed in 8 seconds on chef.handler.datadog.test-resources
|
139
|
-
", "url": "https://app.datadoghq.com/event/jump_to?event_id=
|
139
|
+
", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246375055376905800",
|
140
140
|
"text": "Chef updated 1 resources out of 2 resources total.\n@@@\n- [whiskers]
|
141
141
|
(dynamically defined)\n\n@@@\n", "tags": [], "related_event_id": null, "id":
|
142
|
-
|
142
|
+
2246375055376905800}}'
|
143
143
|
http_version:
|
144
|
-
recorded_at:
|
145
|
-
- request:
|
146
|
-
method: get
|
147
|
-
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-resources?api_key=<API_KEY>&application_key=<APPLICATION_KEY>
|
148
|
-
body:
|
149
|
-
encoding: US-ASCII
|
150
|
-
string: ''
|
151
|
-
headers:
|
152
|
-
Accept:
|
153
|
-
- ! '*/*'
|
154
|
-
User-Agent:
|
155
|
-
- Ruby
|
156
|
-
response:
|
157
|
-
status:
|
158
|
-
code: 200
|
159
|
-
message: OK
|
160
|
-
headers:
|
161
|
-
Cache-Control:
|
162
|
-
- no-cache
|
163
|
-
Content-Type:
|
164
|
-
- application/json
|
165
|
-
Date:
|
166
|
-
- Sun, 19 Jan 2014 17:24:43 GMT
|
167
|
-
Pragma:
|
168
|
-
- no-cache
|
169
|
-
Server:
|
170
|
-
- gunicorn/0.17.4
|
171
|
-
Content-Length:
|
172
|
-
- '12'
|
173
|
-
Connection:
|
174
|
-
- keep-alive
|
175
|
-
body:
|
176
|
-
encoding: US-ASCII
|
177
|
-
string: ! '{"tags": []}'
|
178
|
-
http_version:
|
179
|
-
recorded_at: Sun, 19 Jan 2014 17:24:56 GMT
|
144
|
+
recorded_at: Tue, 22 Apr 2014 09:00:56 GMT
|
180
145
|
- request:
|
181
146
|
method: put
|
182
|
-
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-resources?api_key=<API_KEY>&application_key=<APPLICATION_KEY
|
147
|
+
uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-resources?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
|
183
148
|
body:
|
184
149
|
encoding: UTF-8
|
185
150
|
string: ! '{"tags":["env:resources"]}'
|
@@ -200,7 +165,7 @@ http_interactions:
|
|
200
165
|
Content-Type:
|
201
166
|
- application/json
|
202
167
|
Date:
|
203
|
-
-
|
168
|
+
- Tue, 22 Apr 2014 09:00:54 GMT
|
204
169
|
Pragma:
|
205
170
|
- no-cache
|
206
171
|
Server:
|
@@ -213,5 +178,5 @@ http_interactions:
|
|
213
178
|
encoding: US-ASCII
|
214
179
|
string: ! '{"host": "chef.handler.datadog.test-resources", "tags": ["env:resources"]}'
|
215
180
|
http_version:
|
216
|
-
recorded_at:
|
217
|
-
recorded_with: VCR 2.
|
181
|
+
recorded_at: Tue, 22 Apr 2014 09:00:56 GMT
|
182
|
+
recorded_with: VCR 2.9.0
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Fiedler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dogapi
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '1.
|
21
|
+
version: '1.6'
|
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.
|
28
|
+
version: '1.6'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: appraisal
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.0.0
|
35
|
+
version: 1.0.0
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.0.0
|
42
|
+
version: 1.0.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: bundler
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,16 +120,16 @@ dependencies:
|
|
120
120
|
name: rubocop
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: 0.21.0
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ~>
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 0.21.0
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: simplecov
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,26 +193,34 @@ files:
|
|
193
193
|
- README.md
|
194
194
|
- Rakefile
|
195
195
|
- chef-handler-datadog.gemspec
|
196
|
-
- gemfiles/chef_10.14.0.gemfile
|
197
196
|
- gemfiles/chef_10.26.0.gemfile
|
198
|
-
- gemfiles/chef_10.
|
197
|
+
- gemfiles/chef_10.26.0.gemfile.lock
|
198
|
+
- gemfiles/chef_10.32.2.gemfile
|
199
|
+
- gemfiles/chef_10.32.2.gemfile.lock
|
200
|
+
- gemfiles/chef_11.10.4.gemfile
|
201
|
+
- gemfiles/chef_11.10.4.gemfile.lock
|
202
|
+
- gemfiles/chef_11.12.2.gemfile
|
203
|
+
- gemfiles/chef_11.12.2.gemfile.lock
|
199
204
|
- gemfiles/chef_11.8.2.gemfile
|
200
|
-
-
|
205
|
+
- gemfiles/chef_11.8.2.gemfile.lock
|
201
206
|
- lib/chef/handler/datadog.rb
|
207
|
+
- lib/chef_handler_datadog.rb
|
202
208
|
- spec/datadog_spec.rb
|
203
209
|
- spec/spec_helper.rb
|
210
|
+
- spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml
|
204
211
|
- spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml
|
205
212
|
- spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml
|
206
213
|
- spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml
|
207
214
|
- spec/support/cassettes/Chef_Handler_Datadog/handles_tags_correctly/sets_the_role_and_env_and_tags.yml
|
215
|
+
- spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml
|
216
|
+
- spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml
|
208
217
|
- 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
|
209
218
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml
|
210
219
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml
|
211
220
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml
|
212
221
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml
|
213
222
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml
|
214
|
-
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/
|
215
|
-
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/get_and_set_tags/puts_the_tags_for_the_current_node.yml
|
223
|
+
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml
|
216
224
|
- spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml
|
217
225
|
homepage: http://www.datadoghq.com/
|
218
226
|
licenses:
|
@@ -234,23 +242,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
242
|
version: '0'
|
235
243
|
requirements: []
|
236
244
|
rubyforge_project:
|
237
|
-
rubygems_version: 2.
|
245
|
+
rubygems_version: 2.2.2
|
238
246
|
signing_key:
|
239
247
|
specification_version: 4
|
240
248
|
summary: Chef Handler for DataDog events and metrics
|
241
249
|
test_files:
|
242
250
|
- spec/datadog_spec.rb
|
243
251
|
- spec/spec_helper.rb
|
252
|
+
- spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml
|
244
253
|
- spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml
|
245
254
|
- spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml
|
246
255
|
- spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml
|
247
256
|
- spec/support/cassettes/Chef_Handler_Datadog/handles_tags_correctly/sets_the_role_and_env_and_tags.yml
|
257
|
+
- spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml
|
258
|
+
- spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml
|
248
259
|
- 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
|
249
260
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml
|
250
261
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml
|
251
262
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml
|
252
263
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml
|
253
264
|
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml
|
254
|
-
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/
|
255
|
-
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/get_and_set_tags/puts_the_tags_for_the_current_node.yml
|
265
|
+
- spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml
|
256
266
|
- spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml
|