funktor 0.7.15 → 0.7.16
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 +64 -64
- data/funktor-testapp/funktor_init.yml +3 -3
- data/lib/funktor/cli/init.rb +16 -0
- data/lib/funktor/cli/templates/funktor_config/resources/cloudwatch_dashboard.yml +3 -3
- 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: aca9e6195d625df301a034c0a4c724763a122903a7eb10bed8aa0b3181fee566
|
4
|
+
data.tar.gz: e6c065b2b86cb1883d83cea3ff37269dc12e5589cd486e8c17d39adbfca68e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153fced00bb5ec5407396d777c924cc0ddd4b87586252c60037cb1c3d4fc9a5ebdb4be52a479a7700bd8891e4c90515243c0ca94ff0b6a730695573a33a12498
|
7
|
+
data.tar.gz: e72cb391c79896aa41246497f5bd86e4f8d7ccc020206b98d9212859cc62ec105b470b7860a6a50bc6955c13321e344aeca4d5f7c5212e2bf352aede6ecf4944
|
data/Gemfile.lock
CHANGED
@@ -64,17 +64,17 @@ Resources:
|
|
64
64
|
"type": "metric",
|
65
65
|
"properties": {
|
66
66
|
"metrics": [
|
67
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
68
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
69
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
70
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
67
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker", { "color": "#2ca02c" } ],
|
68
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ],
|
69
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
70
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
71
71
|
],
|
72
72
|
"view": "singleValue",
|
73
73
|
"region": "us-east-1",
|
74
74
|
"stat": "Sum",
|
75
75
|
"period": 60,
|
76
76
|
"sparkline": true,
|
77
|
-
"title": "
|
77
|
+
"title": "AuditWorker"
|
78
78
|
}
|
79
79
|
},
|
80
80
|
|
@@ -86,17 +86,17 @@ Resources:
|
|
86
86
|
"type": "metric",
|
87
87
|
"properties": {
|
88
88
|
"metrics": [
|
89
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
90
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
91
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
92
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
89
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker", { "color": "#2ca02c" } ],
|
90
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker", { "color": "#d62728" } ],
|
91
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p90", "color": "#ff7f0e", "stat": "p90" } ],
|
92
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p60", "color": "#1f77b4", "stat": "p60" } ]
|
93
93
|
],
|
94
94
|
"view": "singleValue",
|
95
95
|
"region": "us-east-1",
|
96
96
|
"stat": "Sum",
|
97
97
|
"period": 60,
|
98
98
|
"sparkline": true,
|
99
|
-
"title": "
|
99
|
+
"title": "GreetingsWorker"
|
100
100
|
}
|
101
101
|
},
|
102
102
|
|
@@ -401,7 +401,7 @@ Resources:
|
|
401
401
|
"x": 0,
|
402
402
|
"type": "text",
|
403
403
|
"properties": {
|
404
|
-
"markdown": "\n#
|
404
|
+
"markdown": "\n# AuditWorker\n"
|
405
405
|
}
|
406
406
|
},
|
407
407
|
|
@@ -414,14 +414,14 @@ Resources:
|
|
414
414
|
"type": "metric",
|
415
415
|
"properties": {
|
416
416
|
"metrics": [
|
417
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
417
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ]
|
418
418
|
],
|
419
419
|
"view": "singleValue",
|
420
420
|
"region": "us-east-1",
|
421
421
|
"stat": "Sum",
|
422
422
|
"period": 60,
|
423
423
|
"sparkline": true,
|
424
|
-
"title": "
|
424
|
+
"title": "AuditWorker Processed/Min"
|
425
425
|
}
|
426
426
|
},
|
427
427
|
{
|
@@ -432,14 +432,14 @@ Resources:
|
|
432
432
|
"type": "metric",
|
433
433
|
"properties": {
|
434
434
|
"metrics": [
|
435
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
435
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ]
|
436
436
|
],
|
437
437
|
"view": "singleValue",
|
438
438
|
"region": "us-east-1",
|
439
439
|
"stat": "Sum",
|
440
440
|
"period": 60,
|
441
441
|
"sparkline": true,
|
442
|
-
"title": "
|
442
|
+
"title": "AuditWorker Failed/Min"
|
443
443
|
}
|
444
444
|
},
|
445
445
|
{
|
@@ -450,14 +450,14 @@ Resources:
|
|
450
450
|
"type": "metric",
|
451
451
|
"properties": {
|
452
452
|
"metrics": [
|
453
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
453
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p60", "color": "#1f77b4" } ]
|
454
454
|
],
|
455
455
|
"view": "singleValue",
|
456
456
|
"region": "us-east-1",
|
457
457
|
"stat": "p60",
|
458
458
|
"period": 60,
|
459
459
|
"sparkline": true,
|
460
|
-
"title": "
|
460
|
+
"title": "AuditWorker p60"
|
461
461
|
}
|
462
462
|
},
|
463
463
|
{
|
@@ -468,14 +468,14 @@ Resources:
|
|
468
468
|
"type": "metric",
|
469
469
|
"properties": {
|
470
470
|
"metrics": [
|
471
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
471
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p70", "color": "#ff7f0e" } ]
|
472
472
|
],
|
473
473
|
"view": "singleValue",
|
474
474
|
"region": "us-east-1",
|
475
475
|
"stat": "p70",
|
476
476
|
"period": 60,
|
477
477
|
"sparkline": true,
|
478
|
-
"title": "
|
478
|
+
"title": "AuditWorker p70"
|
479
479
|
}
|
480
480
|
},
|
481
481
|
{
|
@@ -486,14 +486,14 @@ Resources:
|
|
486
486
|
"type": "metric",
|
487
487
|
"properties": {
|
488
488
|
"metrics": [
|
489
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
489
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p80", "color": "#2ca02c" } ]
|
490
490
|
],
|
491
491
|
"view": "singleValue",
|
492
492
|
"region": "us-east-1",
|
493
493
|
"stat": "p80",
|
494
494
|
"period": 60,
|
495
495
|
"sparkline": true,
|
496
|
-
"title": "
|
496
|
+
"title": "AuditWorker p80"
|
497
497
|
}
|
498
498
|
},
|
499
499
|
{
|
@@ -504,14 +504,14 @@ Resources:
|
|
504
504
|
"type": "metric",
|
505
505
|
"properties": {
|
506
506
|
"metrics": [
|
507
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
507
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "p90", "color": "#d62728" } ]
|
508
508
|
],
|
509
509
|
"view": "singleValue",
|
510
510
|
"region": "us-east-1",
|
511
511
|
"stat": "p90",
|
512
512
|
"period": 60,
|
513
513
|
"sparkline": true,
|
514
|
-
"title": "
|
514
|
+
"title": "AuditWorker p90"
|
515
515
|
}
|
516
516
|
},
|
517
517
|
{
|
@@ -522,14 +522,14 @@ Resources:
|
|
522
522
|
"type": "metric",
|
523
523
|
"properties": {
|
524
524
|
"metrics": [
|
525
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
525
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "Min" } ]
|
526
526
|
],
|
527
527
|
"view": "singleValue",
|
528
528
|
"region": "us-east-1",
|
529
529
|
"stat": "Minimum",
|
530
530
|
"period": 60,
|
531
531
|
"sparkline": true,
|
532
|
-
"title": "
|
532
|
+
"title": "AuditWorker Min"
|
533
533
|
}
|
534
534
|
},
|
535
535
|
{
|
@@ -540,14 +540,14 @@ Resources:
|
|
540
540
|
"type": "metric",
|
541
541
|
"properties": {
|
542
542
|
"metrics": [
|
543
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
543
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "label": "Max", "color": "#d62728" } ]
|
544
544
|
],
|
545
545
|
"view": "singleValue",
|
546
546
|
"region": "us-east-1",
|
547
547
|
"stat": "Maximum",
|
548
548
|
"period": 60,
|
549
549
|
"sparkline": true,
|
550
|
-
"title": "
|
550
|
+
"title": "AuditWorker Max"
|
551
551
|
}
|
552
552
|
},
|
553
553
|
|
@@ -563,12 +563,12 @@ Resources:
|
|
563
563
|
"type": "metric",
|
564
564
|
"properties": {
|
565
565
|
"metrics": [
|
566
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
566
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "AuditWorker" ]
|
567
567
|
],
|
568
568
|
"view": "timeSeries",
|
569
569
|
"stacked": false,
|
570
570
|
"region": "us-east-1",
|
571
|
-
"title": "
|
571
|
+
"title": "AuditWorker Processed Jobs",
|
572
572
|
"period": 60,
|
573
573
|
"stat": "Sum",
|
574
574
|
"legend": {
|
@@ -584,12 +584,12 @@ Resources:
|
|
584
584
|
"type": "metric",
|
585
585
|
"properties": {
|
586
586
|
"metrics": [
|
587
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
587
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "AuditWorker", { "color": "#d62728" }]
|
588
588
|
],
|
589
589
|
"view": "timeSeries",
|
590
590
|
"stacked": false,
|
591
591
|
"region": "us-east-1",
|
592
|
-
"title": "
|
592
|
+
"title": "AuditWorker Failed Jobs",
|
593
593
|
"period": 60,
|
594
594
|
"stat": "Sum",
|
595
595
|
"legend": {
|
@@ -605,7 +605,7 @@ 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", "AuditWorker", { "stat": "p90", "color": "#d62728" } ],
|
609
609
|
[ "...", { "stat": "p80", "color": "#2ca02c" } ],
|
610
610
|
[ "...", { "stat": "p70", "color": "#ff7f0e" } ],
|
611
611
|
[ "...", { "color": "#1f77b4" } ]
|
@@ -615,7 +615,7 @@ Resources:
|
|
615
615
|
"region": "us-east-1",
|
616
616
|
"stat": "p60",
|
617
617
|
"period": 60,
|
618
|
-
"title": "
|
618
|
+
"title": "AuditWorker Duration Percentiles",
|
619
619
|
"legend": {
|
620
620
|
"position": "right"
|
621
621
|
}
|
@@ -629,14 +629,14 @@ Resources:
|
|
629
629
|
"type": "metric",
|
630
630
|
"properties": {
|
631
631
|
"metrics": [
|
632
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
632
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker" ]
|
633
633
|
],
|
634
634
|
"view": "timeSeries",
|
635
635
|
"stacked": false,
|
636
636
|
"region": "us-east-1",
|
637
637
|
"stat": "Minimum",
|
638
638
|
"period": 60,
|
639
|
-
"title": "
|
639
|
+
"title": "AuditWorker Min",
|
640
640
|
"legend": {
|
641
641
|
"position": "hidden"
|
642
642
|
}
|
@@ -650,14 +650,14 @@ Resources:
|
|
650
650
|
"type": "metric",
|
651
651
|
"properties": {
|
652
652
|
"metrics": [
|
653
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
653
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "AuditWorker", { "color": "#d62728" } ]
|
654
654
|
],
|
655
655
|
"view": "timeSeries",
|
656
656
|
"stacked": false,
|
657
657
|
"region": "us-east-1",
|
658
658
|
"stat": "Maximum",
|
659
659
|
"period": 60,
|
660
|
-
"title": "
|
660
|
+
"title": "AuditWorker Max",
|
661
661
|
"legend": {
|
662
662
|
"position": "hidden"
|
663
663
|
}
|
@@ -671,7 +671,7 @@ Resources:
|
|
671
671
|
"x": 0,
|
672
672
|
"type": "text",
|
673
673
|
"properties": {
|
674
|
-
"markdown": "\n#
|
674
|
+
"markdown": "\n# GreetingsWorker\n"
|
675
675
|
}
|
676
676
|
},
|
677
677
|
|
@@ -684,14 +684,14 @@ Resources:
|
|
684
684
|
"type": "metric",
|
685
685
|
"properties": {
|
686
686
|
"metrics": [
|
687
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
687
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker" ]
|
688
688
|
],
|
689
689
|
"view": "singleValue",
|
690
690
|
"region": "us-east-1",
|
691
691
|
"stat": "Sum",
|
692
692
|
"period": 60,
|
693
693
|
"sparkline": true,
|
694
|
-
"title": "
|
694
|
+
"title": "GreetingsWorker Processed/Min"
|
695
695
|
}
|
696
696
|
},
|
697
697
|
{
|
@@ -702,14 +702,14 @@ Resources:
|
|
702
702
|
"type": "metric",
|
703
703
|
"properties": {
|
704
704
|
"metrics": [
|
705
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
705
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker", { "color": "#d62728" } ]
|
706
706
|
],
|
707
707
|
"view": "singleValue",
|
708
708
|
"region": "us-east-1",
|
709
709
|
"stat": "Sum",
|
710
710
|
"period": 60,
|
711
711
|
"sparkline": true,
|
712
|
-
"title": "
|
712
|
+
"title": "GreetingsWorker Failed/Min"
|
713
713
|
}
|
714
714
|
},
|
715
715
|
{
|
@@ -720,14 +720,14 @@ Resources:
|
|
720
720
|
"type": "metric",
|
721
721
|
"properties": {
|
722
722
|
"metrics": [
|
723
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
723
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p60", "color": "#1f77b4" } ]
|
724
724
|
],
|
725
725
|
"view": "singleValue",
|
726
726
|
"region": "us-east-1",
|
727
727
|
"stat": "p60",
|
728
728
|
"period": 60,
|
729
729
|
"sparkline": true,
|
730
|
-
"title": "
|
730
|
+
"title": "GreetingsWorker p60"
|
731
731
|
}
|
732
732
|
},
|
733
733
|
{
|
@@ -738,14 +738,14 @@ Resources:
|
|
738
738
|
"type": "metric",
|
739
739
|
"properties": {
|
740
740
|
"metrics": [
|
741
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
741
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p70", "color": "#ff7f0e" } ]
|
742
742
|
],
|
743
743
|
"view": "singleValue",
|
744
744
|
"region": "us-east-1",
|
745
745
|
"stat": "p70",
|
746
746
|
"period": 60,
|
747
747
|
"sparkline": true,
|
748
|
-
"title": "
|
748
|
+
"title": "GreetingsWorker p70"
|
749
749
|
}
|
750
750
|
},
|
751
751
|
{
|
@@ -756,14 +756,14 @@ Resources:
|
|
756
756
|
"type": "metric",
|
757
757
|
"properties": {
|
758
758
|
"metrics": [
|
759
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
759
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p80", "color": "#2ca02c" } ]
|
760
760
|
],
|
761
761
|
"view": "singleValue",
|
762
762
|
"region": "us-east-1",
|
763
763
|
"stat": "p80",
|
764
764
|
"period": 60,
|
765
765
|
"sparkline": true,
|
766
|
-
"title": "
|
766
|
+
"title": "GreetingsWorker p80"
|
767
767
|
}
|
768
768
|
},
|
769
769
|
{
|
@@ -774,14 +774,14 @@ Resources:
|
|
774
774
|
"type": "metric",
|
775
775
|
"properties": {
|
776
776
|
"metrics": [
|
777
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
777
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "p90", "color": "#d62728" } ]
|
778
778
|
],
|
779
779
|
"view": "singleValue",
|
780
780
|
"region": "us-east-1",
|
781
781
|
"stat": "p90",
|
782
782
|
"period": 60,
|
783
783
|
"sparkline": true,
|
784
|
-
"title": "
|
784
|
+
"title": "GreetingsWorker p90"
|
785
785
|
}
|
786
786
|
},
|
787
787
|
{
|
@@ -792,14 +792,14 @@ Resources:
|
|
792
792
|
"type": "metric",
|
793
793
|
"properties": {
|
794
794
|
"metrics": [
|
795
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
795
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "Min" } ]
|
796
796
|
],
|
797
797
|
"view": "singleValue",
|
798
798
|
"region": "us-east-1",
|
799
799
|
"stat": "Minimum",
|
800
800
|
"period": 60,
|
801
801
|
"sparkline": true,
|
802
|
-
"title": "
|
802
|
+
"title": "GreetingsWorker Min"
|
803
803
|
}
|
804
804
|
},
|
805
805
|
{
|
@@ -810,14 +810,14 @@ Resources:
|
|
810
810
|
"type": "metric",
|
811
811
|
"properties": {
|
812
812
|
"metrics": [
|
813
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
813
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "label": "Max", "color": "#d62728" } ]
|
814
814
|
],
|
815
815
|
"view": "singleValue",
|
816
816
|
"region": "us-east-1",
|
817
817
|
"stat": "Maximum",
|
818
818
|
"period": 60,
|
819
819
|
"sparkline": true,
|
820
|
-
"title": "
|
820
|
+
"title": "GreetingsWorker Max"
|
821
821
|
}
|
822
822
|
},
|
823
823
|
|
@@ -833,12 +833,12 @@ Resources:
|
|
833
833
|
"type": "metric",
|
834
834
|
"properties": {
|
835
835
|
"metrics": [
|
836
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "
|
836
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "GreetingsWorker" ]
|
837
837
|
],
|
838
838
|
"view": "timeSeries",
|
839
839
|
"stacked": false,
|
840
840
|
"region": "us-east-1",
|
841
|
-
"title": "
|
841
|
+
"title": "GreetingsWorker Processed Jobs",
|
842
842
|
"period": 60,
|
843
843
|
"stat": "Sum",
|
844
844
|
"legend": {
|
@@ -854,12 +854,12 @@ Resources:
|
|
854
854
|
"type": "metric",
|
855
855
|
"properties": {
|
856
856
|
"metrics": [
|
857
|
-
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "
|
857
|
+
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "GreetingsWorker", { "color": "#d62728" }]
|
858
858
|
],
|
859
859
|
"view": "timeSeries",
|
860
860
|
"stacked": false,
|
861
861
|
"region": "us-east-1",
|
862
|
-
"title": "
|
862
|
+
"title": "GreetingsWorker Failed Jobs",
|
863
863
|
"period": 60,
|
864
864
|
"stat": "Sum",
|
865
865
|
"legend": {
|
@@ -875,7 +875,7 @@ Resources:
|
|
875
875
|
"type": "metric",
|
876
876
|
"properties": {
|
877
877
|
"metrics": [
|
878
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
878
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "stat": "p90", "color": "#d62728" } ],
|
879
879
|
[ "...", { "stat": "p80", "color": "#2ca02c" } ],
|
880
880
|
[ "...", { "stat": "p70", "color": "#ff7f0e" } ],
|
881
881
|
[ "...", { "color": "#1f77b4" } ]
|
@@ -885,7 +885,7 @@ Resources:
|
|
885
885
|
"region": "us-east-1",
|
886
886
|
"stat": "p60",
|
887
887
|
"period": 60,
|
888
|
-
"title": "
|
888
|
+
"title": "GreetingsWorker Duration Percentiles",
|
889
889
|
"legend": {
|
890
890
|
"position": "right"
|
891
891
|
}
|
@@ -899,14 +899,14 @@ Resources:
|
|
899
899
|
"type": "metric",
|
900
900
|
"properties": {
|
901
901
|
"metrics": [
|
902
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
902
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker" ]
|
903
903
|
],
|
904
904
|
"view": "timeSeries",
|
905
905
|
"stacked": false,
|
906
906
|
"region": "us-east-1",
|
907
907
|
"stat": "Minimum",
|
908
908
|
"period": 60,
|
909
|
-
"title": "
|
909
|
+
"title": "GreetingsWorker Min",
|
910
910
|
"legend": {
|
911
911
|
"position": "hidden"
|
912
912
|
}
|
@@ -920,14 +920,14 @@ Resources:
|
|
920
920
|
"type": "metric",
|
921
921
|
"properties": {
|
922
922
|
"metrics": [
|
923
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "
|
923
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "GreetingsWorker", { "color": "#d62728" } ]
|
924
924
|
],
|
925
925
|
"view": "timeSeries",
|
926
926
|
"stacked": false,
|
927
927
|
"region": "us-east-1",
|
928
928
|
"stat": "Maximum",
|
929
929
|
"period": 60,
|
930
|
-
"title": "
|
930
|
+
"title": "GreetingsWorker Max",
|
931
931
|
"legend": {
|
932
932
|
"position": "hidden"
|
933
933
|
}
|
data/lib/funktor/cli/init.rb
CHANGED
@@ -141,6 +141,22 @@ module Funktor
|
|
141
141
|
|
142
142
|
private
|
143
143
|
|
144
|
+
def prioritized_workers
|
145
|
+
if primary_workers == app_worker_names
|
146
|
+
app_worker_names
|
147
|
+
else
|
148
|
+
primary_workers + non_primary_workers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
def non_primary_workers
|
153
|
+
if primary_workers == app_worker_names
|
154
|
+
app_worker_names
|
155
|
+
else
|
156
|
+
app_worker_names - primary_workers
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
144
160
|
def primary_workers
|
145
161
|
funktor_config["primaryWorkers"] || app_worker_names
|
146
162
|
end
|
@@ -33,7 +33,7 @@ Resources:
|
|
33
33
|
},
|
34
34
|
<% current_y += 1 %>
|
35
35
|
|
36
|
-
<%-
|
36
|
+
<%- prioritized_workers.each_with_index do |worker_name, index| -%>
|
37
37
|
<%- current_y += 9 if (index > 0 && (index % 6) == 0) %>
|
38
38
|
{ <% "Worker Overview" %>
|
39
39
|
"height": 9,
|
@@ -57,10 +57,10 @@ Resources:
|
|
57
57
|
}
|
58
58
|
},
|
59
59
|
<%- end -%>
|
60
|
-
<%#- current_y += 9 if (
|
60
|
+
<%#- current_y += 9 if (prioritized_workers.count - 1) % 3 != 0 %>
|
61
61
|
<%- current_y += 9 %>
|
62
62
|
|
63
|
-
<%-
|
63
|
+
<%- prioritized_workers.each do |worker_name| -%>
|
64
64
|
{ <% "Worker" %>
|
65
65
|
"height": 1,
|
66
66
|
"width": 24,
|
data/lib/funktor/version.rb
CHANGED