I'm collecting information and metrics about RDS Instances from CloudWatch and RDS services.
I tried to get metrics and information using the following methods:
- DescribeDBInstances
- GetMetricData
Unfortunately, there is no information about the Total Memory of DB Instance.
I'm assuming you want to get the memory for the underlying EC2 that you run your RDS. If you need the memory allocated to the DB, it'll depend on the DB engine type. For example, in PostgreSQL, you need to query wal_buffers.
To get the instance details for your RDS, you need to get the instance type from rds.DescribeDBInstances and then query for the instance type details from ec2.DescribeInstanceTypes