Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Only the latest version gets security updates. We won't support older versions.
* `AWS/ClientVPN` - Client-based VPN
* `AWS/CloudFront` - Cloud Front
* `AWS/Cognito` - Cognito
* `AWS/CodeBuild` - Code Build
* `AWS/DataSync` - DataSync
* `AWS/DDoSProtection` - Distributed Denial of Service (DDoS) protection service
* `AWS/DirectoryService` - Directory Services (MicrosoftAD)
Expand Down
18 changes: 18 additions & 0 deletions examples/codebuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: v1alpha1
discovery:
jobs:
- type: AWS/CodeBuild
regions:
- us-east-1
period: 300
length: 300
metrics:
- name: SucceededBuilds
statistics: [Sum]
- name: FailedBuilds
statistics: [Sum]
- name: Builds
statistics: [Sum]
- name: Duration
statistics: [Average, Maximum, Minimum, p90]
12 changes: 12 additions & 0 deletions pkg/config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@ var SupportedServices = serviceConfigs{
regexp.MustCompile("keyspace/(?P<Keyspace>[^/]+)/"),
},
},
{
Namespace: "AWS/CodeBuild",
Alias: "codebuild",
ResourceFilters: []*string{
aws.String("codebuild:build"),
aws.String("codebuild:project"),
},
DimensionRegexps: []*regexp.Regexp{
regexp.MustCompile("project/(?P<ProjectName>[^/]+)"),
regexp.MustCompile("build/(?P<ProjectName>[^/]+):(?P<BuildId>[^/]+)"),
},
},
{
Namespace: "AWS/CloudFront",
Alias: "cloudfront",
Expand Down