What we read
pg_stat_activity — sessions, wait events and blocking chains
pg_stat_statements — per-query timing and call statistics (once enabled through the parameter group)
pg_stat_user_tables / user_indexes — dead tuple accumulation, vacuum history and index usage
pg_stat_replication — read replica lag and replication state
transaction ID age — distance to wraparound and whether autovacuum is keeping up
database and table sizes — storage consumption and the growth curve
CloudWatch — CPU, memory, disk and network metrics, keyed on the DB instance identifier
the RDS instance class — vCPU and memory ceiling, for capacity assessment
What it does specifically for AWS RDS
Query and host metrics on one timeline
The in-database wait profile and the CloudWatch host series share an axis, so hitting a CPU ceiling and a query generating load are distinguishable at a glance.
Instance class awareness
Headroom is computed against the vCPU and memory ceiling of the instance class actually in use, so a scale-up decision rests on remaining margin rather than a guess.
Storage growth forecasting
Storage consumption is tracked over time and the date of reaching the configured limit is projected.
Autovacuum and wraparound tracking
Dead tuple ratio, whether autovacuum is keeping up, and distance to transaction ID wraparound are tracked, with early warning because manual intervention is limited on a managed service.
Minimum privileges required
The baseline is read-only and safe to grant in production.
Prerequisites
·Agentless: the connection is made from the ClusterEye API server; nothing is installed on the RDS instance.
·The RDS security group must allow access from the ClusterEye API server.
·TLS defaults to verify-full — the AWS global root bundle ships with ClusterEye, so there is nothing to upload.
·For query intelligence: add pg_stat_statements to shared_preload_libraries in the DB parameter group (a reboot is required), then run CREATE EXTENSION pg_stat_statements in each database.
·Host metrics (CPU, memory, disk) come from CloudWatch and need an AWS access key/secret, a region and the DB instance identifier. Without them in-database monitoring is unaffected; only the host series stays empty.