Collector Configuration Manual for "AWS-RDS"
Before reading this article, please read the following first:
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 full list |
engines |
list | No | List of engine types (if not configured, all RDS instances of all engine types will be collected) |
engines[#] |
str | No | Engine type, currently supported: aurora-mysql , aurora-postgresql , mariadb , mysql , oracle-ee , oracle-ee-cdb , oracle-se2 , oracle-se2-cdb , postgres , sqlserver-ee , sqlserver-se , sqlserver-ex , sqlserver-web |
2. Configuration Example
Specified Regions
Collect instance data for Ningxia, Beijing regions with engine types aurora-mysql
, aurora-postgresql
, and mysql
Python | |
---|---|
1 2 3 4 |
|
Configure Filters (Optional)
This collector script supports user-defined filters that allow users to filter target resources based on object properties. The filter function returns True or False.
- True: Target resource needs to be collected.
- False: Target resource does not need to be collected.
Supported object properties for filtering:
Property | Description |
---|---|
name | Instance ID |
Engine | Instance Engine |
DBInstanceClass | Instance Class |
DBInstanceIdentifier | Instance Identifier |
AvailabilityZone | Instance Availability Zone |
SecondaryAvailabilityZone | Backup Availability Zone |
Endpoint_Address | Endpoint Address |
DBInstanceStatus | Instance Status |
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
3. Data Reporting Format
After data synchronization, you can view the data in the "Infrastructure - Resource Catalog" section of {{( brand_name }}}.
An example of reported data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Fields in tags and fields may change with subsequent updates
The value of tags.name is the instance ID, used as a unique identifier
fields.message and fields.Endpoint are both JSON serialized strings
4. IAM Policy Permissions
If the user collects resources using an IAM role, certain operation permissions must be enabled
This collector requires the following permissions:
rds:DescribeDBInstances
X. Appendix
Please refer to the AWS official documentation: