funktor 0.7.12 → 0.7.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/funktor-testapp/funktor_config/resources/cloudwatch_dashboard.yml +78 -78
- 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 +19 -19
- data/lib/funktor/cli/templates/funktor_init.yml.tt +4 -0
- data/lib/funktor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab401b6c0ab4ea8b12e33fefd704b3558be185821a0079dcdf98628d41018c4a
|
4
|
+
data.tar.gz: 42649f8d8c93d77fb267b01a63dd7b475250cf229a5ace112031d31ac2939c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279d6cf86f5859420c58cc867ceefbfb6e41916905dce46e437cce3fe9290f79272512c63e3fd539ec419776cd4be59244116767d165ee10089a68b3ab66e746
|
7
|
+
data.tar.gz: 444a570bada22596ceb2076379e4ed8f63659cf139e328a0a9c4e39fbb5fd6638874676b1dc3317600cf9d21ba78bdd59b3022fbb7c0d1699e688327f694642d
|
data/Gemfile.lock
CHANGED
@@ -29,9 +29,9 @@ Resources:
|
|
29
29
|
"type": "metric",
|
30
30
|
"properties": {
|
31
31
|
"metrics": [
|
32
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ],
|
33
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker" ],
|
34
32
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "HelloWorker" ],
|
33
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker" ],
|
34
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ],
|
35
35
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "SingleThreadAuditWorker" ]
|
36
36
|
],
|
37
37
|
"view": "timeSeries",
|
@@ -50,9 +50,9 @@ Resources:
|
|
50
50
|
"type": "metric",
|
51
51
|
"properties": {
|
52
52
|
"metrics": [
|
53
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ],
|
54
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker" ],
|
55
53
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker" ],
|
54
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker" ],
|
55
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ],
|
56
56
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "SingleThreadAuditWorker" ]
|
57
57
|
],
|
58
58
|
"view": "timeSeries",
|
@@ -73,9 +73,9 @@ Resources:
|
|
73
73
|
"type": "metric",
|
74
74
|
"properties": {
|
75
75
|
"metrics": [
|
76
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker" ],
|
77
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker" ],
|
78
76
|
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "HelloWorker" ],
|
77
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker" ],
|
78
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker" ],
|
79
79
|
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "SingleThreadAuditWorker" ]
|
80
80
|
],
|
81
81
|
"view": "timeSeries",
|
@@ -94,9 +94,9 @@ Resources:
|
|
94
94
|
"type": "metric",
|
95
95
|
"properties": {
|
96
96
|
"metrics": [
|
97
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ],
|
98
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker" ],
|
99
97
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker" ],
|
98
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker" ],
|
99
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ],
|
100
100
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "SingleThreadAuditWorker" ]
|
101
101
|
],
|
102
102
|
"view": "timeSeries",
|
@@ -211,12 +211,12 @@ Resources:
|
|
211
211
|
"type": "metric",
|
212
212
|
"properties": {
|
213
213
|
"metrics": [
|
214
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
214
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "HelloWorker" ]
|
215
215
|
],
|
216
216
|
"view": "timeSeries",
|
217
217
|
"stacked": false,
|
218
218
|
"region": "us-east-1",
|
219
|
-
"title": "
|
219
|
+
"title": "HelloWorker Jobs/Min",
|
220
220
|
"period": 60,
|
221
221
|
"stat": "Sum",
|
222
222
|
"legend": {
|
@@ -255,12 +255,12 @@ Resources:
|
|
255
255
|
"type": "metric",
|
256
256
|
"properties": {
|
257
257
|
"metrics": [
|
258
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
258
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ]
|
259
259
|
],
|
260
260
|
"view": "timeSeries",
|
261
261
|
"stacked": false,
|
262
262
|
"region": "us-east-1",
|
263
|
-
"title": "
|
263
|
+
"title": "AuditWorker Jobs/Min",
|
264
264
|
"period": 60,
|
265
265
|
"stat": "Sum",
|
266
266
|
"legend": {
|
@@ -315,12 +315,12 @@ Resources:
|
|
315
315
|
"type": "metric",
|
316
316
|
"properties": {
|
317
317
|
"metrics": [
|
318
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
318
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "HelloWorker", { "color": "#d62728" } ]
|
319
319
|
],
|
320
320
|
"view": "timeSeries",
|
321
321
|
"stacked": false,
|
322
322
|
"region": "us-east-1",
|
323
|
-
"title": "
|
323
|
+
"title": "HelloWorker Fails/Min",
|
324
324
|
"period": 60,
|
325
325
|
"stat": "Sum",
|
326
326
|
"legend": {
|
@@ -359,12 +359,12 @@ Resources:
|
|
359
359
|
"type": "metric",
|
360
360
|
"properties": {
|
361
361
|
"metrics": [
|
362
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
362
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ]
|
363
363
|
],
|
364
364
|
"view": "timeSeries",
|
365
365
|
"stacked": false,
|
366
366
|
"region": "us-east-1",
|
367
|
-
"title": "
|
367
|
+
"title": "AuditWorker Fails/Min",
|
368
368
|
"period": 60,
|
369
369
|
"stat": "Sum",
|
370
370
|
"legend": {
|
@@ -419,7 +419,7 @@ Resources:
|
|
419
419
|
"type": "metric",
|
420
420
|
"properties": {
|
421
421
|
"metrics": [
|
422
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
422
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p90", "stat": "p90", "color": "#d62728" } ],
|
423
423
|
[ "...", { "label": "p80", "stat": "p80", "color": "#2ca02c" } ],
|
424
424
|
[ "...", { "label": "p70", "stat": "p70", "color": "#ff7f0e" } ],
|
425
425
|
[ "...", { "label": "p60", "color": "#1f77b4" } ]
|
@@ -429,7 +429,7 @@ Resources:
|
|
429
429
|
"region": "us-east-1",
|
430
430
|
"stat": "p60",
|
431
431
|
"period": 60,
|
432
|
-
"title": "
|
432
|
+
"title": "HelloWorker Duration Percentiles",
|
433
433
|
"legend": {
|
434
434
|
"position": "bottom"
|
435
435
|
}
|
@@ -469,7 +469,7 @@ Resources:
|
|
469
469
|
"type": "metric",
|
470
470
|
"properties": {
|
471
471
|
"metrics": [
|
472
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
472
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p90", "stat": "p90", "color": "#d62728" } ],
|
473
473
|
[ "...", { "label": "p80", "stat": "p80", "color": "#2ca02c" } ],
|
474
474
|
[ "...", { "label": "p70", "stat": "p70", "color": "#ff7f0e" } ],
|
475
475
|
[ "...", { "label": "p60", "color": "#1f77b4" } ]
|
@@ -479,7 +479,7 @@ Resources:
|
|
479
479
|
"region": "us-east-1",
|
480
480
|
"stat": "p60",
|
481
481
|
"period": 60,
|
482
|
-
"title": "
|
482
|
+
"title": "AuditWorker Duration Percentiles",
|
483
483
|
"legend": {
|
484
484
|
"position": "bottom"
|
485
485
|
}
|
@@ -520,7 +520,7 @@ Resources:
|
|
520
520
|
"x": 0,
|
521
521
|
"type": "text",
|
522
522
|
"properties": {
|
523
|
-
"markdown": "\n#
|
523
|
+
"markdown": "\n# HelloWorker\n"
|
524
524
|
}
|
525
525
|
},
|
526
526
|
|
@@ -533,14 +533,14 @@ Resources:
|
|
533
533
|
"type": "metric",
|
534
534
|
"properties": {
|
535
535
|
"metrics": [
|
536
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
536
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "HelloWorker" ]
|
537
537
|
],
|
538
538
|
"view": "singleValue",
|
539
539
|
"region": "us-east-1",
|
540
540
|
"stat": "Sum",
|
541
541
|
"period": 60,
|
542
542
|
"sparkline": true,
|
543
|
-
"title": "
|
543
|
+
"title": "HelloWorker Processed/Min"
|
544
544
|
}
|
545
545
|
},
|
546
546
|
{
|
@@ -551,14 +551,14 @@ Resources:
|
|
551
551
|
"type": "metric",
|
552
552
|
"properties": {
|
553
553
|
"metrics": [
|
554
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
554
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "HelloWorker", { "color": "#d62728" } ]
|
555
555
|
],
|
556
556
|
"view": "singleValue",
|
557
557
|
"region": "us-east-1",
|
558
558
|
"stat": "Sum",
|
559
559
|
"period": 60,
|
560
560
|
"sparkline": true,
|
561
|
-
"title": "
|
561
|
+
"title": "HelloWorker Failed/Min"
|
562
562
|
}
|
563
563
|
},
|
564
564
|
{
|
@@ -569,14 +569,14 @@ Resources:
|
|
569
569
|
"type": "metric",
|
570
570
|
"properties": {
|
571
571
|
"metrics": [
|
572
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
572
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p60", "color": "#1f77b4" } ]
|
573
573
|
],
|
574
574
|
"view": "singleValue",
|
575
575
|
"region": "us-east-1",
|
576
576
|
"stat": "p60",
|
577
577
|
"period": 60,
|
578
578
|
"sparkline": true,
|
579
|
-
"title": "
|
579
|
+
"title": "HelloWorker p60"
|
580
580
|
}
|
581
581
|
},
|
582
582
|
{
|
@@ -587,14 +587,14 @@ Resources:
|
|
587
587
|
"type": "metric",
|
588
588
|
"properties": {
|
589
589
|
"metrics": [
|
590
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
590
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p70", "color": "#ff7f0e" } ]
|
591
591
|
],
|
592
592
|
"view": "singleValue",
|
593
593
|
"region": "us-east-1",
|
594
594
|
"stat": "p70",
|
595
595
|
"period": 60,
|
596
596
|
"sparkline": true,
|
597
|
-
"title": "
|
597
|
+
"title": "HelloWorker p70"
|
598
598
|
}
|
599
599
|
},
|
600
600
|
{
|
@@ -605,14 +605,14 @@ Resources:
|
|
605
605
|
"type": "metric",
|
606
606
|
"properties": {
|
607
607
|
"metrics": [
|
608
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
608
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p80", "color": "#2ca02c" } ]
|
609
609
|
],
|
610
610
|
"view": "singleValue",
|
611
611
|
"region": "us-east-1",
|
612
612
|
"stat": "p80",
|
613
613
|
"period": 60,
|
614
614
|
"sparkline": true,
|
615
|
-
"title": "
|
615
|
+
"title": "HelloWorker p80"
|
616
616
|
}
|
617
617
|
},
|
618
618
|
{
|
@@ -623,14 +623,14 @@ Resources:
|
|
623
623
|
"type": "metric",
|
624
624
|
"properties": {
|
625
625
|
"metrics": [
|
626
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
626
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "p90", "color": "#d62728" } ]
|
627
627
|
],
|
628
628
|
"view": "singleValue",
|
629
629
|
"region": "us-east-1",
|
630
630
|
"stat": "p90",
|
631
631
|
"period": 60,
|
632
632
|
"sparkline": true,
|
633
|
-
"title": "
|
633
|
+
"title": "HelloWorker p90"
|
634
634
|
}
|
635
635
|
},
|
636
636
|
{
|
@@ -641,14 +641,14 @@ Resources:
|
|
641
641
|
"type": "metric",
|
642
642
|
"properties": {
|
643
643
|
"metrics": [
|
644
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
644
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "Min" } ]
|
645
645
|
],
|
646
646
|
"view": "singleValue",
|
647
647
|
"region": "us-east-1",
|
648
648
|
"stat": "Minimum",
|
649
649
|
"period": 60,
|
650
650
|
"sparkline": true,
|
651
|
-
"title": "
|
651
|
+
"title": "HelloWorker Min"
|
652
652
|
}
|
653
653
|
},
|
654
654
|
{
|
@@ -659,14 +659,14 @@ Resources:
|
|
659
659
|
"type": "metric",
|
660
660
|
"properties": {
|
661
661
|
"metrics": [
|
662
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
662
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "label": "Max", "color": "#d62728" } ]
|
663
663
|
],
|
664
664
|
"view": "singleValue",
|
665
665
|
"region": "us-east-1",
|
666
666
|
"stat": "Maximum",
|
667
667
|
"period": 60,
|
668
668
|
"sparkline": true,
|
669
|
-
"title": "
|
669
|
+
"title": "HelloWorker Max"
|
670
670
|
}
|
671
671
|
},
|
672
672
|
|
@@ -682,12 +682,12 @@ Resources:
|
|
682
682
|
"type": "metric",
|
683
683
|
"properties": {
|
684
684
|
"metrics": [
|
685
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
685
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "HelloWorker" ]
|
686
686
|
],
|
687
687
|
"view": "timeSeries",
|
688
688
|
"stacked": false,
|
689
689
|
"region": "us-east-1",
|
690
|
-
"title": "
|
690
|
+
"title": "HelloWorker Processed Jobs",
|
691
691
|
"period": 60,
|
692
692
|
"stat": "Sum",
|
693
693
|
"legend": {
|
@@ -703,12 +703,12 @@ Resources:
|
|
703
703
|
"type": "metric",
|
704
704
|
"properties": {
|
705
705
|
"metrics": [
|
706
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
706
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "HelloWorker", { "color": "#d62728" }]
|
707
707
|
],
|
708
708
|
"view": "timeSeries",
|
709
709
|
"stacked": false,
|
710
710
|
"region": "us-east-1",
|
711
|
-
"title": "
|
711
|
+
"title": "HelloWorker Failed Jobs",
|
712
712
|
"period": 60,
|
713
713
|
"stat": "Sum",
|
714
714
|
"legend": {
|
@@ -724,7 +724,7 @@ Resources:
|
|
724
724
|
"type": "metric",
|
725
725
|
"properties": {
|
726
726
|
"metrics": [
|
727
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
727
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "stat": "p90", "color": "#d62728" } ],
|
728
728
|
[ "...", { "stat": "p80", "color": "#2ca02c" } ],
|
729
729
|
[ "...", { "stat": "p70", "color": "#ff7f0e" } ],
|
730
730
|
[ "...", { "color": "#1f77b4" } ]
|
@@ -734,7 +734,7 @@ Resources:
|
|
734
734
|
"region": "us-east-1",
|
735
735
|
"stat": "p60",
|
736
736
|
"period": 60,
|
737
|
-
"title": "
|
737
|
+
"title": "HelloWorker Duration Percentiles",
|
738
738
|
"legend": {
|
739
739
|
"position": "right"
|
740
740
|
}
|
@@ -748,14 +748,14 @@ Resources:
|
|
748
748
|
"type": "metric",
|
749
749
|
"properties": {
|
750
750
|
"metrics": [
|
751
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
751
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker" ]
|
752
752
|
],
|
753
753
|
"view": "timeSeries",
|
754
754
|
"stacked": false,
|
755
755
|
"region": "us-east-1",
|
756
756
|
"stat": "Minimum",
|
757
757
|
"period": 60,
|
758
|
-
"title": "
|
758
|
+
"title": "HelloWorker Min",
|
759
759
|
"legend": {
|
760
760
|
"position": "hidden"
|
761
761
|
}
|
@@ -769,14 +769,14 @@ Resources:
|
|
769
769
|
"type": "metric",
|
770
770
|
"properties": {
|
771
771
|
"metrics": [
|
772
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
772
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker", { "color": "#d62728" } ]
|
773
773
|
],
|
774
774
|
"view": "timeSeries",
|
775
775
|
"stacked": false,
|
776
776
|
"region": "us-east-1",
|
777
777
|
"stat": "Maximum",
|
778
778
|
"period": 60,
|
779
|
-
"title": "
|
779
|
+
"title": "HelloWorker Max",
|
780
780
|
"legend": {
|
781
781
|
"position": "hidden"
|
782
782
|
}
|
@@ -1060,7 +1060,7 @@ Resources:
|
|
1060
1060
|
"x": 0,
|
1061
1061
|
"type": "text",
|
1062
1062
|
"properties": {
|
1063
|
-
"markdown": "\n#
|
1063
|
+
"markdown": "\n# AuditWorker\n"
|
1064
1064
|
}
|
1065
1065
|
},
|
1066
1066
|
|
@@ -1073,14 +1073,14 @@ Resources:
|
|
1073
1073
|
"type": "metric",
|
1074
1074
|
"properties": {
|
1075
1075
|
"metrics": [
|
1076
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
1076
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ]
|
1077
1077
|
],
|
1078
1078
|
"view": "singleValue",
|
1079
1079
|
"region": "us-east-1",
|
1080
1080
|
"stat": "Sum",
|
1081
1081
|
"period": 60,
|
1082
1082
|
"sparkline": true,
|
1083
|
-
"title": "
|
1083
|
+
"title": "AuditWorker Processed/Min"
|
1084
1084
|
}
|
1085
1085
|
},
|
1086
1086
|
{
|
@@ -1091,14 +1091,14 @@ Resources:
|
|
1091
1091
|
"type": "metric",
|
1092
1092
|
"properties": {
|
1093
1093
|
"metrics": [
|
1094
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
1094
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ]
|
1095
1095
|
],
|
1096
1096
|
"view": "singleValue",
|
1097
1097
|
"region": "us-east-1",
|
1098
1098
|
"stat": "Sum",
|
1099
1099
|
"period": 60,
|
1100
1100
|
"sparkline": true,
|
1101
|
-
"title": "
|
1101
|
+
"title": "AuditWorker Failed/Min"
|
1102
1102
|
}
|
1103
1103
|
},
|
1104
1104
|
{
|
@@ -1109,14 +1109,14 @@ Resources:
|
|
1109
1109
|
"type": "metric",
|
1110
1110
|
"properties": {
|
1111
1111
|
"metrics": [
|
1112
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1112
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p60", "color": "#1f77b4" } ]
|
1113
1113
|
],
|
1114
1114
|
"view": "singleValue",
|
1115
1115
|
"region": "us-east-1",
|
1116
1116
|
"stat": "p60",
|
1117
1117
|
"period": 60,
|
1118
1118
|
"sparkline": true,
|
1119
|
-
"title": "
|
1119
|
+
"title": "AuditWorker p60"
|
1120
1120
|
}
|
1121
1121
|
},
|
1122
1122
|
{
|
@@ -1127,14 +1127,14 @@ Resources:
|
|
1127
1127
|
"type": "metric",
|
1128
1128
|
"properties": {
|
1129
1129
|
"metrics": [
|
1130
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1130
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p70", "color": "#ff7f0e" } ]
|
1131
1131
|
],
|
1132
1132
|
"view": "singleValue",
|
1133
1133
|
"region": "us-east-1",
|
1134
1134
|
"stat": "p70",
|
1135
1135
|
"period": 60,
|
1136
1136
|
"sparkline": true,
|
1137
|
-
"title": "
|
1137
|
+
"title": "AuditWorker p70"
|
1138
1138
|
}
|
1139
1139
|
},
|
1140
1140
|
{
|
@@ -1145,14 +1145,14 @@ Resources:
|
|
1145
1145
|
"type": "metric",
|
1146
1146
|
"properties": {
|
1147
1147
|
"metrics": [
|
1148
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1148
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p80", "color": "#2ca02c" } ]
|
1149
1149
|
],
|
1150
1150
|
"view": "singleValue",
|
1151
1151
|
"region": "us-east-1",
|
1152
1152
|
"stat": "p80",
|
1153
1153
|
"period": 60,
|
1154
1154
|
"sparkline": true,
|
1155
|
-
"title": "
|
1155
|
+
"title": "AuditWorker p80"
|
1156
1156
|
}
|
1157
1157
|
},
|
1158
1158
|
{
|
@@ -1163,14 +1163,14 @@ Resources:
|
|
1163
1163
|
"type": "metric",
|
1164
1164
|
"properties": {
|
1165
1165
|
"metrics": [
|
1166
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1166
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p90", "color": "#d62728" } ]
|
1167
1167
|
],
|
1168
1168
|
"view": "singleValue",
|
1169
1169
|
"region": "us-east-1",
|
1170
1170
|
"stat": "p90",
|
1171
1171
|
"period": 60,
|
1172
1172
|
"sparkline": true,
|
1173
|
-
"title": "
|
1173
|
+
"title": "AuditWorker p90"
|
1174
1174
|
}
|
1175
1175
|
},
|
1176
1176
|
{
|
@@ -1181,14 +1181,14 @@ Resources:
|
|
1181
1181
|
"type": "metric",
|
1182
1182
|
"properties": {
|
1183
1183
|
"metrics": [
|
1184
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1184
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "Min" } ]
|
1185
1185
|
],
|
1186
1186
|
"view": "singleValue",
|
1187
1187
|
"region": "us-east-1",
|
1188
1188
|
"stat": "Minimum",
|
1189
1189
|
"period": 60,
|
1190
1190
|
"sparkline": true,
|
1191
|
-
"title": "
|
1191
|
+
"title": "AuditWorker Min"
|
1192
1192
|
}
|
1193
1193
|
},
|
1194
1194
|
{
|
@@ -1199,14 +1199,14 @@ Resources:
|
|
1199
1199
|
"type": "metric",
|
1200
1200
|
"properties": {
|
1201
1201
|
"metrics": [
|
1202
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1202
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "Max", "color": "#d62728" } ]
|
1203
1203
|
],
|
1204
1204
|
"view": "singleValue",
|
1205
1205
|
"region": "us-east-1",
|
1206
1206
|
"stat": "Maximum",
|
1207
1207
|
"period": 60,
|
1208
1208
|
"sparkline": true,
|
1209
|
-
"title": "
|
1209
|
+
"title": "AuditWorker Max"
|
1210
1210
|
}
|
1211
1211
|
},
|
1212
1212
|
|
@@ -1222,12 +1222,12 @@ Resources:
|
|
1222
1222
|
"type": "metric",
|
1223
1223
|
"properties": {
|
1224
1224
|
"metrics": [
|
1225
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
1225
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ]
|
1226
1226
|
],
|
1227
1227
|
"view": "timeSeries",
|
1228
1228
|
"stacked": false,
|
1229
1229
|
"region": "us-east-1",
|
1230
|
-
"title": "
|
1230
|
+
"title": "AuditWorker Processed Jobs",
|
1231
1231
|
"period": 60,
|
1232
1232
|
"stat": "Sum",
|
1233
1233
|
"legend": {
|
@@ -1243,12 +1243,12 @@ Resources:
|
|
1243
1243
|
"type": "metric",
|
1244
1244
|
"properties": {
|
1245
1245
|
"metrics": [
|
1246
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
1246
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" }]
|
1247
1247
|
],
|
1248
1248
|
"view": "timeSeries",
|
1249
1249
|
"stacked": false,
|
1250
1250
|
"region": "us-east-1",
|
1251
|
-
"title": "
|
1251
|
+
"title": "AuditWorker Failed Jobs",
|
1252
1252
|
"period": 60,
|
1253
1253
|
"stat": "Sum",
|
1254
1254
|
"legend": {
|
@@ -1264,7 +1264,7 @@ Resources:
|
|
1264
1264
|
"type": "metric",
|
1265
1265
|
"properties": {
|
1266
1266
|
"metrics": [
|
1267
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1267
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "stat": "p90", "color": "#d62728" } ],
|
1268
1268
|
[ "...", { "stat": "p80", "color": "#2ca02c" } ],
|
1269
1269
|
[ "...", { "stat": "p70", "color": "#ff7f0e" } ],
|
1270
1270
|
[ "...", { "color": "#1f77b4" } ]
|
@@ -1274,7 +1274,7 @@ Resources:
|
|
1274
1274
|
"region": "us-east-1",
|
1275
1275
|
"stat": "p60",
|
1276
1276
|
"period": 60,
|
1277
|
-
"title": "
|
1277
|
+
"title": "AuditWorker Duration Percentiles",
|
1278
1278
|
"legend": {
|
1279
1279
|
"position": "right"
|
1280
1280
|
}
|
@@ -1288,14 +1288,14 @@ Resources:
|
|
1288
1288
|
"type": "metric",
|
1289
1289
|
"properties": {
|
1290
1290
|
"metrics": [
|
1291
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1291
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ]
|
1292
1292
|
],
|
1293
1293
|
"view": "timeSeries",
|
1294
1294
|
"stacked": false,
|
1295
1295
|
"region": "us-east-1",
|
1296
1296
|
"stat": "Minimum",
|
1297
1297
|
"period": 60,
|
1298
|
-
"title": "
|
1298
|
+
"title": "AuditWorker Min",
|
1299
1299
|
"legend": {
|
1300
1300
|
"position": "hidden"
|
1301
1301
|
}
|
@@ -1309,14 +1309,14 @@ Resources:
|
|
1309
1309
|
"type": "metric",
|
1310
1310
|
"properties": {
|
1311
1311
|
"metrics": [
|
1312
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1312
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ]
|
1313
1313
|
],
|
1314
1314
|
"view": "timeSeries",
|
1315
1315
|
"stacked": false,
|
1316
1316
|
"region": "us-east-1",
|
1317
1317
|
"stat": "Maximum",
|
1318
1318
|
"period": 60,
|
1319
|
-
"title": "
|
1319
|
+
"title": "AuditWorker Max",
|
1320
1320
|
"legend": {
|
1321
1321
|
"position": "hidden"
|
1322
1322
|
}
|
@@ -1602,11 +1602,11 @@ Resources:
|
|
1602
1602
|
"type": "metric",
|
1603
1603
|
"properties": {
|
1604
1604
|
"metrics": [
|
1605
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
1605
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "HelloWorker" ],
|
1606
1606
|
[ ".", "failed", ".", "." ],
|
1607
1607
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker" ],
|
1608
1608
|
[ ".", "failed", ".", "." ],
|
1609
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
1609
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ],
|
1610
1610
|
[ ".", "failed", ".", "." ],
|
1611
1611
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "SingleThreadAuditWorker" ],
|
1612
1612
|
[ ".", "failed", ".", "." ]
|
@@ -1628,11 +1628,11 @@ Resources:
|
|
1628
1628
|
"type": "metric",
|
1629
1629
|
"properties": {
|
1630
1630
|
"metrics": [
|
1631
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1631
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "HelloWorker" ],
|
1632
1632
|
[ "...", { "stat": "p99" } ],
|
1633
1633
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker" ],
|
1634
1634
|
[ "...", { "stat": "p99" } ],
|
1635
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
1635
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ],
|
1636
1636
|
[ "...", { "stat": "p99" } ],
|
1637
1637
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "SingleThreadAuditWorker" ],
|
1638
1638
|
[ "...", { "stat": "p99" } ]
|
@@ -67,3 +67,9 @@ queues:
|
|
67
67
|
# https://zaccharles.medium.com/reproducing-the-sqs-trigger-and-lambda-concurrency-limit-issue-f4c09d384a18
|
68
68
|
reservedConcurrency: 10
|
69
69
|
|
70
|
+
# Here you can specify a list of worker that you want to monitor closely
|
71
|
+
primaryWorkers:
|
72
|
+
- HelloWorker
|
73
|
+
- GreetingsWorker
|
74
|
+
- AuditWorker
|
75
|
+
- SingleThreadAuditWorker
|
data/lib/funktor/cli/init.rb
CHANGED
@@ -29,8 +29,8 @@ Resources:
|
|
29
29
|
"type": "metric",
|
30
30
|
"properties": {
|
31
31
|
"metrics": [
|
32
|
-
<%-
|
33
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name ==
|
32
|
+
<%- primary_workers.each do |worker_name| -%>
|
33
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
34
34
|
<%- end -%>
|
35
35
|
],
|
36
36
|
"view": "timeSeries",
|
@@ -49,8 +49,8 @@ Resources:
|
|
49
49
|
"type": "metric",
|
50
50
|
"properties": {
|
51
51
|
"metrics": [
|
52
|
-
<%-
|
53
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name ==
|
52
|
+
<%- primary_workers.each do |worker_name| -%>
|
53
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
54
54
|
<%- end -%>
|
55
55
|
],
|
56
56
|
"view": "timeSeries",
|
@@ -71,8 +71,8 @@ Resources:
|
|
71
71
|
"type": "metric",
|
72
72
|
"properties": {
|
73
73
|
"metrics": [
|
74
|
-
<%-
|
75
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name ==
|
74
|
+
<%- primary_workers.each do |worker_name| -%>
|
75
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
76
76
|
<%- end -%>
|
77
77
|
],
|
78
78
|
"view": "timeSeries",
|
@@ -91,8 +91,8 @@ Resources:
|
|
91
91
|
"type": "metric",
|
92
92
|
"properties": {
|
93
93
|
"metrics": [
|
94
|
-
<%-
|
95
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name ==
|
94
|
+
<%- primary_workers.each do |worker_name| -%>
|
95
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]<%= worker_name == primary_workers.last ? "" : "," %>
|
96
96
|
<%- end -%>
|
97
97
|
],
|
98
98
|
"view": "timeSeries",
|
@@ -202,7 +202,7 @@ Resources:
|
|
202
202
|
<% current_y += 1 %>
|
203
203
|
|
204
204
|
|
205
|
-
<%-
|
205
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
206
206
|
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
207
207
|
{ <% "Processed Jobs By Worker" %>
|
208
208
|
"height": 3,
|
@@ -226,7 +226,7 @@ Resources:
|
|
226
226
|
}
|
227
227
|
},
|
228
228
|
<%- end -%>
|
229
|
-
<%- current_y += 3 if (
|
229
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
230
230
|
|
231
231
|
|
232
232
|
{ <% "Failures/Minute Section" %>
|
@@ -242,7 +242,7 @@ Resources:
|
|
242
242
|
<% current_y += 1 %>
|
243
243
|
|
244
244
|
|
245
|
-
<%-
|
245
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
246
246
|
<%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
|
247
247
|
{ <% "Failed Jobs By Worker" %>
|
248
248
|
"height": 3,
|
@@ -266,7 +266,7 @@ Resources:
|
|
266
266
|
}
|
267
267
|
},
|
268
268
|
<%- end -%>
|
269
|
-
<%- current_y += 3 if (
|
269
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
270
270
|
|
271
271
|
|
272
272
|
{ <% "Duration Percentiles Section" %>
|
@@ -282,7 +282,7 @@ Resources:
|
|
282
282
|
<% current_y += 1 %>
|
283
283
|
|
284
284
|
|
285
|
-
<%-
|
285
|
+
<%- primary_workers.each_with_index do |worker_name, index| -%>
|
286
286
|
<%- current_y += 4 if (index > 0 && (index % 6) == 0) %>
|
287
287
|
{ <% "Job Duration By Worker" %>
|
288
288
|
"height": 4,
|
@@ -309,10 +309,10 @@ Resources:
|
|
309
309
|
}
|
310
310
|
},
|
311
311
|
<%- end -%>
|
312
|
-
<%- current_y += 3 if (
|
312
|
+
<%- current_y += 3 if (primary_workers.count - 1) % 6 != 0 %>
|
313
313
|
|
314
314
|
|
315
|
-
<%-
|
315
|
+
<%- primary_workers.each do |worker_name| -%>
|
316
316
|
{ <% "Worker" %>
|
317
317
|
"height": 1,
|
318
318
|
"width": 24,
|
@@ -593,9 +593,9 @@ Resources:
|
|
593
593
|
"type": "metric",
|
594
594
|
"properties": {
|
595
595
|
"metrics": [
|
596
|
-
<%-
|
596
|
+
<%- primary_workers.each do |worker_name| -%>
|
597
597
|
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ],
|
598
|
-
[ ".", "failed", ".", "." ]<%= worker_name ==
|
598
|
+
[ ".", "failed", ".", "." ]<%= worker_name == primary_workers.last ? "" : "," %>
|
599
599
|
<%- end -%>
|
600
600
|
],
|
601
601
|
"view": "timeSeries",
|
@@ -615,9 +615,9 @@ Resources:
|
|
615
615
|
"type": "metric",
|
616
616
|
"properties": {
|
617
617
|
"metrics": [
|
618
|
-
<%-
|
618
|
+
<%- primary_workers.each do |worker_name| -%>
|
619
619
|
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ],
|
620
|
-
[ "...", { "stat": "p99" } ]<%= worker_name ==
|
620
|
+
[ "...", { "stat": "p99" } ]<%= worker_name == primary_workers.last ? "" : "," %>
|
621
621
|
<%- end -%>
|
622
622
|
],
|
623
623
|
"view": "timeSeries",
|
@@ -67,3 +67,7 @@ queues:
|
|
67
67
|
# https://zaccharles.medium.com/reproducing-the-sqs-trigger-and-lambda-concurrency-limit-issue-f4c09d384a18
|
68
68
|
reservedConcurrency: 10
|
69
69
|
|
70
|
+
# Here you can specify a list of worker that you want to monitor closely.
|
71
|
+
# If you don't specify a list we'll set up detailed monitoring for all workers.
|
72
|
+
#primaryWorkers:
|
73
|
+
#- HelloWorker
|
data/lib/funktor/version.rb
CHANGED