Skip to content

Commit 3289869

Browse files
matthewstokes01Matt Stokes
authored andcommitted
Add ECS Managed Scaling Metrics
Signed-off-by: Matt Stokes <mstokes@roku.com>
1 parent c13b3fb commit 3289869

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

examples/ecs-managed-scaling.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1alpha1
2+
discovery:
3+
jobs:
4+
- type: AWS/ECS/ManagedScaling
5+
regions:
6+
- us-east-1
7+
period: 300
8+
length: 300
9+
metrics:
10+
- name: CapacityProviderReservation
11+
statistics: [Average, Minimum, Maximum]

pkg/config/services.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,16 @@ var SupportedServices = serviceConfigs{
425425
regexp.MustCompile(":service/(?P<ClusterName>[^/]+)/(?P<ServiceName>[^/]+)$"),
426426
},
427427
},
428+
{
429+
Namespace: "AWS/ECS/ManagedScaling",
430+
Alias: "ecs-managedscaling",
431+
ResourceFilters: []*string{
432+
aws.String("ecs:cluster"),
433+
},
434+
DimensionRegexps: []*regexp.Regexp{
435+
regexp.MustCompile(":cluster/(?P<ClusterName>[^/]+)$"),
436+
},
437+
},
428438
{
429439
Namespace: "ContainerInsights",
430440
Alias: "containerinsights",

0 commit comments

Comments
 (0)