Configuration Manual for the "AWS-Neptune Cluster Collection" Collector
Before reading this article, please first read:
Before using this collector, you must install the 'Integration Core Package' and its associated third-party dependency packages
1. Configuration Structure
The configuration structure of this collector is as follows:
Field |
Type |
Required |
Description |
regions |
list |
Required |
List of regions to collect data from |
regions[#] |
str |
Required |
Region ID. For example: 'cn-north-1' Refer to the appendix for the complete list |
2. Configuration Example
Collecting instance data from the Beijing region
Python |
---|
| collector_configs = {
'regions': ['cn-north-1' ]
}
|
After data is synchronized successfully, it can be viewed in the "Infrastructure - Resource Catalog" section of {{( brand_name }}}.
Example of reported data:
JSON |
---|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | {
"measurement": "aws_neptune_cluster",
"tags": {
"DBClusterArn" : "arn:aws-cn:rds:cn-north-1::cluster:",
"DBClusterIdentifier" : "hn-test",
"DBSubnetGroup" : "default-vpc-",
"DbClusterResourceId" : "cluster-JM35ME",
"Engine" : "neptune",
"EngineVersion" : "1.2.0.2",
"HostedZoneId" : "Z027FQJY5",
"MasterUsername" : "admin",
"RegionId" : "cn-north-1",
"Status" : "available",
"name" : "hn-test"
},
"fields": {
"AvailabilityZones" : "[\"cn-north-1a\", \"cn-north-1b\", \"cn-north-1d\"]",
"BackupRetentionPeriod" : 1,
"ClusterCreateTime" : "2023-08-18T09:23:29.611000Z",
"CopyTagsToSnapshot" : false,
"DBClusterMembers" : "[{\"DBClusterParameterGroupStatus\": \"in-sync\", \"DBInstanceIdentifier\": \"hn-test-instance-1\", \"IsClusterWriter\": true, \"PromotionTier\": 1}]",
"DBClusterOptionGroupMemberships": "null",
"DBClusterParameterGroup" : "default.neptune1.2",
"EarliestRestorableTime" : "2023-08-18T09:24:24.384000Z",
"Endpoint" : ".neptune.cn-north-1.amazonaws.com.cn",
"LatestRestorableTime" : "2023-08-18T09:51:15.785000Z",
"MultiAZ" : false,
"PendingModifiedValues" : "null",
"Port" : 8182,
"PreferredBackupWindow" : "11:55-12:25",
"PreferredMaintenanceWindow" : "wed:08:13-wed:08:43",
"ReaderEndpoint" : ".neptune.cn-north-1.amazonaws.com.cn",
"StorageEncrypted" : false,
"VpcSecurityGroups" : "[{\"Status\": \"active\", \"VpcSecurityGroupId\": \"sg-088b699dac95f5da9\"}]",
"message" : "{JSON instance data}"
}
}
|
Fields in tags and fields may change with subsequent updates
4. IAM Policy Permissions
If users use IAM roles for resource collection, certain operation permissions need to be enabled
This collector requires the following permissions:
rds:DescribeDBClusters
X. Appendix
Please refer to the official AWS documentation: