Skip to content

Commit 4becfcd

Browse files
committed
Add auto-discovery for Directory Services(MicrosoftAD) #757
Signed-off-by: Ruslan Mustaev <ruslan.mustaev@orionhealth.com>
1 parent 2068660 commit 4becfcd

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Only the latest version gets security updates. We won't support older versions.
6363
* `AWS/Cognito` - Cognito
6464
* `AWS/DataSync` - DataSync
6565
* `AWS/DDoSProtection` - Distributed Denial of Service (DDoS) protection service
66+
* `AWS/DirectoryService` - Directory Services (MicrosoftAD)
6667
* `AWS/DMS` - Database Migration Service
6768
* `AWS/DocDB` - DocumentDB (with MongoDB compatibility)
6869
* `AWS/DX` - Direct Connect

examples/ds.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1alpha1
2+
discovery:
3+
jobs:
4+
- type: AWS/DirectoryService
5+
regions:
6+
- us-east-1
7+
period: 300
8+
length: 300
9+
metrics:
10+
- name: "Bytes Sent/sec"
11+
statistics: [Average]
12+
- name: "% Processor Time"
13+
statistics: [Average]
14+
- name: "DS Directory Searches/Sec"
15+
statistics: [Average]
16+
- name: "Database Cache % Hit"
17+
statistics: [Average]
18+
- name: "% Free Space"
19+
statistics: [Sum]

pkg/config/services.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,16 @@ var SupportedServices = serviceConfigs{
243243
regexp.MustCompile(":agent/(?P<AgentId>[^/]+)"),
244244
},
245245
},
246+
{
247+
Namespace: "AWS/DirectoryService",
248+
Alias: "ds",
249+
ResourceFilters: []*string{
250+
aws.String("ds:directory"),
251+
},
252+
DimensionRegexps: []*regexp.Regexp{
253+
regexp.MustCompile(":directory/(?P<Directory_ID>[^/]+)"),
254+
},
255+
},
246256
{
247257
Namespace: "AWS/DMS",
248258
Alias: "dms",

0 commit comments

Comments
 (0)