# PostgresAI vs CloudWatch Database Insights: any provider vs built into AWS

> CloudWatch Database Insights shows DB load, top SQL and wait events for RDS and Aurora. PostgresAI is open source, runs on any provider and files findings as Issues.

Checked on 2026-11-18. Page: https://postgres.ai/compare/postgresai-vs-cloudwatch-database-insights. All comparisons: https://postgres.ai/compare.

## Short answer

CloudWatch Database Insights is the AWS monitoring console for RDS and Aurora and the successor to Performance Insights. Standard mode is free with 7 days of data; Advanced mode adds per-query statistics, lock trees, execution plans and a fleet view, billed per vCPU-hour. PostgresAI monitors PostgreSQL on any provider and turns checkup findings into Issues with a fix. On AWS the two are not exclusive: keep Database Insights, and add PostgresAI for checkups, Issues, agent access or expert help.

## Where PostgresAI is ahead of CloudWatch Database Insights

1. **The same checks wherever Postgres runs.**
   - PostgresAI: Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Tiger Data, self-managed servers and Postgres running on Kubernetes. ([PostgresAI monitoring overview](https://postgres.ai/docs/monitoring))
   - CloudWatch Database Insights: Database Insights covers Amazon RDS and Aurora, and self-managed PostgreSQL 14 or later that can run on Amazon EC2, with the CloudWatch agent on the same host. AWS states that monitoring a remote database is not supported. [1][4][5]
2. **Open source, no licence fee to self-host.**
   - PostgresAI: The monitoring software is open source under Apache 2.0, so self-hosting it carries no licence fee. ([postgresai repository](https://gitlab.com/postgres-ai/postgresai), [How much does it cost?](https://postgres.ai/docs/questions-and-answers))
   - CloudWatch Database Insights: Database Insights is a feature of Amazon CloudWatch, which AWS describes as its fully managed monitoring and observability service. Standard mode is free for 7 days of data; longer retention and Advanced mode are billed per vCPU-hour or ACU-hour. [12][1][3]
3. **Every finding comes with a fix.**
   - PostgresAI: Scheduled checkups turn each finding into an Issue with severity, evidence and a specific fix. ([Checkup reports](https://postgres.ai/docs/checkup), [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues))
   - CloudWatch Database Insights: Database Insights raises proactive recommendations when a metric crosses a threshold learned from the resource's baseline, with analysis and recommended actions. They need a paid retention period and are offered in 16 Regions. [8][7]
4. **Test the fix on a full-size copy first.**
   - PostgresAI: With DBLab Engine, a separate open-source product, an index or query change runs on a full-size thin clone of the database, created in seconds, before it reaches production. ([DBLab Engine](https://postgres.ai/docs/database-lab), [DBLab compared with other ways to branch](https://postgres.ai/compare#branching))
   - CloudWatch Database Insights: Database Insights analyzes the running database: DB load, top SQL, locks, plans and on-demand performance analysis. The sources we reviewed do not describe trying a change on a copy of the data. [1][6]

## Check it on your own database

```
npx postgresai@latest checkup postgresql://user@host:5432/db --no-upload
```

The express checkup works with PostgreSQL 14 or newer. With --no-upload it needs no account and sends no report data to PostgresAI. It needs Node.js 18 or newer and a database role with pg_monitor. Compare what it finds with what your current tool shows for the same database.

- [Live demo (login demo, password demo)](https://demo.postgres.ai)
- [Checkup command reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference#command-checkup)

## Side by side

| | PostgresAI | CloudWatch Database Insights |
|---|---|---|
| What it is | PostgreSQL monitoring with scheduled health checkups. Findings become Issues with severity, evidence and a recommended fix, which you, your AI agent or a PostgresAI expert can act on. | A CloudWatch feature to monitor and troubleshoot database fleets with pre-built dashboards: DB load by dimension, top SQL, wait events, database telemetry, slow queries from logs and on-demand performance analysis. AWS migrated Performance Insights users to Database Insights. [1][6] |
| Where your Postgres can run, and which versions | Any provider: yes. Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Tiger Data, self-managed servers and Postgres running on Kubernetes. PostgreSQL 14 and newer, with the pg_stat_statements extension. | Any provider: partly. Amazon RDS for PostgreSQL and Aurora PostgreSQL, including Aurora PostgreSQL Limitless, plus self-managed PostgreSQL 14 or later that can run on Amazon EC2. For self-managed databases the CloudWatch agent must run on the database host; AWS states that monitoring a remote database is not supported. [1][4][5] |
| Where it runs and what it collects | Self-hosted option: yes. Hosted by PostgresAI, or self-hosted in your own cloud account or on your own server. It collects database metadata such as statistics, normalized query texts and wait events, not table data or query parameters. | Self-hosted option: no. Part of Amazon CloudWatch, which AWS describes as its "fully managed monitoring and observability service". Access to sensitive dimensions such as SQL text can be restricted with fine-grained access policies. [12][1] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Does not apply. Does not apply: Database Insights is a feature of Amazon CloudWatch, an AWS cloud service. [1] |
| Query performance analysis | Query analysis: yes. Top queries from pg_stat_statements by calls, execution time, planning time and rows, with a drill-down dashboard for a single query. For execution plans, Joe runs EXPLAIN on a DBLab clone. | Query analysis: yes. Top SQL by DB load in both modes. Advanced mode adds per-query statistics, slow SQL query patterns from exported logs, and execution plans; among PostgreSQL engines, plan analysis is supported only for Aurora PostgreSQL. Self-managed PostgreSQL reads pg_stat_statements and captures plans by running EXPLAIN. [1][6][5] |
| Wait event analysis | Wait events: yes. An ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. | Wait events: yes. DB Load, measured as average active sessions, is collected every second and sliced by waits, SQL, host, user and database. Advanced mode adds lock trees for Aurora PostgreSQL and RDS for PostgreSQL. [6][1][9] |
| Health checks and recommendations | Health checks: yes. Scheduled checkup reports on settings, autovacuum and bloat, and indexes (invalid, unused, redundant). Each finding becomes an Issue with severity, evidence and a specific fix. | Health checks: yes. Proactive recommendations when metrics cross thresholds learned from the resource's baseline, with analysis and recommended investigations. They need a paid retention period and are offered in 16 Regions. Advanced mode adds on-demand performance analysis reports. [8][7][6] |
| AI and agent access | Agent access: yes. The postgresai CLI (alias pgai) and an MCP server with tools for Issues, action items and checkup reports. The setup guide covers Cursor, Claude Code, Windsurf and Codex. | Agent access: partly. The Performance Insights API and aws pi CLI commands return DB load by dimension, top dimension keys, full SQL text and performance analysis reports. AWS Labs' CloudWatch MCP Server, run locally next to the AI client, reads CloudWatch metrics, alarms and logs. The sources we reviewed do not describe MCP tools for Database Insights itself. [9][13] |
| Testing a fix before production | Test on a copy: yes. With DBLab Engine, a separate open-source product: a full-size thin clone of the database in seconds, where an index or query change can be run on real data. DBLab is set up and priced separately. | Not documented in the sources we reviewed. Database Insights analyzes the running database; the sources do not describe trying a change on a copy. [1][6] |
| Human PostgreSQL experts | Human experts: yes. Scale includes two expert requests a month, answered within 24 business hours. Either plan can buy a one-off pack of two requests for $500. Consulting is separate. | Human experts: partly. AWS Support plans (Business Support+, Enterprise Support, Unified Operations) cover AWS services. The sources we reviewed do not describe PostgreSQL consulting tied to Database Insights. [10] |
| Alerts | Email and Slack alerts on Starter and Scale. | CloudWatch alarms on database metrics, in both modes. Advanced mode also shows RDS events in CloudWatch. [1] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Standard: 7 days free, 1 to 24 months paid. Advanced: 1 to 24 months included, 15 months for lock and plan analysis. Self-managed: 15 months of metrics. [1][2][4] |
| Security attestations | SOC 2 Type 2 examination completed for the Security and Availability criteria, covering March 4 to June 4, 2026. The SOC 3 report is public. | Amazon CloudWatch and Amazon RDS are listed as in scope on the AWS SOC services-in-scope page. [11] |

## When CloudWatch Database Insights is the better choice

- Standard mode is part of RDS and Aurora with no extra charge for 7 days of DB load, top SQL and wait event data, and nothing to install.
- DB Load is collected every second and can be sliced by waits, SQL, host, user, database and, where supported, blocking session and plan.
- Advanced mode adds a fleet view, per-query statistics, lock trees for Aurora PostgreSQL and RDS for PostgreSQL, execution plans for Aurora PostgreSQL, and 15 months of lock and plan history.
- One console for RDS for PostgreSQL, Aurora PostgreSQL and self-managed PostgreSQL on EC2, across accounts and Regions.
- Integrated with CloudWatch alarms, CloudWatch Logs, RDS events and Application Signals, so calling services show next to database load.

## Pricing

| Product | Plan | List price | Notes |
|---|---|---|---|
| PostgresAI | Starter | $16 per cluster/month | Primary only, 14-day retention, no expert requests included |
| PostgresAI | Scale | $512 per cluster/month | Primary and up to 5 replicas in one cluster, 13-month retention, Grafana dashboards, 2 expert requests a month |
| PostgresAI | Enterprise | Custom | Contact sales |
| PostgresAI | Self-hosted | No licence fee | Open source under Apache 2.0; you run it yourself |
| CloudWatch Database Insights | Standard mode | Free | Up to 7 days of detailed database and per-query metrics; 1-24 months retention billed per vCPU-hour or ACU-hour (US East example: $0.002054 per vCPU-hour for the first month, $0.000086 for each further month); rates vary by Region [3][1] |
| CloudWatch Database Insights | Advanced mode | $0.0125 per vCPU-hour | Per provisioned instance; $0.003125 per ACU-hour for Aurora Serverless; turned on per cluster; 1-24 months retention included [3][1] |
| CloudWatch Database Insights | Self-managed PostgreSQL | Usage-based | Standard CloudWatch OpenTelemetry metrics and CloudWatch Logs pricing; 15 months of metrics [4][3] |

PostgresAI prices: https://postgres.ai/pricing. API calls up to 1 million a month are included, then $0.00001 per call. The pricing page example: a 2-vCPU provisioned writer and one Aurora Serverless reader averaging 4 ACUs cost $27 for 720 hours in Advanced mode. OS process data needs RDS Enhanced Monitoring.

## Using both

PostgresAI monitoring supports Amazon RDS and Aurora, so it can run against the same databases while Database Insights stays on. Database Insights keeps the AWS view of DB load, top SQL and the fleet; PostgresAI adds scheduled checkups, Issues with a fix, agent access and expert help.

## Questions

### What happened to Performance Insights?

AWS documentation says the end-of-life date for Performance Insights was July 31, 2026, and that AWS has migrated Performance Insights users to Database Insights. The Performance Insights API is still documented as a way to query Database Insights data. [1][9]

### Is CloudWatch Database Insights free?

Standard mode includes up to 7 days of detailed database and per-query metrics at no extra cost. Longer retention and Advanced mode are paid; Advanced mode is $0.0125 per vCPU-hour for provisioned instances. [3][1]

### Can Database Insights monitor self-managed PostgreSQL?

Yes, PostgreSQL 14 or later with the CloudWatch agent on the same host; AWS says monitoring a remote database is not supported. Self-managed databases do not use Standard or Advanced mode and keep 15 months of metrics. [4][5]

### What is the difference between Standard and Advanced mode?

Both show the top contributors to DB load and support alarms. Advanced mode adds per-query statistics, a saved fleet view, lock analysis for PostgreSQL engines, execution plans for Aurora PostgreSQL, slow SQL from logs, OS processes and on-demand analysis, with 1 to 24 months of retention included. [1]

### Can I use PostgresAI and CloudWatch Database Insights together?

Yes. PostgresAI monitoring supports Amazon RDS and Aurora, so both can watch the same database. Database Insights stays the AWS console view; PostgresAI adds checkups, Issues and expert help. [1]

## Sources for PostgresAI

- [PostgresAI monitoring overview](https://postgres.ai/docs/monitoring)
- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [Checkup reports](https://postgres.ai/docs/checkup)
- [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab compared with other ways to branch](https://postgres.ai/compare#branching)
- [Monitoring quick start](https://postgres.ai/docs/monitoring/getting-started)
- [Data privacy: metadata only](https://postgres.ai/docs/monitoring#data-privacy-metadata-only)
- [Query performance analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/query-analysis)
- [Joe bot](https://postgres.ai/docs/joe-bot)
- [Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events)
- [How to install MCP for AI coding tools](https://postgres.ai/docs/postgresai-howtos/how-to-install-mcp)
- [PostgresAI CLI reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference)
- [Pricing](https://postgres.ai/pricing)
- [Postgres consulting](https://postgres.ai/consulting)
- [Security and compliance](https://postgres.ai/security)

## Sources for CloudWatch Database Insights

1. [Amazon CloudWatch: CloudWatch Database Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Database-Insights.html)
2. [Amazon RDS: pricing and data retention for Database Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.Overview.cost.html)
3. [Amazon CloudWatch pricing](https://aws.amazon.com/cloudwatch/pricing/)
4. [Amazon CloudWatch: monitoring self-managed databases](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Database-Insights-Self-Managed.html)
5. [Amazon CloudWatch: monitoring self-managed PostgreSQL](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Database-Insights-Self-Managed-PostgreSQL.html)
6. [Amazon CloudWatch: Database Instance Dashboard](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Database-Insights-Database-Instance-Dashboard.html)
7. [Amazon RDS: engine, Region and instance class support for Database Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DatabaseInsights.Engines.html)
8. [Amazon RDS: Database Insights proactive recommendations](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.InsightsRecommendationViewDetails.html)
9. [Amazon RDS: Performance Insights API](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.API.html)
10. [AWS Support plans](https://aws.amazon.com/premiumsupport/plans/)
11. [AWS services in scope: SOC](https://aws.amazon.com/compliance/services-in-scope/SOC/)
12. [Amazon CloudWatch product page](https://aws.amazon.com/cloudwatch/)
13. [AWS Labs: CloudWatch MCP Server](https://awslabs.github.io/mcp/servers/cloudwatch-mcp-server)

## How we compare

These pages compare what each product does for PostgreSQL; other databases and the rest of the stack are out of scope. What we say about the other product comes from its own documentation, pricing page, changelog or source repository, read on the date shown; each row cites its source. "Not documented" means we did not find it in those sources, not that the product cannot do it. Prices are list prices and the billing units differ, so they are not a total-cost comparison. Product names are trademarks of their owners.
