funktor 0.7.11 → 0.7.14
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 +954 -301
- data/funktor-testapp/funktor_init.yml +6 -0
- data/lib/funktor/cli/init.rb +4 -0
- data/lib/funktor/cli/templates/funktor_config/resources/cloudwatch_dashboard.yml +425 -66
- data/lib/funktor/cli/templates/funktor_init.yml.tt +4 -0
- data/lib/funktor/version.rb +1 -1
- metadata +2 -2
@@ -21,6 +21,362 @@ Resources:
|
|
21
21
|
},
|
22
22
|
<% current_y += 3 %>
|
23
23
|
|
24
|
+
{ <% "Processed Jobs By Worker" %>
|
25
|
+
"height": 4,
|
26
|
+
"width": 12,
|
27
|
+
"y": <%= current_y %>,
|
28
|
+
"x": 0,
|
29
|
+
"type": "metric",
|
30
|
+
"properties": {
|
31
|
+
"metrics": [
|
32
|
+
<%- primary_workers.each do |worker_name| -%>
|
33
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
34
|
+
<%- end -%>
|
35
|
+
],
|
36
|
+
"view": "timeSeries",
|
37
|
+
"stacked": false,
|
38
|
+
"region": "us-east-1",
|
39
|
+
"title": "Processed Jobs By Worker",
|
40
|
+
"period": 60,
|
41
|
+
"stat": "Sum"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
{ <% "p90 By Worker" %>
|
45
|
+
"height": 4,
|
46
|
+
"width": 12,
|
47
|
+
"y": <%= current_y %>,
|
48
|
+
"x": 12,
|
49
|
+
"type": "metric",
|
50
|
+
"properties": {
|
51
|
+
"metrics": [
|
52
|
+
<%- primary_workers.each do |worker_name| -%>
|
53
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
54
|
+
<%- end -%>
|
55
|
+
],
|
56
|
+
"view": "timeSeries",
|
57
|
+
"stacked": false,
|
58
|
+
"region": "us-east-1",
|
59
|
+
"stat": "p90",
|
60
|
+
"period": 60,
|
61
|
+
"title": "p90 by Worker"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
<% current_y += 3 %>
|
65
|
+
|
66
|
+
{ <% "Failed Jobs By Worker" %>
|
67
|
+
"height": 4,
|
68
|
+
"width": 12,
|
69
|
+
"y": <%= current_y %>,
|
70
|
+
"x": 0,
|
71
|
+
"type": "metric",
|
72
|
+
"properties": {
|
73
|
+
"metrics": [
|
74
|
+
<%- primary_workers.each do |worker_name| -%>
|
75
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
76
|
+
<%- end -%>
|
77
|
+
],
|
78
|
+
"view": "timeSeries",
|
79
|
+
"stacked": false,
|
80
|
+
"region": "us-east-1",
|
81
|
+
"title": "Failed Jobs By Worker",
|
82
|
+
"period": 60,
|
83
|
+
"stat": "Sum"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
{ <% "p50 By Worker" %>
|
87
|
+
"height": 4,
|
88
|
+
"width": 12,
|
89
|
+
"y": <%= current_y %>,
|
90
|
+
"x": 12,
|
91
|
+
"type": "metric",
|
92
|
+
"properties": {
|
93
|
+
"metrics": [
|
94
|
+
<%- primary_workers.each do |worker_name| -%>
|
95
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
96
|
+
<%- end -%>
|
97
|
+
],
|
98
|
+
"view": "timeSeries",
|
99
|
+
"stacked": false,
|
100
|
+
"region": "us-east-1",
|
101
|
+
"stat": "p50",
|
102
|
+
"period": 60,
|
103
|
+
"title": "p50 by Worker"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
<% current_y += 3 %>
|
107
|
+
|
108
|
+
{ <% "Processed Jobs By Queue" %>
|
109
|
+
"height": 4,
|
110
|
+
"width": 12,
|
111
|
+
"y": <%= current_y %>,
|
112
|
+
"x": 0,
|
113
|
+
"type": "metric",
|
114
|
+
"properties": {
|
115
|
+
"metrics": [
|
116
|
+
<%- queue_names.each do |queue_name| -%>
|
117
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "Queue", "<%= queue_name.underscore %>" ]<%= queue_name == queue_names.last ? "" : "," %>
|
118
|
+
<%- end -%>
|
119
|
+
],
|
120
|
+
"view": "timeSeries",
|
121
|
+
"stacked": false,
|
122
|
+
"region": "us-east-1",
|
123
|
+
"title": "Processed Jobs By Queue",
|
124
|
+
"period": 60,
|
125
|
+
"stat": "Sum"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
{ <% "p90 By Queue" %>
|
129
|
+
"height": 4,
|
130
|
+
"width": 12,
|
131
|
+
"y": <%= current_y %>,
|
132
|
+
"x": 12,
|
133
|
+
"type": "metric",
|
134
|
+
"properties": {
|
135
|
+
"metrics": [
|
136
|
+
<%- queue_names.each do |queue_name| -%>
|
137
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "Queue", "<%= queue_name.underscore %>" ]<%= queue_name == queue_names.last ? "" : "," %>
|
138
|
+
<%- end -%>
|
139
|
+
],
|
140
|
+
"view": "timeSeries",
|
141
|
+
"stacked": false,
|
142
|
+
"region": "us-east-1",
|
143
|
+
"stat": "p90",
|
144
|
+
"period": 60,
|
145
|
+
"title": "p90 by Queue"
|
146
|
+
}
|
147
|
+
},
|
148
|
+
|
149
|
+
<% current_y += 3 %>
|
150
|
+
{ <% "Failed Jobs By Queue" %>
|
151
|
+
"height": 4,
|
152
|
+
"width": 12,
|
153
|
+
"y": <%= current_y %>,
|
154
|
+
"x": 0,
|
155
|
+
"type": "metric",
|
156
|
+
"properties": {
|
157
|
+
"metrics": [
|
158
|
+
<%- queue_names.each do |queue_name| -%>
|
159
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "Queue", "<%= queue_name.underscore %>" ]<%= queue_name == queue_names.last ? "" : "," %>
|
160
|
+
<%- end -%>
|
161
|
+
],
|
162
|
+
"view": "timeSeries",
|
163
|
+
"stacked": false,
|
164
|
+
"region": "us-east-1",
|
165
|
+
"title": "Failed Jobs By Queue",
|
166
|
+
"period": 60,
|
167
|
+
"stat": "Sum"
|
168
|
+
}
|
169
|
+
},
|
170
|
+
{ <% "p50 By Queue" %>
|
171
|
+
"height": 4,
|
172
|
+
"width": 12,
|
173
|
+
"y": <%= current_y %>,
|
174
|
+
"x": 12,
|
175
|
+
"type": "metric",
|
176
|
+
"properties": {
|
177
|
+
"metrics": [
|
178
|
+
<%- queue_names.each do |queue_name| -%>
|
179
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "Queue", "<%= queue_name.underscore %>" ]<%= queue_name == queue_names.last ? "" : "," %>
|
180
|
+
<%- end -%>
|
181
|
+
],
|
182
|
+
"view": "timeSeries",
|
183
|
+
"stacked": false,
|
184
|
+
"region": "us-east-1",
|
185
|
+
"stat": "p50",
|
186
|
+
"period": 60,
|
187
|
+
"title": "p50 by Queue"
|
188
|
+
}
|
189
|
+
},
|
190
|
+
<% current_y += 3 %>
|
191
|
+
|
192
|
+
{ <% "Worker Overview" %>
|
193
|
+
"height": 1,
|
194
|
+
"width": 24,
|
195
|
+
"y": <%= current_y %>,
|
196
|
+
"x": 0,
|
197
|
+
"type": "text",
|
198
|
+
"properties": {
|
199
|
+
"markdown": "\n# Worker Overviews\n"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
<% current_y += 1 %>
|
203
|
+
|
204
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
205
|
+
<%- current_y += 5 if (index > 0 && (index % 3) == 0) %>
|
206
|
+
{ <% "Worker Overview" %>
|
207
|
+
"height": 5,
|
208
|
+
"width": 8,
|
209
|
+
"y": <%= current_y %>,
|
210
|
+
"x": <%= (index % 3) * 8 %>,
|
211
|
+
"type": "metric",
|
212
|
+
"properties": {
|
213
|
+
"metrics": [
|
214
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>", { "color": "#2ca02c" } ],
|
215
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
216
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ],
|
217
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
218
|
+
],
|
219
|
+
"view": "singleValue",
|
220
|
+
"region": "us-east-1",
|
221
|
+
"stat": "Sum",
|
222
|
+
"period": 60,
|
223
|
+
"sparkline": true,
|
224
|
+
"title": "<%= worker_name %>"
|
225
|
+
}
|
226
|
+
},
|
227
|
+
<%- end -%>
|
228
|
+
<%#- current_y += 5 if (primary_workers.count - 1) % 3 != 0 %>
|
229
|
+
<%- current_y += 5 %>
|
230
|
+
|
231
|
+
{ <% "Worker Overview Redux" %>
|
232
|
+
"height": 1,
|
233
|
+
"width": 24,
|
234
|
+
"y": <%= current_y %>,
|
235
|
+
"x": 0,
|
236
|
+
"type": "text",
|
237
|
+
"properties": {
|
238
|
+
"markdown": "\n# Worker Overviews Redux\n"
|
239
|
+
}
|
240
|
+
},
|
241
|
+
<% current_y += 1 %>
|
242
|
+
|
243
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
244
|
+
<%- current_y += 9 if (index > 0 && (index % 6) == 0) %>
|
245
|
+
{ <% "Worker Overview" %>
|
246
|
+
"height": 9,
|
247
|
+
"width": 4,
|
248
|
+
"y": <%= current_y %>,
|
249
|
+
"x": <%= (index % 6) * 4 %>,
|
250
|
+
"type": "metric",
|
251
|
+
"properties": {
|
252
|
+
"metrics": [
|
253
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>", { "color": "#2ca02c" } ],
|
254
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ],
|
255
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
256
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
257
|
+
],
|
258
|
+
"view": "singleValue",
|
259
|
+
"region": "us-east-1",
|
260
|
+
"stat": "Sum",
|
261
|
+
"period": 60,
|
262
|
+
"sparkline": true,
|
263
|
+
"title": "<%= worker_name %>"
|
264
|
+
}
|
265
|
+
},
|
266
|
+
<%- end -%>
|
267
|
+
<%#- current_y += 9 if (primary_workers.count - 1) % 3 != 0 %>
|
268
|
+
<%- current_y += 9 %>
|
269
|
+
|
270
|
+
{ <% "Jobs/Minute Section" %>
|
271
|
+
"height": 1,
|
272
|
+
"width": 24,
|
273
|
+
"y": <%= current_y %>,
|
274
|
+
"x": 0,
|
275
|
+
"type": "text",
|
276
|
+
"properties": {
|
277
|
+
"markdown": "\n# Jobs Per Minute By Worker\n"
|
278
|
+
}
|
279
|
+
},
|
280
|
+
<% current_y += 1 %>
|
281
|
+
|
282
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
283
|
+
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
284
|
+
{ <% "Worker Jobs per minute" %>
|
285
|
+
"height": 3,
|
286
|
+
"width": 3,
|
287
|
+
"y": <%= current_y %>,
|
288
|
+
"x": <%= (index % 8) * 3 %>,
|
289
|
+
"type": "metric",
|
290
|
+
"properties": {
|
291
|
+
"metrics": [
|
292
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]
|
293
|
+
],
|
294
|
+
"view": "singleValue",
|
295
|
+
"region": "us-east-1",
|
296
|
+
"stat": "Sum",
|
297
|
+
"period": 60,
|
298
|
+
"sparkline": true,
|
299
|
+
"title": "<%= worker_name %>"
|
300
|
+
}
|
301
|
+
},
|
302
|
+
<%- end -%>
|
303
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
304
|
+
|
305
|
+
{ <% "Failures/Minute Section" %>
|
306
|
+
"height": 1,
|
307
|
+
"width": 24,
|
308
|
+
"y": <%= current_y %>,
|
309
|
+
"x": 0,
|
310
|
+
"type": "text",
|
311
|
+
"properties": {
|
312
|
+
"markdown": "\n# Failures Per Minute By Worker\n"
|
313
|
+
}
|
314
|
+
},
|
315
|
+
<% current_y += 1 %>
|
316
|
+
|
317
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
318
|
+
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
319
|
+
{ <% "Worker Failures per minute" %>
|
320
|
+
"height": 3,
|
321
|
+
"width": 3,
|
322
|
+
"y": <%= current_y %>,
|
323
|
+
"x": <%= (index % 8) * 3 %>,
|
324
|
+
"type": "metric",
|
325
|
+
"properties": {
|
326
|
+
"metrics": [
|
327
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>" ]
|
328
|
+
],
|
329
|
+
"view": "singleValue",
|
330
|
+
"region": "us-east-1",
|
331
|
+
"stat": "Sum",
|
332
|
+
"period": 60,
|
333
|
+
"sparkline": true,
|
334
|
+
"title": "<%= worker_name %>"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
<%- end -%>
|
338
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
339
|
+
|
340
|
+
{ <% "Duration Percentiles Section" %>
|
341
|
+
"height": 1,
|
342
|
+
"width": 24,
|
343
|
+
"y": <%= current_y %>,
|
344
|
+
"x": 0,
|
345
|
+
"type": "text",
|
346
|
+
"properties": {
|
347
|
+
"markdown": "\n# Duration Percentiles By Worker\n"
|
348
|
+
}
|
349
|
+
},
|
350
|
+
<% current_y += 1 %>
|
351
|
+
|
352
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
353
|
+
<%- current_y += 5 if (index > 0 && (index % 6) == 0) %>
|
354
|
+
{ <% "p50 by worker" %>
|
355
|
+
"height": 5,
|
356
|
+
"width": 3,
|
357
|
+
"y": <%= current_y %>,
|
358
|
+
"x": <%= (index % 8) * 3 %>,
|
359
|
+
"type": "metric",
|
360
|
+
"properties": {
|
361
|
+
"metrics": [
|
362
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728", "label": "p90"} ],
|
363
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "color": "#1f77b4", "label": "p60", "stat": "p60"} ]
|
364
|
+
],
|
365
|
+
"view": "singleValue",
|
366
|
+
"region": "us-east-1",
|
367
|
+
"stat": "p90",
|
368
|
+
"period": 60,
|
369
|
+
"sparkline": true,
|
370
|
+
"title": "<%= worker_name %>"
|
371
|
+
}
|
372
|
+
},
|
373
|
+
<%- end -%>
|
374
|
+
<%- current_y += 5 if (primary_workers.count - 1) % 6 != 0 %>
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
24
380
|
{ <% "Jobs/Minute Section" %>
|
25
381
|
"height": 1,
|
26
382
|
"width": 24,
|
@@ -34,7 +390,7 @@ Resources:
|
|
34
390
|
<% current_y += 1 %>
|
35
391
|
|
36
392
|
|
37
|
-
<%-
|
393
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
38
394
|
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
39
395
|
{ <% "Processed Jobs By Worker" %>
|
40
396
|
"height": 3,
|
@@ -58,7 +414,7 @@ Resources:
|
|
58
414
|
}
|
59
415
|
},
|
60
416
|
<%- end -%>
|
61
|
-
<%- current_y += 3 if (
|
417
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
62
418
|
|
63
419
|
|
64
420
|
{ <% "Failures/Minute Section" %>
|
@@ -74,7 +430,7 @@ Resources:
|
|
74
430
|
<% current_y += 1 %>
|
75
431
|
|
76
432
|
|
77
|
-
<%-
|
433
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
78
434
|
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
79
435
|
{ <% "Failed Jobs By Worker" %>
|
80
436
|
"height": 3,
|
@@ -98,7 +454,7 @@ Resources:
|
|
98
454
|
}
|
99
455
|
},
|
100
456
|
<%- end -%>
|
101
|
-
<%- current_y += 3 if (
|
457
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
102
458
|
|
103
459
|
|
104
460
|
{ <% "Duration Percentiles Section" %>
|
@@ -114,7 +470,7 @@ Resources:
|
|
114
470
|
<% current_y += 1 %>
|
115
471
|
|
116
472
|
|
117
|
-
<%-
|
473
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
118
474
|
<%- current_y += 4 if (index > 0 && (index % 6) == 0) %>
|
119
475
|
{ <% "Job Duration By Worker" %>
|
120
476
|
"height": 4,
|
@@ -141,10 +497,10 @@ Resources:
|
|
141
497
|
}
|
142
498
|
},
|
143
499
|
<%- end -%>
|
144
|
-
<%- current_y += 3 if (
|
500
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
145
501
|
|
146
502
|
|
147
|
-
<%-
|
503
|
+
<%- primary_workers.each do |worker_name| -%>
|
148
504
|
{ <% "Worker" %>
|
149
505
|
"height": 1,
|
150
506
|
"width": 24,
|
@@ -158,7 +514,7 @@ Resources:
|
|
158
514
|
<% current_y += 1 %>
|
159
515
|
|
160
516
|
{ <% "Worker Jobs per minute" %>
|
161
|
-
"height":
|
517
|
+
"height": 3,
|
162
518
|
"width": 3,
|
163
519
|
"y": <%= current_y %>,
|
164
520
|
"x": 0,
|
@@ -171,12 +527,12 @@ Resources:
|
|
171
527
|
"region": "us-east-1",
|
172
528
|
"stat": "Sum",
|
173
529
|
"period": 60,
|
174
|
-
"sparkline":
|
530
|
+
"sparkline": true,
|
175
531
|
"title": "<%= worker_name %> Processed/Min"
|
176
532
|
}
|
177
533
|
},
|
178
534
|
{ <% "Worker Jobs per minute" %>
|
179
|
-
"height":
|
535
|
+
"height": 3,
|
180
536
|
"width": 3,
|
181
537
|
"y": <%= current_y %>,
|
182
538
|
"x": 3,
|
@@ -189,12 +545,12 @@ Resources:
|
|
189
545
|
"region": "us-east-1",
|
190
546
|
"stat": "Sum",
|
191
547
|
"period": 60,
|
192
|
-
"sparkline":
|
548
|
+
"sparkline": true,
|
193
549
|
"title": "<%= worker_name %> Failed/Min"
|
194
550
|
}
|
195
551
|
},
|
196
552
|
{ <% "Worker Duration Percentiles" %>
|
197
|
-
"height":
|
553
|
+
"height": 3,
|
198
554
|
"width": 3,
|
199
555
|
"y": <%= current_y %>,
|
200
556
|
"x": 6,
|
@@ -207,12 +563,12 @@ Resources:
|
|
207
563
|
"region": "us-east-1",
|
208
564
|
"stat": "p60",
|
209
565
|
"period": 60,
|
210
|
-
"sparkline":
|
566
|
+
"sparkline": true,
|
211
567
|
"title": "<%= worker_name %> p60"
|
212
568
|
}
|
213
569
|
},
|
214
570
|
{ <% "Worker Duration Percentiles" %>
|
215
|
-
"height":
|
571
|
+
"height": 3,
|
216
572
|
"width": 3,
|
217
573
|
"y": <%= current_y %>,
|
218
574
|
"x": 9,
|
@@ -225,12 +581,12 @@ Resources:
|
|
225
581
|
"region": "us-east-1",
|
226
582
|
"stat": "p70",
|
227
583
|
"period": 60,
|
228
|
-
"sparkline":
|
584
|
+
"sparkline": true,
|
229
585
|
"title": "<%= worker_name %> p70"
|
230
586
|
}
|
231
587
|
},
|
232
588
|
{ <% "Worker Duration Percentiles" %>
|
233
|
-
"height":
|
589
|
+
"height": 3,
|
234
590
|
"width": 3,
|
235
591
|
"y": <%= current_y %>,
|
236
592
|
"x": 12,
|
@@ -243,12 +599,12 @@ Resources:
|
|
243
599
|
"region": "us-east-1",
|
244
600
|
"stat": "p80",
|
245
601
|
"period": 60,
|
246
|
-
"sparkline":
|
602
|
+
"sparkline": true,
|
247
603
|
"title": "<%= worker_name %> p80"
|
248
604
|
}
|
249
605
|
},
|
250
606
|
{ <% "Worker Duration Percentiles" %>
|
251
|
-
"height":
|
607
|
+
"height": 3,
|
252
608
|
"width": 3,
|
253
609
|
"y": <%= current_y %>,
|
254
610
|
"x": 15,
|
@@ -261,12 +617,12 @@ Resources:
|
|
261
617
|
"region": "us-east-1",
|
262
618
|
"stat": "p90",
|
263
619
|
"period": 60,
|
264
|
-
"sparkline":
|
620
|
+
"sparkline": true,
|
265
621
|
"title": "<%= worker_name %> p90"
|
266
622
|
}
|
267
623
|
},
|
268
624
|
{ <% "Worker Min/Max" %>
|
269
|
-
"height":
|
625
|
+
"height": 3,
|
270
626
|
"width": 3,
|
271
627
|
"y": <%= current_y %>,
|
272
628
|
"x": 18,
|
@@ -279,12 +635,12 @@ Resources:
|
|
279
635
|
"region": "us-east-1",
|
280
636
|
"stat": "Minimum",
|
281
637
|
"period": 60,
|
282
|
-
"sparkline":
|
638
|
+
"sparkline": true,
|
283
639
|
"title": "<%= worker_name %> Min"
|
284
640
|
}
|
285
641
|
},
|
286
642
|
{ <% "Worker Min/Max" %>
|
287
|
-
"height":
|
643
|
+
"height": 3,
|
288
644
|
"width": 3,
|
289
645
|
"y": <%= current_y %>,
|
290
646
|
"x": 21,
|
@@ -297,7 +653,7 @@ Resources:
|
|
297
653
|
"region": "us-east-1",
|
298
654
|
"stat": "Maximum",
|
299
655
|
"period": 60,
|
300
|
-
"sparkline":
|
656
|
+
"sparkline": true,
|
301
657
|
"title": "<%= worker_name %> Max"
|
302
658
|
}
|
303
659
|
},
|
@@ -414,54 +770,54 @@ Resources:
|
|
414
770
|
}
|
415
771
|
}
|
416
772
|
},
|
417
|
-
|
418
773
|
<% current_y += 6 %>
|
419
774
|
<%- end -%>
|
420
775
|
|
421
|
-
|
422
|
-
{ <% "Job Duration By Worker" %>
|
776
|
+
{ <% "Processed/Failed Jobs By Worker" %>
|
423
777
|
"height": 6,
|
424
778
|
"width": 12,
|
425
779
|
"y": <%= current_y %>,
|
426
|
-
"x":
|
780
|
+
"x": 0,
|
427
781
|
"type": "metric",
|
428
782
|
"properties": {
|
429
783
|
"metrics": [
|
430
|
-
<%-
|
431
|
-
[ "${self:custom.funktor.DashboardNamespace}", "
|
432
|
-
[ "
|
784
|
+
<%- primary_workers.each do |worker_name| -%>
|
785
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ],
|
786
|
+
[ ".", "failed", ".", "." ]<%= worker_name == primary_workers.last ? "" : "," %>
|
433
787
|
<%- end -%>
|
434
788
|
],
|
435
789
|
"view": "timeSeries",
|
436
790
|
"stacked": false,
|
437
791
|
"region": "us-east-1",
|
438
|
-
"
|
792
|
+
"title": "Process/Failed Jobs By Worker",
|
439
793
|
"period": 60,
|
440
|
-
"
|
441
|
-
|
794
|
+
"stat": "Sum"
|
795
|
+
}
|
442
796
|
},
|
443
797
|
|
444
|
-
|
798
|
+
{ <% "Job Duration By Worker" %>
|
445
799
|
"height": 6,
|
446
800
|
"width": 12,
|
447
801
|
"y": <%= current_y %>,
|
448
|
-
"x":
|
802
|
+
"x": 12,
|
449
803
|
"type": "metric",
|
450
804
|
"properties": {
|
451
805
|
"metrics": [
|
452
|
-
<%-
|
453
|
-
[ "${self:custom.funktor.DashboardNamespace}", "
|
454
|
-
[ "
|
806
|
+
<%- primary_workers.each do |worker_name| -%>
|
807
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ],
|
808
|
+
[ "...", { "stat": "p99" } ]<%= worker_name == primary_workers.last ? "" : "," %>
|
455
809
|
<%- end -%>
|
456
810
|
],
|
457
811
|
"view": "timeSeries",
|
458
812
|
"stacked": false,
|
459
813
|
"region": "us-east-1",
|
460
|
-
"
|
814
|
+
"stat": "Average",
|
461
815
|
"period": 60,
|
462
|
-
"
|
463
|
-
|
816
|
+
"title": "Job Duration by Worker"
|
817
|
+
}
|
464
818
|
},
|
819
|
+
|
820
|
+
|
465
821
|
<% current_y += 6 %>
|
466
822
|
|
467
823
|
{ <% "Job Duration By Queue" %>
|
@@ -558,17 +914,17 @@ Resources:
|
|
558
914
|
"type": "metric",
|
559
915
|
"properties": {
|
560
916
|
"metrics": [
|
561
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", "Resource", "${self:custom.funktor.IncomingJobHandlerName}", { "label": "
|
562
|
-
[ "...", { "label": "
|
563
|
-
[ "...", { "label": "
|
564
|
-
[ "...", { "label": "
|
917
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", "Resource", "${self:custom.funktor.IncomingJobHandlerName}", { "label": "p60" } ],
|
918
|
+
[ "...", { "label": "p70", "stat": "p70" } ],
|
919
|
+
[ "...", { "label": "p80", "stat": "p80" } ],
|
920
|
+
[ "...", { "label": "p90", "stat": "p90" } ]
|
565
921
|
],
|
566
922
|
"view": "singleValue",
|
567
923
|
"region": "us-east-1",
|
568
|
-
"stat": "
|
924
|
+
"stat": "p60",
|
569
925
|
"period": 60,
|
570
926
|
"sparkline": true,
|
571
|
-
"title": "Handler Duration"
|
927
|
+
"title": "Handler Duration Percentiles"
|
572
928
|
}
|
573
929
|
},
|
574
930
|
|
@@ -609,9 +965,10 @@ Resources:
|
|
609
965
|
"properties": {
|
610
966
|
"period": 60,
|
611
967
|
"metrics": [
|
612
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", { "stat": "
|
613
|
-
[ "...", { "stat": "
|
614
|
-
[ "...", { "stat": "
|
968
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", { "stat": "p60" } ],
|
969
|
+
[ "...", { "stat": "p70" } ],
|
970
|
+
[ "...", { "stat": "p80" } ],
|
971
|
+
[ "...", { "stat": "p90" } ]
|
615
972
|
],
|
616
973
|
"region": "us-east-1",
|
617
974
|
"title": "Incoming Job Handler Duration in Milliseconds",
|
@@ -709,14 +1066,14 @@ Resources:
|
|
709
1066
|
"metrics": [
|
710
1067
|
[ "AWS/Lambda", "Duration", "FunctionName",
|
711
1068
|
"${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", "Resource",
|
712
|
-
"${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "label": "
|
713
|
-
[ "...", { "label": "
|
714
|
-
[ "...", { "label": "
|
715
|
-
[ "...", { "label": "
|
1069
|
+
"${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "label": "p60" } ],
|
1070
|
+
[ "...", { "label": "p70", "stat": "p70" } ],
|
1071
|
+
[ "...", { "label": "p80", "stat": "p80" } ],
|
1072
|
+
[ "...", { "label": "p90", "stat": "p90" } ]
|
716
1073
|
],
|
717
1074
|
"view": "singleValue",
|
718
1075
|
"region": "us-east-1",
|
719
|
-
"stat": "
|
1076
|
+
"stat": "p60",
|
720
1077
|
"period": 60,
|
721
1078
|
"sparkline": true,
|
722
1079
|
"title": "Handler Duration"
|
@@ -761,9 +1118,10 @@ Resources:
|
|
761
1118
|
"properties": {
|
762
1119
|
"period": 60,
|
763
1120
|
"metrics": [
|
764
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "stat": "
|
765
|
-
[ "...", { "stat": "
|
766
|
-
[ "...", { "stat": "
|
1121
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "stat": "p60" } ],
|
1122
|
+
[ "...", { "stat": "p70" } ],
|
1123
|
+
[ "...", { "stat": "p80" } ],
|
1124
|
+
[ "...", { "stat": "p90" } ]
|
767
1125
|
],
|
768
1126
|
"region": "us-east-1",
|
769
1127
|
"title": "<%= queue_name.camelize %> Queue Handler Duration in Milliseconds",
|
@@ -859,14 +1217,14 @@ Resources:
|
|
859
1217
|
"type": "metric",
|
860
1218
|
"properties": {
|
861
1219
|
"metrics": [
|
862
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", "Resource", "${self:custom.funktor.JobActivatorName}", { "label": "
|
863
|
-
[ "...", { "label": "
|
864
|
-
[ "...", { "label": "
|
865
|
-
[ "...", { "label": "
|
1220
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", "Resource", "${self:custom.funktor.JobActivatorName}", { "label": "p60" } ],
|
1221
|
+
[ "...", { "label": "p70", "stat": "p70" } ],
|
1222
|
+
[ "...", { "label": "p80", "stat": "p80" } ],
|
1223
|
+
[ "...", { "label": "p90", "stat": "p90" } ]
|
866
1224
|
],
|
867
1225
|
"view": "singleValue",
|
868
1226
|
"region": "us-east-1",
|
869
|
-
"stat": "
|
1227
|
+
"stat": "p60",
|
870
1228
|
"period": 60,
|
871
1229
|
"sparkline": true,
|
872
1230
|
"title": "Handler Duration"
|
@@ -910,9 +1268,10 @@ Resources:
|
|
910
1268
|
"properties": {
|
911
1269
|
"period": 60,
|
912
1270
|
"metrics": [
|
913
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", { "stat": "
|
914
|
-
[ "...", { "stat": "
|
915
|
-
[ "...", { "stat": "
|
1271
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", { "stat": "p60" } ],
|
1272
|
+
[ "...", { "stat": "p70" } ],
|
1273
|
+
[ "...", { "stat": "p80" } ],
|
1274
|
+
[ "...", { "stat": "p90" } ]
|
916
1275
|
],
|
917
1276
|
"region": "us-east-1",
|
918
1277
|
"title": "Delayed Job Scheduler Duration",
|