# PostgresAI vs pgwatch: checkups and Issues vs a metrics collector

> pgwatch is an open-source PostgreSQL metrics collector, and you pick the storage and dashboards. PostgresAI adds checkups, Issues with a fix and an MCP server for agents.

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

Disclosure: PostgresAI monitoring was built on pgwatch: versions released up to November 2026 use it as the metrics collector.

## Short answer

pgwatch, maintained by CYBERTEC, is an open-source metrics collector for PostgreSQL: you choose the metrics, the storage sink and the Grafana dashboards, and run the stack yourself. PostgresAI monitoring comes assembled, hosted or self-hosted, and adds scheduled checkups, Issues, agent access and expert help. Pick pgwatch if you want to assemble and tune your own stack. Pick PostgresAI if you want monitoring packaged with checkups and people to act on the findings.

## Where PostgresAI is ahead of pgwatch

1. **Wait events with no extra extension.**
   - PostgresAI: An ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. ([Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events))
   - pgwatch: pgwatch has a wait_events metric that counts active sessions in pg_stat_activity by wait event type and wait event. Among the shipped presets only debug includes it, at a 30-second interval; with other presets you add it yourself. [11][4]
2. **An AI agent can work through the findings.**
   - PostgresAI: The postgresai CLI and an MCP server give an agent the Issues, action items and checkup reports. The setup guide covers Cursor, Claude Code, Windsurf and Codex. ([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))
   - pgwatch: pgwatch has a REST API, with JWT authentication, for managing sources, metrics and presets. The sources we reviewed do not describe an MCP server or an interface that gives an AI agent findings to work through. [5]
3. **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))
   - pgwatch: pgwatch collects and stores metrics from the databases it monitors. The sources we reviewed do not describe running an index or query change on a separate copy of the data. [1][9]

## 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 | pgwatch |
|---|---|---|
| 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 PostgreSQL metrics collector, the pgwatch daemon written in Go. It reads sources and metric definitions from a configuration database or YAML files, writes measurements to one or more sinks, and ships Grafana dashboards to view them. [1][9][4] |
| 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: yes. Self-managed servers and managed services: presets for Amazon RDS and Aurora (rds), Azure Database for PostgreSQL (azure) and Google Cloud SQL (gce), and a documented setup for Aiven. On Aurora some metrics are missing compared with RDS, and OS helper metrics in PL/Python do not run on managed platforms. The installation guide lists PostgreSQL 14 or newer as a requirement. [3][9] |
| 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: yes. Self-hosted: a Debian/Ubuntu package, RPM packages, Docker images or a build from source. You run the collector, the configuration store, the sink and Grafana. Metric SQL decides what is collected; the stat_statements metric stores normalized query texts from pg_stat_statements. [9][2][11] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Yes. Open source under the BSD 3-Clause license, copyright CYBERTEC PostgreSQL International GmbH. Version 6.2.0 was released in November 2026. [8][13] |
| 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. A stat_statements metric from pg_stat_statements, every 180 seconds in the standard preset. The docs say pg_stat_statements powers the Stat statements Top dashboard and many panels across other dashboards; the gallery shows a Query Performance Analysis dashboard. [10][11][12] |
| 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: partly. A wait_events metric counts active sessions in pg_stat_activity by wait event type and wait event. Among the shipped presets only debug includes it, so you add it to the preset you use. [11][4] |
| 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. Health Check and Recommendations dashboards. Recommendation metrics cover indexes to add or drop, partial index candidates, disabled triggers, nested views, the public schema, functions without search_path and superusers; other metrics cover invalid and unused indexes and approximate table bloat. [12][11] |
| 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: not documented. A REST API manages sources, metrics and presets, with JWT authentication. The sources we reviewed do not describe an MCP server or an interface for AI agents. [5] |
| 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. [1] |
| 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. The docs state that Cybertec provides commercial 9-to-5 and 24/7 support for pgwatch. The project's own sources we reviewed do not describe PostgreSQL consulting. [1] |
| Alerts | Email and Slack alerts on Starter and Scale. | Alerting is done in Grafana: the guide wires Grafana's built-in alerting to the metrics pgwatch stores, with contact points such as Slack, PagerDuty, email and webhooks. [6] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | The --retention option deletes metrics older than a PostgreSQL interval, 14 days by default. Maintenance tasks such as deleting old metrics run on the sinks every 12 hours by default. [7] |
| 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. | pgwatch is software you run yourself. The sources we reviewed do not describe security attestations. [1] |

## When pgwatch is the better choice

- Open source under the BSD 3-Clause license and free to run; CYBERTEC provides commercial 9-to-5 and 24/7 support for it.
- Four sink types: PostgreSQL (including TimescaleDB), Prometheus, JSON file and a custom gRPC backend, so metrics can go into storage you already run.
- Also monitors the tools around PostgreSQL: Patroni cluster members, PgBouncer and Pgpool poolers, and pgBackRest and WAL-G backups.
- Metrics are SQL definitions grouped into presets, including presets for Amazon RDS, Aurora, Azure, Google Cloud SQL and Aiven; you can add your own metrics.
- A REST API and web UI to manage sources, metrics and presets, and 15 dashboards in the gallery, including Health Check and Recommendations.

## 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 |
| pgwatch | Open source | Free | BSD 3-Clause license; you run the collector, storage and Grafana [8] |
| pgwatch | CYBERTEC support | No public price | Commercial 9-to-5 and 24/7 support for pgwatch [1] |

PostgresAI prices: https://postgres.ai/pricing.

## Using both

Versions of PostgresAI monitoring released up to November 2026 include pgwatch as the collector. DBLab, a separate product, copies any PostgreSQL source, so a team that runs its own pgwatch stack can still use a DBLab clone to test an index or query change on full-size data.

## Questions

### Does PostgresAI use pgwatch?

Versions of PostgresAI monitoring released up to November 2026 use pgwatch as the metrics collector. PostgresAI adds scheduled checkups, Issues, an MCP server and expert requests on the Scale plan.

### Is pgwatch open source?

Yes. pgwatch is open source under the BSD 3-Clause license and is maintained by CYBERTEC, which also sells commercial 9-to-5 and 24/7 support for it. [8][1]

### Does pgwatch work with Amazon RDS?

Yes. pgwatch ships an rds preset used for Amazon RDS and Aurora, plus presets for Azure Database for PostgreSQL and Google Cloud SQL. On Aurora some metrics are missing compared with RDS, and PL/Python helper metrics do not run on managed platforms. [3]

### Where does pgwatch store metrics?

In the sinks you configure: PostgreSQL (including TimescaleDB), Prometheus, a JSON file or a custom gRPC backend. More than one sink can be used at once. The --retention option deletes metrics older than 14 days by default. [14][1][7]

### Can I use PostgresAI and pgwatch together?

Versions of PostgresAI monitoring released up to November 2026 include pgwatch as the collector. A team running its own pgwatch stack can also use DBLab, which copies any PostgreSQL source, to test a fix on a full-size clone.

## Sources for PostgresAI

- [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)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab compared with other ways to branch](https://postgres.ai/compare#branching)
- [PostgresAI monitoring overview](https://postgres.ai/docs/monitoring)
- [What are Issues?](https://postgres.ai/docs/questions-and-answers)
- [Monitoring quick start](https://postgres.ai/docs/monitoring/getting-started)
- [Data privacy: metadata only](https://postgres.ai/docs/monitoring#data-privacy-metadata-only)
- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [Query performance analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/query-analysis)
- [Joe bot](https://postgres.ai/docs/joe-bot)
- [Checkup reports](https://postgres.ai/docs/checkup)
- [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues)
- [Pricing](https://postgres.ai/pricing)
- [Postgres consulting](https://postgres.ai/consulting)
- [Security and compliance](https://postgres.ai/security)

## Sources for pgwatch

1. [pgwatch documentation: introduction](https://pgwat.ch/latest/)
2. [pgwatch repository](https://github.com/cybertec-postgresql/pgwatch)
3. [pgwatch documentation: managed PostgreSQL support](https://pgwat.ch/latest/reference/managed_postgres_support.html)
4. [pgwatch documentation: metrics and presets](https://pgwat.ch/latest/concept/metrics_and_presets.html)
5. [pgwatch documentation: REST API](https://pgwat.ch/latest/reference/rest.html)
6. [pgwatch documentation: set up alerting](https://pgwat.ch/latest/howto/set_up_alerting.html)
7. [pgwatch documentation: command-line options](https://pgwat.ch/latest/reference/cli_env.html)
8. [pgwatch license](https://pgwat.ch/latest/developer/LICENSE.html)
9. [pgwatch documentation: custom installation](https://pgwat.ch/latest/tutorial/custom_installation.html)
10. [pgwatch documentation: preparing databases](https://pgwat.ch/latest/tutorial/preparing_databases.html)
11. [pgwatch built-in metric and preset definitions](https://github.com/cybertec-postgresql/pgwatch/blob/master/internal/metrics/metrics.yaml)
12. [pgwatch dashboard gallery](https://pgwat.ch/latest/gallery/dashboards.html)
13. [pgwatch releases](https://github.com/cybertec-postgresql/pgwatch/releases)
14. [pgwatch documentation: sinks](https://pgwat.ch/latest/reference/sinks_options.html)

## 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.
