funktor 0.7.8 → 0.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/funktor-testapp/funktor_config/resources/cloudwatch_dashboard.yml +1104 -293
- data/lib/funktor/cli/init.rb +1 -1
- data/lib/funktor/cli/templates/funktor_config/resources/cloudwatch_dashboard.yml +285 -41
- data/lib/funktor/version.rb +1 -1
- metadata +1 -1
data/lib/funktor/cli/init.rb
CHANGED
@@ -21,11 +21,133 @@ Resources:
|
|
21
21
|
},
|
22
22
|
<% current_y += 3 %>
|
23
23
|
|
24
|
+
{ <% "Jobs/Minute Section" %>
|
25
|
+
"height": 1,
|
26
|
+
"width": 24,
|
27
|
+
"y": <%= current_y %>,
|
28
|
+
"x": 0,
|
29
|
+
"type": "text",
|
30
|
+
"properties": {
|
31
|
+
"markdown": "\n# Jobs Per Minute By Worker\n"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
<% current_y += 1 %>
|
35
|
+
|
36
|
+
|
37
|
+
<%- app_worker_names.each_with_index do |worker_name, index| -%>
|
38
|
+
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
39
|
+
{ <% "Processed Jobs By Worker" %>
|
40
|
+
"height": 3,
|
41
|
+
"width": 4,
|
42
|
+
"y": <%= current_y %>,
|
43
|
+
"x": <%= (index % 6) * 4 %>,
|
44
|
+
"type": "metric",
|
45
|
+
"properties": {
|
46
|
+
"metrics": [
|
47
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]
|
48
|
+
],
|
49
|
+
"view": "timeSeries",
|
50
|
+
"stacked": false,
|
51
|
+
"region": "us-east-1",
|
52
|
+
"title": "<%= worker_name %> Jobs/Min",
|
53
|
+
"period": 60,
|
54
|
+
"stat": "Sum",
|
55
|
+
"legend": {
|
56
|
+
"position": "hidden"
|
57
|
+
}
|
58
|
+
}
|
59
|
+
},
|
60
|
+
<%- end -%>
|
61
|
+
<%- current_y += 3 if (app_worker_names.count - 1) % 6 != 0 %>
|
62
|
+
|
63
|
+
|
64
|
+
{ <% "Failures/Minute Section" %>
|
65
|
+
"height": 1,
|
66
|
+
"width": 24,
|
67
|
+
"y": <%= current_y %>,
|
68
|
+
"x": 0,
|
69
|
+
"type": "text",
|
70
|
+
"properties": {
|
71
|
+
"markdown": "\n# Failures Per Minute By Worker\n"
|
72
|
+
}
|
73
|
+
},
|
74
|
+
<% current_y += 1 %>
|
75
|
+
|
76
|
+
|
77
|
+
<%- app_worker_names.each_with_index do |worker_name, index| -%>
|
78
|
+
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
79
|
+
{ <% "Failed Jobs By Worker" %>
|
80
|
+
"height": 3,
|
81
|
+
"width": 4,
|
82
|
+
"y": <%= current_y %>,
|
83
|
+
"x": <%= (index % 6) * 4 %>,
|
84
|
+
"type": "metric",
|
85
|
+
"properties": {
|
86
|
+
"metrics": [
|
87
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
|
88
|
+
],
|
89
|
+
"view": "timeSeries",
|
90
|
+
"stacked": false,
|
91
|
+
"region": "us-east-1",
|
92
|
+
"title": "<%= worker_name %> Fails/Min",
|
93
|
+
"period": 60,
|
94
|
+
"stat": "Sum",
|
95
|
+
"legend": {
|
96
|
+
"position": "hidden"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
},
|
100
|
+
<%- end -%>
|
101
|
+
<%- current_y += 3 if (app_worker_names.count - 1) % 6 != 0 %>
|
102
|
+
|
103
|
+
|
104
|
+
{ <% "Duration Percentiles Section" %>
|
105
|
+
"height": 1,
|
106
|
+
"width": 24,
|
107
|
+
"y": <%= current_y %>,
|
108
|
+
"x": 0,
|
109
|
+
"type": "text",
|
110
|
+
"properties": {
|
111
|
+
"markdown": "\n# Duration Percentiles By Worker\n"
|
112
|
+
}
|
113
|
+
},
|
114
|
+
<% current_y += 1 %>
|
115
|
+
|
116
|
+
|
117
|
+
<%- app_worker_names.each_with_index do |worker_name, index| -%>
|
118
|
+
<%- current_y += 4 if (index > 0 && (index % 6) == 0) %>
|
119
|
+
{ <% "Job Duration By Worker" %>
|
120
|
+
"height": 4,
|
121
|
+
"width": 4,
|
122
|
+
"y": <%= current_y %>,
|
123
|
+
"x": <%= (index % 6) * 4 %>,
|
124
|
+
"type": "metric",
|
125
|
+
"properties": {
|
126
|
+
"metrics": [
|
127
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "stat": "p90", "color": "#d62728" } ],
|
128
|
+
[ "...", { "label": "p80", "stat": "p80", "color": "#2ca02c" } ],
|
129
|
+
[ "...", { "label": "p70", "stat": "p70", "color": "#ff7f0e" } ],
|
130
|
+
[ "...", { "label": "p60", "color": "#1f77b4" } ]
|
131
|
+
],
|
132
|
+
"view": "timeSeries",
|
133
|
+
"stacked": false,
|
134
|
+
"region": "us-east-1",
|
135
|
+
"stat": "p60",
|
136
|
+
"period": 60,
|
137
|
+
"title": "<%= worker_name %> Duration Percentiles",
|
138
|
+
"legend": {
|
139
|
+
"position": "bottom"
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
<%- end -%>
|
144
|
+
<%- current_y += 3 if (app_worker_names.count - 1) % 6 != 0 %>
|
145
|
+
|
24
146
|
|
25
147
|
<%- app_worker_names.each do |worker_name| -%>
|
26
148
|
{ <% "Worker" %>
|
27
|
-
"height":
|
28
|
-
"width":
|
149
|
+
"height": 1,
|
150
|
+
"width": 24,
|
29
151
|
"y": <%= current_y %>,
|
30
152
|
"x": 0,
|
31
153
|
"type": "text",
|
@@ -33,44 +155,150 @@ Resources:
|
|
33
155
|
"markdown": "\n# <%= worker_name %>\n"
|
34
156
|
}
|
35
157
|
},
|
158
|
+
<% current_y += 1 %>
|
159
|
+
|
36
160
|
{ <% "Worker Jobs per minute" %>
|
37
|
-
"height":
|
38
|
-
"width":
|
161
|
+
"height": 2,
|
162
|
+
"width": 3,
|
39
163
|
"y": <%= current_y %>,
|
40
|
-
"x":
|
164
|
+
"x": 0,
|
165
|
+
"type": "metric",
|
166
|
+
"properties": {
|
167
|
+
"metrics": [
|
168
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]
|
169
|
+
],
|
170
|
+
"view": "singleValue",
|
171
|
+
"region": "us-east-1",
|
172
|
+
"stat": "Sum",
|
173
|
+
"period": 60,
|
174
|
+
"sparkline": false,
|
175
|
+
"title": "<%= worker_name %> Processed/Min"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
{ <% "Worker Jobs per minute" %>
|
179
|
+
"height": 2,
|
180
|
+
"width": 3,
|
181
|
+
"y": <%= current_y %>,
|
182
|
+
"x": 3,
|
41
183
|
"type": "metric",
|
42
184
|
"properties": {
|
43
185
|
"metrics": [
|
44
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ],
|
45
186
|
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
|
46
187
|
],
|
47
188
|
"view": "singleValue",
|
48
189
|
"region": "us-east-1",
|
49
190
|
"stat": "Sum",
|
50
191
|
"period": 60,
|
51
|
-
"sparkline":
|
52
|
-
"title": "<%= worker_name %>
|
192
|
+
"sparkline": false,
|
193
|
+
"title": "<%= worker_name %> Failed/Min"
|
53
194
|
}
|
54
195
|
},
|
55
|
-
{ <% "Worker
|
56
|
-
"height":
|
57
|
-
"width":
|
196
|
+
{ <% "Worker Duration Percentiles" %>
|
197
|
+
"height": 2,
|
198
|
+
"width": 3,
|
199
|
+
"y": <%= current_y %>,
|
200
|
+
"x": 6,
|
201
|
+
"type": "metric",
|
202
|
+
"properties": {
|
203
|
+
"metrics": [
|
204
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p60", "color": "#1f77b4" } ]
|
205
|
+
],
|
206
|
+
"view": "singleValue",
|
207
|
+
"region": "us-east-1",
|
208
|
+
"stat": "p60",
|
209
|
+
"period": 60,
|
210
|
+
"sparkline": false,
|
211
|
+
"title": "<%= worker_name %> p60"
|
212
|
+
}
|
213
|
+
},
|
214
|
+
{ <% "Worker Duration Percentiles" %>
|
215
|
+
"height": 2,
|
216
|
+
"width": 3,
|
217
|
+
"y": <%= current_y %>,
|
218
|
+
"x": 9,
|
219
|
+
"type": "metric",
|
220
|
+
"properties": {
|
221
|
+
"metrics": [
|
222
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p70", "color": "#ff7f0e" } ]
|
223
|
+
],
|
224
|
+
"view": "singleValue",
|
225
|
+
"region": "us-east-1",
|
226
|
+
"stat": "p70",
|
227
|
+
"period": 60,
|
228
|
+
"sparkline": false,
|
229
|
+
"title": "<%= worker_name %> p70"
|
230
|
+
}
|
231
|
+
},
|
232
|
+
{ <% "Worker Duration Percentiles" %>
|
233
|
+
"height": 2,
|
234
|
+
"width": 3,
|
58
235
|
"y": <%= current_y %>,
|
59
236
|
"x": 12,
|
60
237
|
"type": "metric",
|
61
238
|
"properties": {
|
62
239
|
"metrics": [
|
63
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "
|
64
|
-
[ "...", { "label": "p50", "stat": "p50" } ],
|
65
|
-
[ "...", { "label": "p99", "stat": "p99" } ],
|
66
|
-
[ "...", { "label": "Average", "stat": "Average" } ]
|
240
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p80", "color": "#2ca02c" } ]
|
67
241
|
],
|
68
242
|
"view": "singleValue",
|
69
243
|
"region": "us-east-1",
|
70
|
-
"stat": "
|
244
|
+
"stat": "p80",
|
71
245
|
"period": 60,
|
72
|
-
"sparkline":
|
73
|
-
"title": "<%= worker_name %>
|
246
|
+
"sparkline": false,
|
247
|
+
"title": "<%= worker_name %> p80"
|
248
|
+
}
|
249
|
+
},
|
250
|
+
{ <% "Worker Duration Percentiles" %>
|
251
|
+
"height": 2,
|
252
|
+
"width": 3,
|
253
|
+
"y": <%= current_y %>,
|
254
|
+
"x": 15,
|
255
|
+
"type": "metric",
|
256
|
+
"properties": {
|
257
|
+
"metrics": [
|
258
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "color": "#d62728" } ]
|
259
|
+
],
|
260
|
+
"view": "singleValue",
|
261
|
+
"region": "us-east-1",
|
262
|
+
"stat": "p90",
|
263
|
+
"period": 60,
|
264
|
+
"sparkline": false,
|
265
|
+
"title": "<%= worker_name %> p90"
|
266
|
+
}
|
267
|
+
},
|
268
|
+
{ <% "Worker Min/Max" %>
|
269
|
+
"height": 2,
|
270
|
+
"width": 3,
|
271
|
+
"y": <%= current_y %>,
|
272
|
+
"x": 18,
|
273
|
+
"type": "metric",
|
274
|
+
"properties": {
|
275
|
+
"metrics": [
|
276
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "Min" } ]
|
277
|
+
],
|
278
|
+
"view": "singleValue",
|
279
|
+
"region": "us-east-1",
|
280
|
+
"stat": "Minimum",
|
281
|
+
"period": 60,
|
282
|
+
"sparkline": false,
|
283
|
+
"title": "<%= worker_name %> Min"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
{ <% "Worker Min/Max" %>
|
287
|
+
"height": 2,
|
288
|
+
"width": 3,
|
289
|
+
"y": <%= current_y %>,
|
290
|
+
"x": 21,
|
291
|
+
"type": "metric",
|
292
|
+
"properties": {
|
293
|
+
"metrics": [
|
294
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "Max", "color": "#d62728" } ]
|
295
|
+
],
|
296
|
+
"view": "singleValue",
|
297
|
+
"region": "us-east-1",
|
298
|
+
"stat": "Maximum",
|
299
|
+
"period": 60,
|
300
|
+
"sparkline": false,
|
301
|
+
"title": "<%= worker_name %> Max"
|
74
302
|
}
|
75
303
|
},
|
76
304
|
<% current_y += 3 %>
|
@@ -80,7 +308,7 @@ Resources:
|
|
80
308
|
|
81
309
|
{ <% "Processed Jobs By Worker" %>
|
82
310
|
"height": 3,
|
83
|
-
"width":
|
311
|
+
"width": 3,
|
84
312
|
"y": <%= current_y %>,
|
85
313
|
"x": 0,
|
86
314
|
"type": "metric",
|
@@ -93,14 +321,17 @@ Resources:
|
|
93
321
|
"region": "us-east-1",
|
94
322
|
"title": "<%= worker_name %> Processed Jobs",
|
95
323
|
"period": 60,
|
96
|
-
"stat": "Sum"
|
324
|
+
"stat": "Sum",
|
325
|
+
"legend": {
|
326
|
+
"position": "hidden"
|
327
|
+
}
|
97
328
|
}
|
98
329
|
},
|
99
330
|
{ <% "Failed Jobs By Worker" %>
|
100
331
|
"height": 3,
|
101
|
-
"width":
|
102
|
-
"y": <%= current_y
|
103
|
-
"x":
|
332
|
+
"width": 3,
|
333
|
+
"y": <%= current_y %>,
|
334
|
+
"x": 3,
|
104
335
|
"type": "metric",
|
105
336
|
"properties": {
|
106
337
|
"metrics": [
|
@@ -111,33 +342,39 @@ Resources:
|
|
111
342
|
"region": "us-east-1",
|
112
343
|
"title": "<%= worker_name %> Failed Jobs",
|
113
344
|
"period": 60,
|
114
|
-
"stat": "Sum"
|
345
|
+
"stat": "Sum",
|
346
|
+
"legend": {
|
347
|
+
"position": "hidden"
|
348
|
+
}
|
115
349
|
}
|
116
350
|
},
|
117
351
|
{ <% "Job Duration By Worker" %>
|
118
|
-
"height":
|
352
|
+
"height": 3,
|
119
353
|
"width": 12,
|
120
354
|
"y": <%= current_y %>,
|
121
355
|
"x": 6,
|
122
356
|
"type": "metric",
|
123
357
|
"properties": {
|
124
358
|
"metrics": [
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
359
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "stat": "p90", "color": "#d62728" } ],
|
360
|
+
[ "...", { "stat": "p80", "color": "#2ca02c" } ],
|
361
|
+
[ "...", { "stat": "p70", "color": "#ff7f0e" } ],
|
362
|
+
[ "...", { "color": "#1f77b4" } ]
|
129
363
|
],
|
130
364
|
"view": "timeSeries",
|
131
365
|
"stacked": false,
|
132
366
|
"region": "us-east-1",
|
133
|
-
"stat": "
|
367
|
+
"stat": "p60",
|
134
368
|
"period": 60,
|
135
|
-
"title": "<%= worker_name %> Duration Percentiles"
|
369
|
+
"title": "<%= worker_name %> Duration Percentiles",
|
370
|
+
"legend": {
|
371
|
+
"position": "right"
|
372
|
+
}
|
136
373
|
}
|
137
374
|
},
|
138
|
-
{ <% "
|
375
|
+
{ <% "Minimum By Worker" %>
|
139
376
|
"height": 3,
|
140
|
-
"width":
|
377
|
+
"width": 3,
|
141
378
|
"y": <%= current_y %>,
|
142
379
|
"x": 18,
|
143
380
|
"type": "metric",
|
@@ -148,29 +385,36 @@ Resources:
|
|
148
385
|
"view": "timeSeries",
|
149
386
|
"stacked": false,
|
150
387
|
"region": "us-east-1",
|
151
|
-
"stat": "
|
388
|
+
"stat": "Minimum",
|
152
389
|
"period": 60,
|
153
|
-
"title": "<%= worker_name %>
|
390
|
+
"title": "<%= worker_name %> Min",
|
391
|
+
"legend": {
|
392
|
+
"position": "hidden"
|
393
|
+
}
|
154
394
|
}
|
155
395
|
},
|
156
|
-
{ <% "
|
396
|
+
{ <% "Maximum By Worker" %>
|
157
397
|
"height": 3,
|
158
|
-
"width":
|
398
|
+
"width": 3,
|
159
399
|
"y": <%= current_y %>,
|
160
|
-
"x":
|
400
|
+
"x": 21,
|
161
401
|
"type": "metric",
|
162
402
|
"properties": {
|
163
403
|
"metrics": [
|
164
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]
|
404
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
|
165
405
|
],
|
166
406
|
"view": "timeSeries",
|
167
407
|
"stacked": false,
|
168
408
|
"region": "us-east-1",
|
169
|
-
"stat": "
|
409
|
+
"stat": "Maximum",
|
170
410
|
"period": 60,
|
171
|
-
"title": "<%= worker_name %>
|
411
|
+
"title": "<%= worker_name %> Max",
|
412
|
+
"legend": {
|
413
|
+
"position": "hidden"
|
414
|
+
}
|
172
415
|
}
|
173
416
|
},
|
417
|
+
|
174
418
|
<% current_y += 6 %>
|
175
419
|
<%- end -%>
|
176
420
|
|
data/lib/funktor/version.rb
CHANGED