funktor 0.7.11 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,174 @@ 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
|
+
<%- app_worker_names.each do |worker_name| -%>
|
33
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == app_worker_names.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
|
+
<%- app_worker_names.each do |worker_name| -%>
|
53
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == app_worker_names.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
|
+
<%- app_worker_names.each do |worker_name| -%>
|
75
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == app_worker_names.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
|
+
<%- app_worker_names.each do |worker_name| -%>
|
95
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == app_worker_names.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
|
+
|
24
192
|
{ <% "Jobs/Minute Section" %>
|
25
193
|
"height": 1,
|
26
194
|
"width": 24,
|
@@ -158,7 +326,7 @@ Resources:
|
|
158
326
|
<% current_y += 1 %>
|
159
327
|
|
160
328
|
{ <% "Worker Jobs per minute" %>
|
161
|
-
"height":
|
329
|
+
"height": 3,
|
162
330
|
"width": 3,
|
163
331
|
"y": <%= current_y %>,
|
164
332
|
"x": 0,
|
@@ -171,12 +339,12 @@ Resources:
|
|
171
339
|
"region": "us-east-1",
|
172
340
|
"stat": "Sum",
|
173
341
|
"period": 60,
|
174
|
-
"sparkline":
|
342
|
+
"sparkline": true,
|
175
343
|
"title": "<%= worker_name %> Processed/Min"
|
176
344
|
}
|
177
345
|
},
|
178
346
|
{ <% "Worker Jobs per minute" %>
|
179
|
-
"height":
|
347
|
+
"height": 3,
|
180
348
|
"width": 3,
|
181
349
|
"y": <%= current_y %>,
|
182
350
|
"x": 3,
|
@@ -189,12 +357,12 @@ Resources:
|
|
189
357
|
"region": "us-east-1",
|
190
358
|
"stat": "Sum",
|
191
359
|
"period": 60,
|
192
|
-
"sparkline":
|
360
|
+
"sparkline": true,
|
193
361
|
"title": "<%= worker_name %> Failed/Min"
|
194
362
|
}
|
195
363
|
},
|
196
364
|
{ <% "Worker Duration Percentiles" %>
|
197
|
-
"height":
|
365
|
+
"height": 3,
|
198
366
|
"width": 3,
|
199
367
|
"y": <%= current_y %>,
|
200
368
|
"x": 6,
|
@@ -207,12 +375,12 @@ Resources:
|
|
207
375
|
"region": "us-east-1",
|
208
376
|
"stat": "p60",
|
209
377
|
"period": 60,
|
210
|
-
"sparkline":
|
378
|
+
"sparkline": true,
|
211
379
|
"title": "<%= worker_name %> p60"
|
212
380
|
}
|
213
381
|
},
|
214
382
|
{ <% "Worker Duration Percentiles" %>
|
215
|
-
"height":
|
383
|
+
"height": 3,
|
216
384
|
"width": 3,
|
217
385
|
"y": <%= current_y %>,
|
218
386
|
"x": 9,
|
@@ -225,12 +393,12 @@ Resources:
|
|
225
393
|
"region": "us-east-1",
|
226
394
|
"stat": "p70",
|
227
395
|
"period": 60,
|
228
|
-
"sparkline":
|
396
|
+
"sparkline": true,
|
229
397
|
"title": "<%= worker_name %> p70"
|
230
398
|
}
|
231
399
|
},
|
232
400
|
{ <% "Worker Duration Percentiles" %>
|
233
|
-
"height":
|
401
|
+
"height": 3,
|
234
402
|
"width": 3,
|
235
403
|
"y": <%= current_y %>,
|
236
404
|
"x": 12,
|
@@ -243,12 +411,12 @@ Resources:
|
|
243
411
|
"region": "us-east-1",
|
244
412
|
"stat": "p80",
|
245
413
|
"period": 60,
|
246
|
-
"sparkline":
|
414
|
+
"sparkline": true,
|
247
415
|
"title": "<%= worker_name %> p80"
|
248
416
|
}
|
249
417
|
},
|
250
418
|
{ <% "Worker Duration Percentiles" %>
|
251
|
-
"height":
|
419
|
+
"height": 3,
|
252
420
|
"width": 3,
|
253
421
|
"y": <%= current_y %>,
|
254
422
|
"x": 15,
|
@@ -261,12 +429,12 @@ Resources:
|
|
261
429
|
"region": "us-east-1",
|
262
430
|
"stat": "p90",
|
263
431
|
"period": 60,
|
264
|
-
"sparkline":
|
432
|
+
"sparkline": true,
|
265
433
|
"title": "<%= worker_name %> p90"
|
266
434
|
}
|
267
435
|
},
|
268
436
|
{ <% "Worker Min/Max" %>
|
269
|
-
"height":
|
437
|
+
"height": 3,
|
270
438
|
"width": 3,
|
271
439
|
"y": <%= current_y %>,
|
272
440
|
"x": 18,
|
@@ -279,12 +447,12 @@ Resources:
|
|
279
447
|
"region": "us-east-1",
|
280
448
|
"stat": "Minimum",
|
281
449
|
"period": 60,
|
282
|
-
"sparkline":
|
450
|
+
"sparkline": true,
|
283
451
|
"title": "<%= worker_name %> Min"
|
284
452
|
}
|
285
453
|
},
|
286
454
|
{ <% "Worker Min/Max" %>
|
287
|
-
"height":
|
455
|
+
"height": 3,
|
288
456
|
"width": 3,
|
289
457
|
"y": <%= current_y %>,
|
290
458
|
"x": 21,
|
@@ -297,7 +465,7 @@ Resources:
|
|
297
465
|
"region": "us-east-1",
|
298
466
|
"stat": "Maximum",
|
299
467
|
"period": 60,
|
300
|
-
"sparkline":
|
468
|
+
"sparkline": true,
|
301
469
|
"title": "<%= worker_name %> Max"
|
302
470
|
}
|
303
471
|
},
|
@@ -414,54 +582,54 @@ Resources:
|
|
414
582
|
}
|
415
583
|
}
|
416
584
|
},
|
417
|
-
|
418
585
|
<% current_y += 6 %>
|
419
586
|
<%- end -%>
|
420
587
|
|
421
|
-
|
422
|
-
{ <% "Job Duration By Worker" %>
|
588
|
+
{ <% "Processed/Failed Jobs By Worker" %>
|
423
589
|
"height": 6,
|
424
590
|
"width": 12,
|
425
591
|
"y": <%= current_y %>,
|
426
|
-
"x":
|
592
|
+
"x": 0,
|
427
593
|
"type": "metric",
|
428
594
|
"properties": {
|
429
595
|
"metrics": [
|
430
596
|
<%- app_worker_names.each do |worker_name| -%>
|
431
|
-
[ "${self:custom.funktor.DashboardNamespace}", "
|
432
|
-
[ "
|
597
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ],
|
598
|
+
[ ".", "failed", ".", "." ]<%= worker_name == app_worker_names.last ? "" : "," %>
|
433
599
|
<%- end -%>
|
434
600
|
],
|
435
601
|
"view": "timeSeries",
|
436
602
|
"stacked": false,
|
437
603
|
"region": "us-east-1",
|
438
|
-
"
|
604
|
+
"title": "Process/Failed Jobs By Worker",
|
439
605
|
"period": 60,
|
440
|
-
"
|
441
|
-
|
606
|
+
"stat": "Sum"
|
607
|
+
}
|
442
608
|
},
|
443
609
|
|
444
|
-
|
610
|
+
{ <% "Job Duration By Worker" %>
|
445
611
|
"height": 6,
|
446
612
|
"width": 12,
|
447
613
|
"y": <%= current_y %>,
|
448
|
-
"x":
|
614
|
+
"x": 12,
|
449
615
|
"type": "metric",
|
450
616
|
"properties": {
|
451
617
|
"metrics": [
|
452
618
|
<%- app_worker_names.each do |worker_name| -%>
|
453
|
-
[ "${self:custom.funktor.DashboardNamespace}", "
|
454
|
-
[ "
|
619
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ],
|
620
|
+
[ "...", { "stat": "p99" } ]<%= worker_name == app_worker_names.last ? "" : "," %>
|
455
621
|
<%- end -%>
|
456
622
|
],
|
457
623
|
"view": "timeSeries",
|
458
624
|
"stacked": false,
|
459
625
|
"region": "us-east-1",
|
460
|
-
"
|
626
|
+
"stat": "Average",
|
461
627
|
"period": 60,
|
462
|
-
"
|
463
|
-
|
628
|
+
"title": "Job Duration by Worker"
|
629
|
+
}
|
464
630
|
},
|
631
|
+
|
632
|
+
|
465
633
|
<% current_y += 6 %>
|
466
634
|
|
467
635
|
{ <% "Job Duration By Queue" %>
|
@@ -558,17 +726,17 @@ Resources:
|
|
558
726
|
"type": "metric",
|
559
727
|
"properties": {
|
560
728
|
"metrics": [
|
561
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", "Resource", "${self:custom.funktor.IncomingJobHandlerName}", { "label": "
|
562
|
-
[ "...", { "label": "
|
563
|
-
[ "...", { "label": "
|
564
|
-
[ "...", { "label": "
|
729
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", "Resource", "${self:custom.funktor.IncomingJobHandlerName}", { "label": "p60" } ],
|
730
|
+
[ "...", { "label": "p70", "stat": "p70" } ],
|
731
|
+
[ "...", { "label": "p80", "stat": "p80" } ],
|
732
|
+
[ "...", { "label": "p90", "stat": "p90" } ]
|
565
733
|
],
|
566
734
|
"view": "singleValue",
|
567
735
|
"region": "us-east-1",
|
568
|
-
"stat": "
|
736
|
+
"stat": "p60",
|
569
737
|
"period": 60,
|
570
738
|
"sparkline": true,
|
571
|
-
"title": "Handler Duration"
|
739
|
+
"title": "Handler Duration Percentiles"
|
572
740
|
}
|
573
741
|
},
|
574
742
|
|
@@ -609,9 +777,10 @@ Resources:
|
|
609
777
|
"properties": {
|
610
778
|
"period": 60,
|
611
779
|
"metrics": [
|
612
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", { "stat": "
|
613
|
-
[ "...", { "stat": "
|
614
|
-
[ "...", { "stat": "
|
780
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.IncomingJobHandlerName}", { "stat": "p60" } ],
|
781
|
+
[ "...", { "stat": "p70" } ],
|
782
|
+
[ "...", { "stat": "p80" } ],
|
783
|
+
[ "...", { "stat": "p90" } ]
|
615
784
|
],
|
616
785
|
"region": "us-east-1",
|
617
786
|
"title": "Incoming Job Handler Duration in Milliseconds",
|
@@ -709,14 +878,14 @@ Resources:
|
|
709
878
|
"metrics": [
|
710
879
|
[ "AWS/Lambda", "Duration", "FunctionName",
|
711
880
|
"${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", "Resource",
|
712
|
-
"${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "label": "
|
713
|
-
[ "...", { "label": "
|
714
|
-
[ "...", { "label": "
|
715
|
-
[ "...", { "label": "
|
881
|
+
"${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "label": "p60" } ],
|
882
|
+
[ "...", { "label": "p70", "stat": "p70" } ],
|
883
|
+
[ "...", { "label": "p80", "stat": "p80" } ],
|
884
|
+
[ "...", { "label": "p90", "stat": "p90" } ]
|
716
885
|
],
|
717
886
|
"view": "singleValue",
|
718
887
|
"region": "us-east-1",
|
719
|
-
"stat": "
|
888
|
+
"stat": "p60",
|
720
889
|
"period": 60,
|
721
890
|
"sparkline": true,
|
722
891
|
"title": "Handler Duration"
|
@@ -761,9 +930,10 @@ Resources:
|
|
761
930
|
"properties": {
|
762
931
|
"period": 60,
|
763
932
|
"metrics": [
|
764
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "stat": "
|
765
|
-
[ "...", { "stat": "
|
766
|
-
[ "...", { "stat": "
|
933
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}", { "stat": "p60" } ],
|
934
|
+
[ "...", { "stat": "p70" } ],
|
935
|
+
[ "...", { "stat": "p80" } ],
|
936
|
+
[ "...", { "stat": "p90" } ]
|
767
937
|
],
|
768
938
|
"region": "us-east-1",
|
769
939
|
"title": "<%= queue_name.camelize %> Queue Handler Duration in Milliseconds",
|
@@ -859,14 +1029,14 @@ Resources:
|
|
859
1029
|
"type": "metric",
|
860
1030
|
"properties": {
|
861
1031
|
"metrics": [
|
862
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", "Resource", "${self:custom.funktor.JobActivatorName}", { "label": "
|
863
|
-
[ "...", { "label": "
|
864
|
-
[ "...", { "label": "
|
865
|
-
[ "...", { "label": "
|
1032
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", "Resource", "${self:custom.funktor.JobActivatorName}", { "label": "p60" } ],
|
1033
|
+
[ "...", { "label": "p70", "stat": "p70" } ],
|
1034
|
+
[ "...", { "label": "p80", "stat": "p80" } ],
|
1035
|
+
[ "...", { "label": "p90", "stat": "p90" } ]
|
866
1036
|
],
|
867
1037
|
"view": "singleValue",
|
868
1038
|
"region": "us-east-1",
|
869
|
-
"stat": "
|
1039
|
+
"stat": "p60",
|
870
1040
|
"period": 60,
|
871
1041
|
"sparkline": true,
|
872
1042
|
"title": "Handler Duration"
|
@@ -910,9 +1080,10 @@ Resources:
|
|
910
1080
|
"properties": {
|
911
1081
|
"period": 60,
|
912
1082
|
"metrics": [
|
913
|
-
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", { "stat": "
|
914
|
-
[ "...", { "stat": "
|
915
|
-
[ "...", { "stat": "
|
1083
|
+
[ "AWS/Lambda", "Duration", "FunctionName", "${self:custom.funktor.JobActivatorName}", { "stat": "p60" } ],
|
1084
|
+
[ "...", { "stat": "p70" } ],
|
1085
|
+
[ "...", { "stat": "p80" } ],
|
1086
|
+
[ "...", { "stat": "p90" } ]
|
916
1087
|
],
|
917
1088
|
"region": "us-east-1",
|
918
1089
|
"title": "Delayed Job Scheduler Duration",
|
data/lib/funktor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: funktor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|