From 84af8f3f72a13bf9b3c33d94470b7e006b8b162c Mon Sep 17 00:00:00 2001 From: "nicolas.bazinet" Date: Fri, 6 Dec 2024 10:14:03 -0500 Subject: [PATCH] feat: Add support for Redshift-Serverless Signed-off-by: nickbazinet --- README.md | 1 + examples/redshift-serverless.yml | 21 +++++++++++++++++++++ pkg/config/services.go | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 examples/redshift-serverless.yml diff --git a/README.md b/README.md index d715fbabd..57d55086d 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ Only the latest version gets security updates. We won't support older versions. * `AWS/QuickSight` - QuickSight (Business Intelligence) * `AWS/RDS` - Relational Database Service * `AWS/Redshift` - Redshift Database + * `AWS/Redshift-Serverless` - Redshift Serverless * `AWS/Route53` - Route53 Health Checks * `AWS/Route53Resolver` - Route53 Resolver * `AWS/RUM` - Real User Monitoring diff --git a/examples/redshift-serverless.yml b/examples/redshift-serverless.yml new file mode 100644 index 000000000..d839033f2 --- /dev/null +++ b/examples/redshift-serverless.yml @@ -0,0 +1,21 @@ +apiVersion: v1alpha1 +discovery: + jobs: + - type: AWS/Redshift-Serverless + regions: + - us-east-1 + period: 300 + length: 300 + metrics: + - name: DatabaseConnections + statistics: [Average] + - name: ComputeCapacity + statistics: [Average] + - name: QueryRuntimeBreakdown + statistics: [Average] + - name: QueriesRunning + statistics: [Average] + - name: QueriesQueued + statistics: [Average] + - name: QueryDuration + statistics: [Average] diff --git a/pkg/config/services.go b/pkg/config/services.go index 3361e72fe..7eb840749 100644 --- a/pkg/config/services.go +++ b/pkg/config/services.go @@ -760,6 +760,13 @@ var SupportedServices = serviceConfigs{ regexp.MustCompile(":cluster:(?P[^/]+)"), }, }, + { + Namespace: "AWS/Redshift-Serverless", + Alias: "redshift", + ResourceFilters: []*string{ + aws.String("redshift-serverless:namespace"), + }, + }, { Namespace: "AWS/Route53Resolver", Alias: "route53-resolver",