Skip to content

Commit

Permalink
Add auto-discovery for Directory Services(MicrosoftAD) #757
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Mustaev <[email protected]>
  • Loading branch information
RuslanMustaev committed Nov 17, 2024
1 parent 26c8bf8 commit f835fdd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Only the latest version gets security updates. We won't support older versions.
* `AWS/Cognito` - Cognito
* `AWS/DataSync` - DataSync
* `AWS/DDoSProtection` - Distributed Denial of Service (DDoS) protection service
* `AWS/DirectoryService` - Directory Services (MicrosoftAD)
* `AWS/DMS` - Database Migration Service
* `AWS/DocDB` - DocumentDB (with MongoDB compatibility)
* `AWS/DX` - Direct Connect
Expand Down
19 changes: 19 additions & 0 deletions examples/ds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1alpha1
discovery:
jobs:
- type: AWS/DirectoryService
regions:
- us-east-1
period: 300
length: 300
metrics:
- name: "Bytes Sent/sec"
statistics: [Average]
- name: "% Processor Time"
statistics: [Average]
- name: "DS Directory Searches/Sec"
statistics: [Average]
- name: "Database Cache % Hit"
statistics: [Average]
- name: "% Free Space"
statistics: [Sum]
10 changes: 10 additions & 0 deletions pkg/config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ var SupportedServices = serviceConfigs{
regexp.MustCompile(":agent/(?P<AgentId>[^/]+)"),
},
},
{
Namespace: "AWS/DirectoryService",
Alias: "ds",
ResourceFilters: []*string{
aws.String("ds:directory"),
},
DimensionRegexps: []*regexp.Regexp{
regexp.MustCompile(":directory/(?P<Directory_ID>[^/]+)"),
},
},
{
Namespace: "AWS/DMS",
Alias: "dms",
Expand Down

0 comments on commit f835fdd

Please sign in to comment.