Monitoring the health and performance of a database is an everyday task. In this chapter, you:
pgbench, the benchmarking tool that ships with PostgreSQL.| Tool | What it shows | Cost in this workshop |
|---|---|---|
| CloudWatch metrics | CPU, memory, storage, I/O, connections, every minute | Free |
| CloudWatch Logs | The PostgreSQL log and the upgrade log | A few cents for the log data |
| CloudWatch alarm + Amazon SNS | Email notification when a metric crosses a threshold | Free within the free tier |
| Database Insights - Standard | Database load by wait event, top SQL statements, 7 days of history | Free |
Performance Insights has been replaced by CloudWatch Database Insights. The Standard mode that you enabled when you created the database keeps 7 days of history at no extra cost. The Advanced mode adds fleet-wide views and longer retention, and is charged per vCPU.