funktor 0.7.17 → 0.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/funktor-testapp/funktor_config/resources/cloudwatch_dashboard.yml +228 -103
- data/lib/funktor/cli/templates/funktor_config/resources/cloudwatch_dashboard.yml +70 -10
- data/lib/funktor/counter.rb +1 -1
- data/lib/funktor/job.rb +5 -1
- data/lib/funktor/middleware/metrics.rb +1 -1
- data/lib/funktor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03120584ac51225806cc8f79c405b7cb2d60cd4f61a28cbce5868558ac25891c'
|
4
|
+
data.tar.gz: fac14c67398dd40a61f06a9f13032b6739b2f5b694032585d9ec46be558fefe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4edd388e3bde760b092353fcdbac9ea5a6096418c1297cd619ac0653b0196ca921592e32abc53951ad82e211b7fcc690343645018b4fc32b6b2a5c8377bc9252
|
7
|
+
data.tar.gz: 732591adcd1b4a257e7f381812fd92f4200a0756b91d6380117f05271d439af9c9fa7eadc07355f0b1dd6d993e2a7c85eed58d8369c193f61109b0d0ac03dfb5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
funktor (0.7.
|
4
|
+
funktor (0.7.20)
|
5
5
|
activesupport
|
6
6
|
aws-sdk-dynamodb (~> 1.62)
|
7
7
|
aws-sdk-sqs (~> 1.37)
|
@@ -22,12 +22,12 @@ GEM
|
|
22
22
|
addressable (2.8.0)
|
23
23
|
public_suffix (>= 2.0.2, < 5.0)
|
24
24
|
aws-eventstream (1.2.0)
|
25
|
-
aws-partitions (1.
|
26
|
-
aws-sdk-core (3.131.
|
25
|
+
aws-partitions (1.595.0)
|
26
|
+
aws-sdk-core (3.131.1)
|
27
27
|
aws-eventstream (~> 1, >= 1.0.2)
|
28
28
|
aws-partitions (~> 1, >= 1.525.0)
|
29
29
|
aws-sigv4 (~> 1.1)
|
30
|
-
jmespath (~> 1.
|
30
|
+
jmespath (~> 1, >= 1.6.1)
|
31
31
|
aws-sdk-dynamodb (1.74.0)
|
32
32
|
aws-sdk-core (~> 3, >= 3.127.0)
|
33
33
|
aws-sigv4 (~> 1.1)
|
@@ -35,7 +35,7 @@ Resources:
|
|
35
35
|
|
36
36
|
|
37
37
|
{
|
38
|
-
"height":
|
38
|
+
"height": 7,
|
39
39
|
"width": 4,
|
40
40
|
"y": 4,
|
41
41
|
"x": 0,
|
@@ -43,7 +43,6 @@ Resources:
|
|
43
43
|
"properties": {
|
44
44
|
"metrics": [
|
45
45
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "HelloWorker", { "color": "#2ca02c" } ],
|
46
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "HelloWorker", { "color": "#d62728" } ],
|
47
46
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
48
47
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
49
48
|
],
|
@@ -55,9 +54,27 @@ Resources:
|
|
55
54
|
"title": "HelloWorker"
|
56
55
|
}
|
57
56
|
},
|
57
|
+
{
|
58
|
+
"height": 3,
|
59
|
+
"width": 4,
|
60
|
+
"y": 11,
|
61
|
+
"x": 0,
|
62
|
+
"type": "metric",
|
63
|
+
"properties": {
|
64
|
+
"metrics": [
|
65
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "HelloWorker", { "color": "#d62728" } ]
|
66
|
+
],
|
67
|
+
"view": "singleValue",
|
68
|
+
"region": "us-east-1",
|
69
|
+
"stat": "Sum",
|
70
|
+
"period": 60,
|
71
|
+
"sparkline": true,
|
72
|
+
"title": "HelloWorker"
|
73
|
+
}
|
74
|
+
},
|
58
75
|
|
59
76
|
{
|
60
|
-
"height":
|
77
|
+
"height": 7,
|
61
78
|
"width": 4,
|
62
79
|
"y": 4,
|
63
80
|
"x": 4,
|
@@ -65,7 +82,6 @@ Resources:
|
|
65
82
|
"properties": {
|
66
83
|
"metrics": [
|
67
84
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker", { "color": "#2ca02c" } ],
|
68
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ],
|
69
85
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
70
86
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
71
87
|
],
|
@@ -77,9 +93,27 @@ Resources:
|
|
77
93
|
"title": "AuditWorker"
|
78
94
|
}
|
79
95
|
},
|
96
|
+
{
|
97
|
+
"height": 3,
|
98
|
+
"width": 4,
|
99
|
+
"y": 11,
|
100
|
+
"x": 4,
|
101
|
+
"type": "metric",
|
102
|
+
"properties": {
|
103
|
+
"metrics": [
|
104
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ]
|
105
|
+
],
|
106
|
+
"view": "singleValue",
|
107
|
+
"region": "us-east-1",
|
108
|
+
"stat": "Sum",
|
109
|
+
"period": 60,
|
110
|
+
"sparkline": true,
|
111
|
+
"title": "AuditWorker"
|
112
|
+
}
|
113
|
+
},
|
80
114
|
|
81
115
|
{
|
82
|
-
"height":
|
116
|
+
"height": 7,
|
83
117
|
"width": 4,
|
84
118
|
"y": 4,
|
85
119
|
"x": 8,
|
@@ -87,7 +121,6 @@ Resources:
|
|
87
121
|
"properties": {
|
88
122
|
"metrics": [
|
89
123
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker", { "color": "#2ca02c" } ],
|
90
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker", { "color": "#d62728" } ],
|
91
124
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
92
125
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
93
126
|
],
|
@@ -99,9 +132,27 @@ Resources:
|
|
99
132
|
"title": "GreetingsWorker"
|
100
133
|
}
|
101
134
|
},
|
135
|
+
{
|
136
|
+
"height": 3,
|
137
|
+
"width": 4,
|
138
|
+
"y": 11,
|
139
|
+
"x": 8,
|
140
|
+
"type": "metric",
|
141
|
+
"properties": {
|
142
|
+
"metrics": [
|
143
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker", { "color": "#d62728" } ]
|
144
|
+
],
|
145
|
+
"view": "singleValue",
|
146
|
+
"region": "us-east-1",
|
147
|
+
"stat": "Sum",
|
148
|
+
"period": 60,
|
149
|
+
"sparkline": true,
|
150
|
+
"title": "GreetingsWorker"
|
151
|
+
}
|
152
|
+
},
|
102
153
|
|
103
154
|
{
|
104
|
-
"height":
|
155
|
+
"height": 7,
|
105
156
|
"width": 4,
|
106
157
|
"y": 4,
|
107
158
|
"x": 12,
|
@@ -109,7 +160,6 @@ Resources:
|
|
109
160
|
"properties": {
|
110
161
|
"metrics": [
|
111
162
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "SingleThreadAuditWorker", { "color": "#2ca02c" } ],
|
112
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "SingleThreadAuditWorker", { "color": "#d62728" } ],
|
113
163
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "SingleThreadAuditWorker", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
114
164
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "SingleThreadAuditWorker", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
115
165
|
],
|
@@ -121,13 +171,31 @@ Resources:
|
|
121
171
|
"title": "SingleThreadAuditWorker"
|
122
172
|
}
|
123
173
|
},
|
174
|
+
{
|
175
|
+
"height": 3,
|
176
|
+
"width": 4,
|
177
|
+
"y": 11,
|
178
|
+
"x": 12,
|
179
|
+
"type": "metric",
|
180
|
+
"properties": {
|
181
|
+
"metrics": [
|
182
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "SingleThreadAuditWorker", { "color": "#d62728" } ]
|
183
|
+
],
|
184
|
+
"view": "singleValue",
|
185
|
+
"region": "us-east-1",
|
186
|
+
"stat": "Sum",
|
187
|
+
"period": 60,
|
188
|
+
"sparkline": true,
|
189
|
+
"title": "SingleThreadAuditWorker"
|
190
|
+
}
|
191
|
+
},
|
124
192
|
|
125
193
|
|
126
194
|
|
127
195
|
{
|
128
196
|
"height": 1,
|
129
197
|
"width": 24,
|
130
|
-
"y":
|
198
|
+
"y": 14,
|
131
199
|
"x": 0,
|
132
200
|
"type": "text",
|
133
201
|
"properties": {
|
@@ -139,7 +207,7 @@ Resources:
|
|
139
207
|
{
|
140
208
|
"height": 3,
|
141
209
|
"width": 3,
|
142
|
-
"y":
|
210
|
+
"y": 15,
|
143
211
|
"x": 0,
|
144
212
|
"type": "metric",
|
145
213
|
"properties": {
|
@@ -157,7 +225,7 @@ Resources:
|
|
157
225
|
{
|
158
226
|
"height": 3,
|
159
227
|
"width": 3,
|
160
|
-
"y":
|
228
|
+
"y": 15,
|
161
229
|
"x": 3,
|
162
230
|
"type": "metric",
|
163
231
|
"properties": {
|
@@ -175,7 +243,7 @@ Resources:
|
|
175
243
|
{
|
176
244
|
"height": 3,
|
177
245
|
"width": 3,
|
178
|
-
"y":
|
246
|
+
"y": 15,
|
179
247
|
"x": 6,
|
180
248
|
"type": "metric",
|
181
249
|
"properties": {
|
@@ -193,7 +261,7 @@ Resources:
|
|
193
261
|
{
|
194
262
|
"height": 3,
|
195
263
|
"width": 3,
|
196
|
-
"y":
|
264
|
+
"y": 15,
|
197
265
|
"x": 9,
|
198
266
|
"type": "metric",
|
199
267
|
"properties": {
|
@@ -211,7 +279,7 @@ Resources:
|
|
211
279
|
{
|
212
280
|
"height": 3,
|
213
281
|
"width": 3,
|
214
|
-
"y":
|
282
|
+
"y": 15,
|
215
283
|
"x": 12,
|
216
284
|
"type": "metric",
|
217
285
|
"properties": {
|
@@ -229,7 +297,7 @@ Resources:
|
|
229
297
|
{
|
230
298
|
"height": 3,
|
231
299
|
"width": 3,
|
232
|
-
"y":
|
300
|
+
"y": 15,
|
233
301
|
"x": 15,
|
234
302
|
"type": "metric",
|
235
303
|
"properties": {
|
@@ -247,7 +315,7 @@ Resources:
|
|
247
315
|
{
|
248
316
|
"height": 3,
|
249
317
|
"width": 3,
|
250
|
-
"y":
|
318
|
+
"y": 15,
|
251
319
|
"x": 18,
|
252
320
|
"type": "metric",
|
253
321
|
"properties": {
|
@@ -265,7 +333,7 @@ Resources:
|
|
265
333
|
{
|
266
334
|
"height": 3,
|
267
335
|
"width": 3,
|
268
|
-
"y":
|
336
|
+
"y": 15,
|
269
337
|
"x": 21,
|
270
338
|
"type": "metric",
|
271
339
|
"properties": {
|
@@ -288,7 +356,7 @@ Resources:
|
|
288
356
|
{
|
289
357
|
"height": 3,
|
290
358
|
"width": 3,
|
291
|
-
"y":
|
359
|
+
"y": 18,
|
292
360
|
"x": 0,
|
293
361
|
"type": "metric",
|
294
362
|
"properties": {
|
@@ -309,7 +377,7 @@ Resources:
|
|
309
377
|
{
|
310
378
|
"height": 3,
|
311
379
|
"width": 3,
|
312
|
-
"y":
|
380
|
+
"y": 18,
|
313
381
|
"x": 3,
|
314
382
|
"type": "metric",
|
315
383
|
"properties": {
|
@@ -330,7 +398,7 @@ Resources:
|
|
330
398
|
{
|
331
399
|
"height": 3,
|
332
400
|
"width": 12,
|
333
|
-
"y":
|
401
|
+
"y": 18,
|
334
402
|
"x": 6,
|
335
403
|
"type": "metric",
|
336
404
|
"properties": {
|
@@ -354,7 +422,7 @@ Resources:
|
|
354
422
|
{
|
355
423
|
"height": 3,
|
356
424
|
"width": 3,
|
357
|
-
"y":
|
425
|
+
"y": 18,
|
358
426
|
"x": 18,
|
359
427
|
"type": "metric",
|
360
428
|
"properties": {
|
@@ -375,7 +443,7 @@ Resources:
|
|
375
443
|
{
|
376
444
|
"height": 3,
|
377
445
|
"width": 3,
|
378
|
-
"y":
|
446
|
+
"y": 18,
|
379
447
|
"x": 21,
|
380
448
|
"type": "metric",
|
381
449
|
"properties": {
|
@@ -397,7 +465,7 @@ Resources:
|
|
397
465
|
{
|
398
466
|
"height": 1,
|
399
467
|
"width": 24,
|
400
|
-
"y":
|
468
|
+
"y": 24,
|
401
469
|
"x": 0,
|
402
470
|
"type": "text",
|
403
471
|
"properties": {
|
@@ -409,7 +477,7 @@ Resources:
|
|
409
477
|
{
|
410
478
|
"height": 3,
|
411
479
|
"width": 3,
|
412
|
-
"y":
|
480
|
+
"y": 25,
|
413
481
|
"x": 0,
|
414
482
|
"type": "metric",
|
415
483
|
"properties": {
|
@@ -427,7 +495,7 @@ Resources:
|
|
427
495
|
{
|
428
496
|
"height": 3,
|
429
497
|
"width": 3,
|
430
|
-
"y":
|
498
|
+
"y": 25,
|
431
499
|
"x": 3,
|
432
500
|
"type": "metric",
|
433
501
|
"properties": {
|
@@ -445,7 +513,7 @@ Resources:
|
|
445
513
|
{
|
446
514
|
"height": 3,
|
447
515
|
"width": 3,
|
448
|
-
"y":
|
516
|
+
"y": 25,
|
449
517
|
"x": 6,
|
450
518
|
"type": "metric",
|
451
519
|
"properties": {
|
@@ -463,7 +531,7 @@ Resources:
|
|
463
531
|
{
|
464
532
|
"height": 3,
|
465
533
|
"width": 3,
|
466
|
-
"y":
|
534
|
+
"y": 25,
|
467
535
|
"x": 9,
|
468
536
|
"type": "metric",
|
469
537
|
"properties": {
|
@@ -481,7 +549,7 @@ Resources:
|
|
481
549
|
{
|
482
550
|
"height": 3,
|
483
551
|
"width": 3,
|
484
|
-
"y":
|
552
|
+
"y": 25,
|
485
553
|
"x": 12,
|
486
554
|
"type": "metric",
|
487
555
|
"properties": {
|
@@ -499,7 +567,7 @@ Resources:
|
|
499
567
|
{
|
500
568
|
"height": 3,
|
501
569
|
"width": 3,
|
502
|
-
"y":
|
570
|
+
"y": 25,
|
503
571
|
"x": 15,
|
504
572
|
"type": "metric",
|
505
573
|
"properties": {
|
@@ -517,7 +585,7 @@ Resources:
|
|
517
585
|
{
|
518
586
|
"height": 3,
|
519
587
|
"width": 3,
|
520
|
-
"y":
|
588
|
+
"y": 25,
|
521
589
|
"x": 18,
|
522
590
|
"type": "metric",
|
523
591
|
"properties": {
|
@@ -535,7 +603,7 @@ Resources:
|
|
535
603
|
{
|
536
604
|
"height": 3,
|
537
605
|
"width": 3,
|
538
|
-
"y":
|
606
|
+
"y": 25,
|
539
607
|
"x": 21,
|
540
608
|
"type": "metric",
|
541
609
|
"properties": {
|
@@ -558,7 +626,7 @@ Resources:
|
|
558
626
|
{
|
559
627
|
"height": 3,
|
560
628
|
"width": 3,
|
561
|
-
"y":
|
629
|
+
"y": 28,
|
562
630
|
"x": 0,
|
563
631
|
"type": "metric",
|
564
632
|
"properties": {
|
@@ -579,7 +647,7 @@ Resources:
|
|
579
647
|
{
|
580
648
|
"height": 3,
|
581
649
|
"width": 3,
|
582
|
-
"y":
|
650
|
+
"y": 28,
|
583
651
|
"x": 3,
|
584
652
|
"type": "metric",
|
585
653
|
"properties": {
|
@@ -600,7 +668,7 @@ Resources:
|
|
600
668
|
{
|
601
669
|
"height": 3,
|
602
670
|
"width": 12,
|
603
|
-
"y":
|
671
|
+
"y": 28,
|
604
672
|
"x": 6,
|
605
673
|
"type": "metric",
|
606
674
|
"properties": {
|
@@ -624,7 +692,7 @@ Resources:
|
|
624
692
|
{
|
625
693
|
"height": 3,
|
626
694
|
"width": 3,
|
627
|
-
"y":
|
695
|
+
"y": 28,
|
628
696
|
"x": 18,
|
629
697
|
"type": "metric",
|
630
698
|
"properties": {
|
@@ -645,7 +713,7 @@ Resources:
|
|
645
713
|
{
|
646
714
|
"height": 3,
|
647
715
|
"width": 3,
|
648
|
-
"y":
|
716
|
+
"y": 28,
|
649
717
|
"x": 21,
|
650
718
|
"type": "metric",
|
651
719
|
"properties": {
|
@@ -667,7 +735,7 @@ Resources:
|
|
667
735
|
{
|
668
736
|
"height": 1,
|
669
737
|
"width": 24,
|
670
|
-
"y":
|
738
|
+
"y": 34,
|
671
739
|
"x": 0,
|
672
740
|
"type": "text",
|
673
741
|
"properties": {
|
@@ -679,7 +747,7 @@ Resources:
|
|
679
747
|
{
|
680
748
|
"height": 3,
|
681
749
|
"width": 3,
|
682
|
-
"y":
|
750
|
+
"y": 35,
|
683
751
|
"x": 0,
|
684
752
|
"type": "metric",
|
685
753
|
"properties": {
|
@@ -697,7 +765,7 @@ Resources:
|
|
697
765
|
{
|
698
766
|
"height": 3,
|
699
767
|
"width": 3,
|
700
|
-
"y":
|
768
|
+
"y": 35,
|
701
769
|
"x": 3,
|
702
770
|
"type": "metric",
|
703
771
|
"properties": {
|
@@ -715,7 +783,7 @@ Resources:
|
|
715
783
|
{
|
716
784
|
"height": 3,
|
717
785
|
"width": 3,
|
718
|
-
"y":
|
786
|
+
"y": 35,
|
719
787
|
"x": 6,
|
720
788
|
"type": "metric",
|
721
789
|
"properties": {
|
@@ -733,7 +801,7 @@ Resources:
|
|
733
801
|
{
|
734
802
|
"height": 3,
|
735
803
|
"width": 3,
|
736
|
-
"y":
|
804
|
+
"y": 35,
|
737
805
|
"x": 9,
|
738
806
|
"type": "metric",
|
739
807
|
"properties": {
|
@@ -751,7 +819,7 @@ Resources:
|
|
751
819
|
{
|
752
820
|
"height": 3,
|
753
821
|
"width": 3,
|
754
|
-
"y":
|
822
|
+
"y": 35,
|
755
823
|
"x": 12,
|
756
824
|
"type": "metric",
|
757
825
|
"properties": {
|
@@ -769,7 +837,7 @@ Resources:
|
|
769
837
|
{
|
770
838
|
"height": 3,
|
771
839
|
"width": 3,
|
772
|
-
"y":
|
840
|
+
"y": 35,
|
773
841
|
"x": 15,
|
774
842
|
"type": "metric",
|
775
843
|
"properties": {
|
@@ -787,7 +855,7 @@ Resources:
|
|
787
855
|
{
|
788
856
|
"height": 3,
|
789
857
|
"width": 3,
|
790
|
-
"y":
|
858
|
+
"y": 35,
|
791
859
|
"x": 18,
|
792
860
|
"type": "metric",
|
793
861
|
"properties": {
|
@@ -805,7 +873,7 @@ Resources:
|
|
805
873
|
{
|
806
874
|
"height": 3,
|
807
875
|
"width": 3,
|
808
|
-
"y":
|
876
|
+
"y": 35,
|
809
877
|
"x": 21,
|
810
878
|
"type": "metric",
|
811
879
|
"properties": {
|
@@ -828,7 +896,7 @@ Resources:
|
|
828
896
|
{
|
829
897
|
"height": 3,
|
830
898
|
"width": 3,
|
831
|
-
"y":
|
899
|
+
"y": 38,
|
832
900
|
"x": 0,
|
833
901
|
"type": "metric",
|
834
902
|
"properties": {
|
@@ -849,7 +917,7 @@ Resources:
|
|
849
917
|
{
|
850
918
|
"height": 3,
|
851
919
|
"width": 3,
|
852
|
-
"y":
|
920
|
+
"y": 38,
|
853
921
|
"x": 3,
|
854
922
|
"type": "metric",
|
855
923
|
"properties": {
|
@@ -870,7 +938,7 @@ Resources:
|
|
870
938
|
{
|
871
939
|
"height": 3,
|
872
940
|
"width": 12,
|
873
|
-
"y":
|
941
|
+
"y": 38,
|
874
942
|
"x": 6,
|
875
943
|
"type": "metric",
|
876
944
|
"properties": {
|
@@ -894,7 +962,7 @@ Resources:
|
|
894
962
|
{
|
895
963
|
"height": 3,
|
896
964
|
"width": 3,
|
897
|
-
"y":
|
965
|
+
"y": 38,
|
898
966
|
"x": 18,
|
899
967
|
"type": "metric",
|
900
968
|
"properties": {
|
@@ -915,7 +983,7 @@ Resources:
|
|
915
983
|
{
|
916
984
|
"height": 3,
|
917
985
|
"width": 3,
|
918
|
-
"y":
|
986
|
+
"y": 38,
|
919
987
|
"x": 21,
|
920
988
|
"type": "metric",
|
921
989
|
"properties": {
|
@@ -937,7 +1005,7 @@ Resources:
|
|
937
1005
|
{
|
938
1006
|
"height": 1,
|
939
1007
|
"width": 24,
|
940
|
-
"y":
|
1008
|
+
"y": 44,
|
941
1009
|
"x": 0,
|
942
1010
|
"type": "text",
|
943
1011
|
"properties": {
|
@@ -949,7 +1017,7 @@ Resources:
|
|
949
1017
|
{
|
950
1018
|
"height": 3,
|
951
1019
|
"width": 3,
|
952
|
-
"y":
|
1020
|
+
"y": 45,
|
953
1021
|
"x": 0,
|
954
1022
|
"type": "metric",
|
955
1023
|
"properties": {
|
@@ -967,7 +1035,7 @@ Resources:
|
|
967
1035
|
{
|
968
1036
|
"height": 3,
|
969
1037
|
"width": 3,
|
970
|
-
"y":
|
1038
|
+
"y": 45,
|
971
1039
|
"x": 3,
|
972
1040
|
"type": "metric",
|
973
1041
|
"properties": {
|
@@ -985,7 +1053,7 @@ Resources:
|
|
985
1053
|
{
|
986
1054
|
"height": 3,
|
987
1055
|
"width": 3,
|
988
|
-
"y":
|
1056
|
+
"y": 45,
|
989
1057
|
"x": 6,
|
990
1058
|
"type": "metric",
|
991
1059
|
"properties": {
|
@@ -1003,7 +1071,7 @@ Resources:
|
|
1003
1071
|
{
|
1004
1072
|
"height": 3,
|
1005
1073
|
"width": 3,
|
1006
|
-
"y":
|
1074
|
+
"y": 45,
|
1007
1075
|
"x": 9,
|
1008
1076
|
"type": "metric",
|
1009
1077
|
"properties": {
|
@@ -1021,7 +1089,7 @@ Resources:
|
|
1021
1089
|
{
|
1022
1090
|
"height": 3,
|
1023
1091
|
"width": 3,
|
1024
|
-
"y":
|
1092
|
+
"y": 45,
|
1025
1093
|
"x": 12,
|
1026
1094
|
"type": "metric",
|
1027
1095
|
"properties": {
|
@@ -1039,7 +1107,7 @@ Resources:
|
|
1039
1107
|
{
|
1040
1108
|
"height": 3,
|
1041
1109
|
"width": 3,
|
1042
|
-
"y":
|
1110
|
+
"y": 45,
|
1043
1111
|
"x": 15,
|
1044
1112
|
"type": "metric",
|
1045
1113
|
"properties": {
|
@@ -1057,7 +1125,7 @@ Resources:
|
|
1057
1125
|
{
|
1058
1126
|
"height": 3,
|
1059
1127
|
"width": 3,
|
1060
|
-
"y":
|
1128
|
+
"y": 45,
|
1061
1129
|
"x": 18,
|
1062
1130
|
"type": "metric",
|
1063
1131
|
"properties": {
|
@@ -1075,7 +1143,7 @@ Resources:
|
|
1075
1143
|
{
|
1076
1144
|
"height": 3,
|
1077
1145
|
"width": 3,
|
1078
|
-
"y":
|
1146
|
+
"y": 45,
|
1079
1147
|
"x": 21,
|
1080
1148
|
"type": "metric",
|
1081
1149
|
"properties": {
|
@@ -1098,7 +1166,7 @@ Resources:
|
|
1098
1166
|
{
|
1099
1167
|
"height": 3,
|
1100
1168
|
"width": 3,
|
1101
|
-
"y":
|
1169
|
+
"y": 48,
|
1102
1170
|
"x": 0,
|
1103
1171
|
"type": "metric",
|
1104
1172
|
"properties": {
|
@@ -1119,7 +1187,7 @@ Resources:
|
|
1119
1187
|
{
|
1120
1188
|
"height": 3,
|
1121
1189
|
"width": 3,
|
1122
|
-
"y":
|
1190
|
+
"y": 48,
|
1123
1191
|
"x": 3,
|
1124
1192
|
"type": "metric",
|
1125
1193
|
"properties": {
|
@@ -1140,7 +1208,7 @@ Resources:
|
|
1140
1208
|
{
|
1141
1209
|
"height": 3,
|
1142
1210
|
"width": 12,
|
1143
|
-
"y":
|
1211
|
+
"y": 48,
|
1144
1212
|
"x": 6,
|
1145
1213
|
"type": "metric",
|
1146
1214
|
"properties": {
|
@@ -1164,7 +1232,7 @@ Resources:
|
|
1164
1232
|
{
|
1165
1233
|
"height": 3,
|
1166
1234
|
"width": 3,
|
1167
|
-
"y":
|
1235
|
+
"y": 48,
|
1168
1236
|
"x": 18,
|
1169
1237
|
"type": "metric",
|
1170
1238
|
"properties": {
|
@@ -1185,7 +1253,7 @@ Resources:
|
|
1185
1253
|
{
|
1186
1254
|
"height": 3,
|
1187
1255
|
"width": 3,
|
1188
|
-
"y":
|
1256
|
+
"y": 48,
|
1189
1257
|
"x": 21,
|
1190
1258
|
"type": "metric",
|
1191
1259
|
"properties": {
|
@@ -1208,7 +1276,7 @@ Resources:
|
|
1208
1276
|
{
|
1209
1277
|
"height": 3,
|
1210
1278
|
"width": 24,
|
1211
|
-
"y":
|
1279
|
+
"y": 54,
|
1212
1280
|
"x": 0,
|
1213
1281
|
"type": "text",
|
1214
1282
|
"properties": {
|
@@ -1221,7 +1289,7 @@ Resources:
|
|
1221
1289
|
{
|
1222
1290
|
"height": 3,
|
1223
1291
|
"width": 6,
|
1224
|
-
"y":
|
1292
|
+
"y": 60,
|
1225
1293
|
"x": 0,
|
1226
1294
|
"type": "text",
|
1227
1295
|
"properties": {
|
@@ -1231,7 +1299,7 @@ Resources:
|
|
1231
1299
|
{
|
1232
1300
|
"height": 3,
|
1233
1301
|
"width": 3,
|
1234
|
-
"y":
|
1302
|
+
"y": 60,
|
1235
1303
|
"x": 6,
|
1236
1304
|
"type": "metric",
|
1237
1305
|
"properties": {
|
@@ -1249,7 +1317,7 @@ Resources:
|
|
1249
1317
|
{
|
1250
1318
|
"height": 3,
|
1251
1319
|
"width": 15,
|
1252
|
-
"y":
|
1320
|
+
"y": 60,
|
1253
1321
|
"x": 9,
|
1254
1322
|
"type": "metric",
|
1255
1323
|
"properties": {
|
@@ -1271,9 +1339,9 @@ Resources:
|
|
1271
1339
|
|
1272
1340
|
|
1273
1341
|
{
|
1274
|
-
"height":
|
1342
|
+
"height": 3,
|
1275
1343
|
"width": 9,
|
1276
|
-
"y":
|
1344
|
+
"y": 63,
|
1277
1345
|
"x": 0,
|
1278
1346
|
"type": "metric",
|
1279
1347
|
"properties": {
|
@@ -1296,10 +1364,24 @@ Resources:
|
|
1296
1364
|
"liveData": true
|
1297
1365
|
}
|
1298
1366
|
},
|
1367
|
+
{
|
1368
|
+
"type": "log",
|
1369
|
+
"x": 0,
|
1370
|
+
"y": 66,
|
1371
|
+
"width": 9,
|
1372
|
+
"height": 3,
|
1373
|
+
"properties": {
|
1374
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.IncomingJobHandlerName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
1375
|
+
"region": "us-east-1",
|
1376
|
+
"stacked": false,
|
1377
|
+
"view": "timeSeries",
|
1378
|
+
"title": "Incoming Job Handler Init Duration"
|
1379
|
+
}
|
1380
|
+
},
|
1299
1381
|
{
|
1300
1382
|
"height": 6,
|
1301
1383
|
"width": 9,
|
1302
|
-
"y":
|
1384
|
+
"y": 63,
|
1303
1385
|
"x": 9,
|
1304
1386
|
"type": "metric",
|
1305
1387
|
"properties": {
|
@@ -1320,7 +1402,7 @@ Resources:
|
|
1320
1402
|
{
|
1321
1403
|
"height": 3,
|
1322
1404
|
"width": 6,
|
1323
|
-
"y":
|
1405
|
+
"y": 63,
|
1324
1406
|
"x": 18,
|
1325
1407
|
"type": "metric",
|
1326
1408
|
"properties": {
|
@@ -1347,7 +1429,7 @@ Resources:
|
|
1347
1429
|
{
|
1348
1430
|
"height": 3,
|
1349
1431
|
"width": 6,
|
1350
|
-
"y":
|
1432
|
+
"y": 66,
|
1351
1433
|
"x": 18,
|
1352
1434
|
"type": "metric",
|
1353
1435
|
"properties": {
|
@@ -1362,14 +1444,15 @@ Resources:
|
|
1362
1444
|
"liveData": true
|
1363
1445
|
}
|
1364
1446
|
},
|
1447
|
+
|
1365
1448
|
|
1449
|
+
|
1366
1450
|
|
1367
1451
|
|
1368
|
-
|
1369
1452
|
{
|
1370
1453
|
"height": 3,
|
1371
1454
|
"width": 6,
|
1372
|
-
"y":
|
1455
|
+
"y": 69,
|
1373
1456
|
"x": 0,
|
1374
1457
|
"type": "text",
|
1375
1458
|
"properties": {
|
@@ -1379,7 +1462,7 @@ Resources:
|
|
1379
1462
|
{
|
1380
1463
|
"height": 3,
|
1381
1464
|
"width": 3,
|
1382
|
-
"y":
|
1465
|
+
"y": 69,
|
1383
1466
|
"x": 6,
|
1384
1467
|
"type": "metric",
|
1385
1468
|
"properties": {
|
@@ -1398,7 +1481,7 @@ Resources:
|
|
1398
1481
|
{
|
1399
1482
|
"height": 3,
|
1400
1483
|
"width": 15,
|
1401
|
-
"y":
|
1484
|
+
"y": 69,
|
1402
1485
|
"x": 9,
|
1403
1486
|
"type": "metric",
|
1404
1487
|
"properties": {
|
@@ -1419,9 +1502,9 @@ Resources:
|
|
1419
1502
|
}
|
1420
1503
|
},
|
1421
1504
|
{
|
1422
|
-
"height":
|
1505
|
+
"height": 3,
|
1423
1506
|
"width": 9,
|
1424
|
-
"y":
|
1507
|
+
"y": 72,
|
1425
1508
|
"x": 0,
|
1426
1509
|
"type": "metric",
|
1427
1510
|
"properties": {
|
@@ -1448,10 +1531,24 @@ Resources:
|
|
1448
1531
|
"liveData": true
|
1449
1532
|
}
|
1450
1533
|
},
|
1534
|
+
{
|
1535
|
+
"type": "log",
|
1536
|
+
"x": 0,
|
1537
|
+
"y": 72,
|
1538
|
+
"width": 9,
|
1539
|
+
"height": 3,
|
1540
|
+
"properties": {
|
1541
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.DefaultQueueHandlerName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
1542
|
+
"region": "us-east-1",
|
1543
|
+
"stacked": false,
|
1544
|
+
"view": "timeSeries",
|
1545
|
+
"title": "Handler Init Duration"
|
1546
|
+
}
|
1547
|
+
},
|
1451
1548
|
{
|
1452
1549
|
"height": 6,
|
1453
1550
|
"width": 9,
|
1454
|
-
"y":
|
1551
|
+
"y": 72,
|
1455
1552
|
"x": 9,
|
1456
1553
|
"type": "metric",
|
1457
1554
|
"properties": {
|
@@ -1472,7 +1569,7 @@ Resources:
|
|
1472
1569
|
{
|
1473
1570
|
"height": 3,
|
1474
1571
|
"width": 6,
|
1475
|
-
"y":
|
1572
|
+
"y": 72,
|
1476
1573
|
"x": 18,
|
1477
1574
|
"type": "metric",
|
1478
1575
|
"properties": {
|
@@ -1498,7 +1595,7 @@ Resources:
|
|
1498
1595
|
{
|
1499
1596
|
"height": 3,
|
1500
1597
|
"width": 6,
|
1501
|
-
"y":
|
1598
|
+
"y": 75,
|
1502
1599
|
"x": 18,
|
1503
1600
|
"type": "metric",
|
1504
1601
|
"properties": {
|
@@ -1519,7 +1616,7 @@ Resources:
|
|
1519
1616
|
{
|
1520
1617
|
"height": 3,
|
1521
1618
|
"width": 6,
|
1522
|
-
"y":
|
1619
|
+
"y": 78,
|
1523
1620
|
"x": 0,
|
1524
1621
|
"type": "text",
|
1525
1622
|
"properties": {
|
@@ -1529,7 +1626,7 @@ Resources:
|
|
1529
1626
|
{
|
1530
1627
|
"height": 3,
|
1531
1628
|
"width": 3,
|
1532
|
-
"y":
|
1629
|
+
"y": 78,
|
1533
1630
|
"x": 6,
|
1534
1631
|
"type": "metric",
|
1535
1632
|
"properties": {
|
@@ -1548,7 +1645,7 @@ Resources:
|
|
1548
1645
|
{
|
1549
1646
|
"height": 3,
|
1550
1647
|
"width": 15,
|
1551
|
-
"y":
|
1648
|
+
"y": 78,
|
1552
1649
|
"x": 9,
|
1553
1650
|
"type": "metric",
|
1554
1651
|
"properties": {
|
@@ -1569,9 +1666,9 @@ Resources:
|
|
1569
1666
|
}
|
1570
1667
|
},
|
1571
1668
|
{
|
1572
|
-
"height":
|
1669
|
+
"height": 3,
|
1573
1670
|
"width": 9,
|
1574
|
-
"y":
|
1671
|
+
"y": 81,
|
1575
1672
|
"x": 0,
|
1576
1673
|
"type": "metric",
|
1577
1674
|
"properties": {
|
@@ -1598,10 +1695,24 @@ Resources:
|
|
1598
1695
|
"liveData": true
|
1599
1696
|
}
|
1600
1697
|
},
|
1698
|
+
{
|
1699
|
+
"type": "log",
|
1700
|
+
"x": 0,
|
1701
|
+
"y": 81,
|
1702
|
+
"width": 9,
|
1703
|
+
"height": 3,
|
1704
|
+
"properties": {
|
1705
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.LowConcurrencyQueueHandlerName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
1706
|
+
"region": "us-east-1",
|
1707
|
+
"stacked": false,
|
1708
|
+
"view": "timeSeries",
|
1709
|
+
"title": "Handler Init Duration"
|
1710
|
+
}
|
1711
|
+
},
|
1601
1712
|
{
|
1602
1713
|
"height": 6,
|
1603
1714
|
"width": 9,
|
1604
|
-
"y":
|
1715
|
+
"y": 81,
|
1605
1716
|
"x": 9,
|
1606
1717
|
"type": "metric",
|
1607
1718
|
"properties": {
|
@@ -1622,7 +1733,7 @@ Resources:
|
|
1622
1733
|
{
|
1623
1734
|
"height": 3,
|
1624
1735
|
"width": 6,
|
1625
|
-
"y":
|
1736
|
+
"y": 81,
|
1626
1737
|
"x": 18,
|
1627
1738
|
"type": "metric",
|
1628
1739
|
"properties": {
|
@@ -1648,7 +1759,7 @@ Resources:
|
|
1648
1759
|
{
|
1649
1760
|
"height": 3,
|
1650
1761
|
"width": 6,
|
1651
|
-
"y":
|
1762
|
+
"y": 84,
|
1652
1763
|
"x": 18,
|
1653
1764
|
"type": "metric",
|
1654
1765
|
"properties": {
|
@@ -1672,7 +1783,7 @@ Resources:
|
|
1672
1783
|
{
|
1673
1784
|
"height": 3,
|
1674
1785
|
"width": 6,
|
1675
|
-
"y":
|
1786
|
+
"y": 87,
|
1676
1787
|
"x": 0,
|
1677
1788
|
"type": "text",
|
1678
1789
|
"properties": {
|
@@ -1682,7 +1793,7 @@ Resources:
|
|
1682
1793
|
{
|
1683
1794
|
"height": 3,
|
1684
1795
|
"width": 3,
|
1685
|
-
"y":
|
1796
|
+
"y": 87,
|
1686
1797
|
"x": 6,
|
1687
1798
|
"type": "metric",
|
1688
1799
|
"properties": {
|
@@ -1700,7 +1811,7 @@ Resources:
|
|
1700
1811
|
{
|
1701
1812
|
"height": 3,
|
1702
1813
|
"width": 15,
|
1703
|
-
"y":
|
1814
|
+
"y": 87,
|
1704
1815
|
"x": 9,
|
1705
1816
|
"type": "metric",
|
1706
1817
|
"properties": {
|
@@ -1725,7 +1836,7 @@ Resources:
|
|
1725
1836
|
{
|
1726
1837
|
"height": 3,
|
1727
1838
|
"width": 6,
|
1728
|
-
"y":
|
1839
|
+
"y": 90,
|
1729
1840
|
"x": 18,
|
1730
1841
|
"type": "metric",
|
1731
1842
|
"properties": {
|
@@ -1750,7 +1861,7 @@ Resources:
|
|
1750
1861
|
{
|
1751
1862
|
"height": 3,
|
1752
1863
|
"width": 9,
|
1753
|
-
"y":
|
1864
|
+
"y": 90,
|
1754
1865
|
"x": 9,
|
1755
1866
|
"type": "metric",
|
1756
1867
|
"properties": {
|
@@ -1771,7 +1882,7 @@ Resources:
|
|
1771
1882
|
{
|
1772
1883
|
"height": 3,
|
1773
1884
|
"width": 9,
|
1774
|
-
"y":
|
1885
|
+
"y": 90,
|
1775
1886
|
"x": 0,
|
1776
1887
|
"type": "metric",
|
1777
1888
|
"properties": {
|
@@ -1793,7 +1904,7 @@ Resources:
|
|
1793
1904
|
{
|
1794
1905
|
"height": 3,
|
1795
1906
|
"width": 9,
|
1796
|
-
"y":
|
1907
|
+
"y": 93,
|
1797
1908
|
"x": 0,
|
1798
1909
|
"type": "metric",
|
1799
1910
|
"properties": {
|
@@ -1815,7 +1926,7 @@ Resources:
|
|
1815
1926
|
{
|
1816
1927
|
"height": 3,
|
1817
1928
|
"width": 6,
|
1818
|
-
"y":
|
1929
|
+
"y": 93,
|
1819
1930
|
"x": 18,
|
1820
1931
|
"type": "metric",
|
1821
1932
|
"properties": {
|
@@ -1833,7 +1944,7 @@ Resources:
|
|
1833
1944
|
{
|
1834
1945
|
"height": 3,
|
1835
1946
|
"width": 9,
|
1836
|
-
"y":
|
1947
|
+
"y": 93,
|
1837
1948
|
"x": 9,
|
1838
1949
|
"type": "metric",
|
1839
1950
|
"properties": {
|
@@ -1856,11 +1967,25 @@ Resources:
|
|
1856
1967
|
|
1857
1968
|
|
1858
1969
|
|
1970
|
+
{
|
1971
|
+
"type": "log",
|
1972
|
+
"x": 0,
|
1973
|
+
"y": 96,
|
1974
|
+
"width": 9,
|
1975
|
+
"height": 3,
|
1976
|
+
"properties": {
|
1977
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.JobActivatorName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
1978
|
+
"region": "us-east-1",
|
1979
|
+
"stacked": false,
|
1980
|
+
"view": "timeSeries",
|
1981
|
+
"title": "Handler Init Duration"
|
1982
|
+
}
|
1983
|
+
},
|
1859
1984
|
{
|
1860
1985
|
"height": 3,
|
1861
|
-
"width":
|
1862
|
-
"y":
|
1863
|
-
"x":
|
1986
|
+
"width": 9,
|
1987
|
+
"y": 96,
|
1988
|
+
"x": 9,
|
1864
1989
|
"type": "metric",
|
1865
1990
|
"properties": {
|
1866
1991
|
"metrics": [
|
@@ -1883,7 +2008,7 @@ Resources:
|
|
1883
2008
|
{
|
1884
2009
|
"height": 3,
|
1885
2010
|
"width": 6,
|
1886
|
-
"y":
|
2011
|
+
"y": 96,
|
1887
2012
|
"x": 18,
|
1888
2013
|
"type": "metric",
|
1889
2014
|
"properties": {
|
@@ -34,9 +34,9 @@ Resources:
|
|
34
34
|
<% current_y += 1 %>
|
35
35
|
|
36
36
|
<%- prioritized_workers.each_with_index do |worker_name, index| -%>
|
37
|
-
<%- current_y +=
|
37
|
+
<%- current_y += 10 if (index > 0 && (index % 6) == 0) %>
|
38
38
|
{ <% "Worker Overview" %>
|
39
|
-
"height":
|
39
|
+
"height": 7,
|
40
40
|
"width": 4,
|
41
41
|
"y": <%= current_y %>,
|
42
42
|
"x": <%= (index % 6) * 4 %>,
|
@@ -44,7 +44,6 @@ Resources:
|
|
44
44
|
"properties": {
|
45
45
|
"metrics": [
|
46
46
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>", { "color": "#2ca02c" } ],
|
47
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ],
|
48
47
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
49
48
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
50
49
|
],
|
@@ -56,9 +55,27 @@ Resources:
|
|
56
55
|
"title": "<%= worker_name %>"
|
57
56
|
}
|
58
57
|
},
|
58
|
+
{ <% "Worker Overview" %>
|
59
|
+
"height": 3,
|
60
|
+
"width": 4,
|
61
|
+
"y": <%= current_y + 7 %>,
|
62
|
+
"x": <%= (index % 6) * 4 %>,
|
63
|
+
"type": "metric",
|
64
|
+
"properties": {
|
65
|
+
"metrics": [
|
66
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
|
67
|
+
],
|
68
|
+
"view": "singleValue",
|
69
|
+
"region": "us-east-1",
|
70
|
+
"stat": "Sum",
|
71
|
+
"period": 60,
|
72
|
+
"sparkline": true,
|
73
|
+
"title": "<%= worker_name %>"
|
74
|
+
}
|
75
|
+
},
|
59
76
|
<%- end -%>
|
60
|
-
<%#- current_y +=
|
61
|
-
<%- current_y +=
|
77
|
+
<%#- current_y += 10 if (prioritized_workers.count - 1) % 3 != 0 %>
|
78
|
+
<%- current_y += 10 %>
|
62
79
|
|
63
80
|
<%- prioritized_workers.each do |worker_name| -%>
|
64
81
|
{ <% "Worker" %>
|
@@ -399,7 +416,7 @@ Resources:
|
|
399
416
|
|
400
417
|
<% current_y += 3 %>
|
401
418
|
{ <% "Incoming Job Queue (Async & scheduled jobs land here first)" %>
|
402
|
-
"height":
|
419
|
+
"height": 3,
|
403
420
|
"width": 9,
|
404
421
|
"y": <%= current_y %>,
|
405
422
|
"x": 0,
|
@@ -424,6 +441,20 @@ Resources:
|
|
424
441
|
"liveData": true
|
425
442
|
}
|
426
443
|
},
|
444
|
+
{ <% "Incoming Job Handler Init Duration" %>
|
445
|
+
"type": "log",
|
446
|
+
"x": 0,
|
447
|
+
"y": <%= current_y + 3 %>,
|
448
|
+
"width": 9,
|
449
|
+
"height": 3,
|
450
|
+
"properties": {
|
451
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.IncomingJobHandlerName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
452
|
+
"region": "us-east-1",
|
453
|
+
"stacked": false,
|
454
|
+
"view": "timeSeries",
|
455
|
+
"title": "Incoming Job Handler Init Duration"
|
456
|
+
}
|
457
|
+
},
|
427
458
|
{ <% "Incoming Job Handler Duration in Milliseconds" %>
|
428
459
|
"height": 6,
|
429
460
|
"width": 9,
|
@@ -490,10 +521,11 @@ Resources:
|
|
490
521
|
"liveData": true
|
491
522
|
}
|
492
523
|
},
|
524
|
+
<% current_y += 6 %>
|
493
525
|
|
526
|
+
|
494
527
|
|
495
528
|
|
496
|
-
<% current_y += 6 %>
|
497
529
|
<%- queue_names.each do |queue_name| -%>
|
498
530
|
{ <% "Active Jobs" %>
|
499
531
|
"height": 3,
|
@@ -548,7 +580,7 @@ Resources:
|
|
548
580
|
}
|
549
581
|
},
|
550
582
|
{ <% "Active Job Queue" %>
|
551
|
-
"height":
|
583
|
+
"height": 3,
|
552
584
|
"width": 9,
|
553
585
|
"y": <%= current_y + 3 %>,
|
554
586
|
"x": 0,
|
@@ -577,6 +609,20 @@ Resources:
|
|
577
609
|
"liveData": true
|
578
610
|
}
|
579
611
|
},
|
612
|
+
{ <% "Queue Handler Init Duration" %>
|
613
|
+
"type": "log",
|
614
|
+
"x": 0,
|
615
|
+
"y": <%= current_y + 3 %>,
|
616
|
+
"width": 9,
|
617
|
+
"height": 3,
|
618
|
+
"properties": {
|
619
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.<%= queue_name.camelize %>QueueHandlerName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
620
|
+
"region": "us-east-1",
|
621
|
+
"stacked": false,
|
622
|
+
"view": "timeSeries",
|
623
|
+
"title": "Handler Init Duration"
|
624
|
+
}
|
625
|
+
},
|
580
626
|
{ <% "Active Job Handler Duration in Milliseconds" %>
|
581
627
|
"height": 6,
|
582
628
|
"width": 9,
|
@@ -836,11 +882,25 @@ Resources:
|
|
836
882
|
|
837
883
|
|
838
884
|
<% current_y += 3 %>
|
885
|
+
{ <% "Job Activator Init Duration" %>
|
886
|
+
"type": "log",
|
887
|
+
"x": 0,
|
888
|
+
"y": <%= current_y %>,
|
889
|
+
"width": 9,
|
890
|
+
"height": 3,
|
891
|
+
"properties": {
|
892
|
+
"query": "SOURCE '/aws/lambda/${self:custom.funktor.JobActivatorName}' | fields @initDuration\n| filter ispresent(@initDuration)\n| stats pct(@initDuration, 5) as p5,\n\n\n\n pct(@initDuration, 50) as p50,\n\n\n\n pct(@initDuration, 95) as p95,\n\n\n\n pct(@initDuration, 99) as p99\n\n\n\n by bin(1h)\n",
|
893
|
+
"region": "us-east-1",
|
894
|
+
"stacked": false,
|
895
|
+
"view": "timeSeries",
|
896
|
+
"title": "Handler Init Duration"
|
897
|
+
}
|
898
|
+
},
|
839
899
|
{ <% "Scheduled Job Table Latency" %>
|
840
900
|
"height": 3,
|
841
|
-
"width":
|
901
|
+
"width": 9,
|
842
902
|
"y": <%= current_y %>,
|
843
|
-
"x":
|
903
|
+
"x": 9,
|
844
904
|
"type": "metric",
|
845
905
|
"properties": {
|
846
906
|
"metrics": [
|
data/lib/funktor/counter.rb
CHANGED
data/lib/funktor/job.rb
CHANGED
@@ -25,7 +25,7 @@ module Funktor
|
|
25
25
|
ENV[queue_constant] || ENV['FUNKTOR_DEFAULT_QUEUE']
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
28
|
+
def worker_class_name_for_metrics
|
29
29
|
if job_data["worker"] == "ActiveJob::QueueAdapters::FunktorAdapter::JobWrapper"
|
30
30
|
job_data["wrapped"]
|
31
31
|
else
|
@@ -33,6 +33,10 @@ module Funktor
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
def worker_class_name
|
37
|
+
job_data["worker"]
|
38
|
+
end
|
39
|
+
|
36
40
|
def job_id
|
37
41
|
job_data["job_id"]
|
38
42
|
end
|
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.20
|
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-
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|