# PostgresAI vs Dynatrace: open-source monitoring vs an ActiveGate extension

> Dynatrace monitors Postgres through an ActiveGate extension, with top statements and plans. PostgresAI is open-source Postgres monitoring with checkups and Issues.

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

## Short answer

Dynatrace is an observability platform. Its PostgreSQL extension runs on an ActiveGate, connects to the database remotely and collects metrics, top statements and execution plans; the Databases app adds a health score, anomaly detection, query rewrite suggestions and index recommendations, and database instances link to the services that call them. PostgresAI monitors PostgreSQL only, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Pick Dynatrace for automatic plan capture and index recommendations next to service data. Pick PostgresAI for open-source monitoring you can self-host, human Postgres experts, or DBLab clones to test a fix.

## Where PostgresAI is ahead of Dynatrace

1. **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))
   - Dynatrace: Dynatrace is sold as a platform subscription with a 15-day free trial. Its PostgreSQL extension carries no charge, but the data it ingests is billed; the rate card lists Database Monitoring at $0.11 per database-instance-hour. [2][8][9]
2. **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))
   - Dynatrace: The Dynatrace PostgreSQL extension correlates top statements with pg_stat_activity data to obtain wait event times when possible, ranks statements by waits, and has a metric for the number of backends actively waiting. [1][3]
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))
   - Dynatrace: Dynatrace Index Recommendations use the hypopg extension in the monitored database, and Request execution plan fetches a plan from that database. The sources we reviewed do not describe running a change on a separate copy of the data. [2][3]

## 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 | Dynatrace |
|---|---|---|
| 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. | An observability platform. For PostgreSQL, an ActiveGate SQL extension pulls metrics, top statements and execution plans over a remote connection; the Databases app shows them with anomaly detection and recommendations. OneAgent can add host metrics for a self-managed server. [1][2][5][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. Compatible with all currently maintained Postgres versions; extension 3.0.10 dropped PostgreSQL 13 and below. The docs cover self-hosted servers, Amazon RDS and Aurora (with IAM authentication), Google Cloud SQL and Azure Database for PostgreSQL. It needs an ActiveGate with network access, pg_stat_statements and a user with pg_monitor. [2][1] |
| 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: not documented. The ActiveGate runs in your environment and connects to the database remotely. Query parameters are replaced with placeholders and execution plans are sanitized. The sources we reviewed do not describe self-hosting the platform that stores the data. [2][6] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Not documented in the sources we reviewed. Dynatrace is sold as a paid platform with a 15-day free trial. [1][8] |
| 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 statements ranked by resource use and execution time, filterable by time, CPU, disk or waits, and stored as logs. Execution plans for top queries are captured automatically through a helper function you create in each database, and Request execution plan fetches one for any statement. [3][5][1][2][4] |
| 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. When possible, top statements are correlated with pg_stat_activity data to get wait event times, and metrics count processes actively waiting. The sources we reviewed do not describe a separate wait event view for PostgreSQL. [1][2] |
| 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. A health score per instance, an Indexes view to identify unused or problematic indexes, and recommendations for query and configuration optimizations, including rewriting queries or adding indexes. Dynatrace Intelligence detects anomalies, and alert templates cover health alerts and warning signals. [5][7][1] |
| 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: yes. A remote Dynatrace MCP Server, generally available, with OAuth or platform token access from MCP clients such as GitHub Copilot, Microsoft Copilot and Atlassian Rovo. Its Hub page describes a growing collection of tools without listing them. [10] |
| 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. Index Recommendations use the hypopg extension and a dynatrace_index_advisor function in the monitored database; the sources do not describe testing a change on a separate copy. [2][5][7] |
| 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. | Not documented in the sources we reviewed. The pricing page says a Dynatrace subscription includes the security, compliance and support infrastructure teams expect. [8] |
| Alerts | Email and Slack alerts on Starter and Scale. | The Databases app sets up health alerts and warning signals from templates in the Anomaly Detection app, and Dynatrace Intelligence raises problems from anomalies. [7][1] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Database monitoring data, including statements, is kept for 35 days by default, and retention can be adjusted. Metrics include 15 months of retention at 1-minute granularity, extendable to 10 years; log retention is billed at $0.0007 per GiB-day on Pay-per-Query. [6][3][8] |
| 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. | The Dynatrace Trust Center lists SOC 2 Type II, ISO 27001:2022, ISO 42001:2023, FedRAMP Moderate and HIPAA, among others. [11] |

## When Dynatrace is the better choice

- The Databases app shows the services that call each PostgreSQL instance, and OneAgent on a self-managed host adds the host with its CPU, memory, disk and network metrics.
- Dynatrace Intelligence detects anomalies, gives recommendations such as rewriting queries or adding indexes, and Davis CoPilot can summarize an execution plan.
- Index Recommendations for PostgreSQL use the hypopg extension and a dynatrace_index_advisor function you create in each database; Amazon RDS and Aurora already ship hypopg.
- The PostgreSQL extension collects metrics across databases, activity, WAL, replication, I/O, locks and subscriptions, and captures execution plans for top queries automatically.
- A generally available remote MCP server connects AI clients such as GitHub Copilot, Microsoft Copilot and Atlassian Rovo to Dynatrace data, with OAuth or platform tokens.

## 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 |
| Dynatrace | Database Monitoring | $0.11 per database-instance-hour | Rate card list price [9] |
| Dynatrace | Infrastructure Monitoring | $29 per host/month | Billed at $0.04 per hour per host [8][9] |
| Dynatrace | Log and metric ingest | $0.20 per GiB (logs), $0.15 per 100k datapoints (metrics) | Ingest and process; retention and log queries are billed separately [8] |

PostgresAI prices: https://postgres.ai/pricing. The extension docs say there is no charge for the PostgreSQL extension itself, only for the data it ingests; the Hub says the extension was aligned with the latest Database licensing model, and the rate card lists Database Monitoring per database-instance-hour. There is a 15-day free trial.

## Using both

DBLab is a separate product that copies any PostgreSQL source, so a team that monitors with Dynatrace can still use a DBLab clone to try an index or query change on full-size data before production.

## Questions

### Does Dynatrace work with Amazon RDS for PostgreSQL?

Yes. The PostgreSQL extension runs on an ActiveGate that connects to the database remotely, and its docs cover Amazon RDS, Aurora, Google Cloud SQL and Azure Database for PostgreSQL as well as self-hosted servers. [2]

### Does Dynatrace collect PostgreSQL execution plans?

Yes. Since extension version 3.0.10, execution plans for top queries are captured automatically. You create a helper function in each monitored database that generates the plans, and plans are sanitized to remove sensitive values. [1][2][6]

### What does Dynatrace database monitoring cost?

The Dynatrace rate card lists Database Monitoring at $0.11 per database-instance-hour. Host monitoring, log and metric ingest are billed separately, and there is a 15-day free trial. [9][8]

### Which PostgreSQL versions does Dynatrace support?

The PostgreSQL extension docs say it is compatible with all currently maintained Postgres versions. Extension version 3.0.10 dropped support for PostgreSQL 13 and below. PostgresAI monitoring supports PostgreSQL 14 and later. [2][1]

### Can I use PostgresAI and Dynatrace together?

Yes. DBLab, the PostgresAI cloning product, copies any PostgreSQL source, so a team that monitors with Dynatrace can test an index or query change on a full-size DBLab clone before production.

## Sources for PostgresAI

- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events)
- [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)
- [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)
- [Checkup reports](https://postgres.ai/docs/checkup)
- [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues)
- [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 Dynatrace

1. [Dynatrace Hub: PostgreSQL extension](https://www.dynatrace.com/hub/detail/postgresdb-remote-monitoring/)
2. [Dynatrace documentation: PostgreSQL extension](https://docs.dynatrace.com/docs/observe/infrastructure-observability/databases/extensions/postgresdb-remote-monitoring)
3. [Dynatrace documentation: database statements and execution plans](https://docs.dynatrace.com/docs/observe/infrastructure-observability/databases/concepts/statements-and-execution-plans)
4. [Dynatrace documentation: database monitoring approaches](https://docs.dynatrace.com/docs/observe/infrastructure-observability/databases/concepts/db-instance-vs-host-targeted)
5. [Dynatrace documentation: databases](https://docs.dynatrace.com/docs/observe/infrastructure-observability/databases)
6. [Dynatrace documentation: data collected with database monitoring](https://docs.dynatrace.com/docs/observe/infrastructure-observability/databases/database-app/data-collected)
7. [Dynatrace Hub: Databases app](https://www.dynatrace.com/hub/detail/database-overview/)
8. [Dynatrace pricing](https://www.dynatrace.com/pricing/)
9. [Dynatrace rate card](https://www.dynatrace.com/pricing/rate-card/)
10. [Dynatrace Hub: Dynatrace MCP Server](https://www.dynatrace.com/hub/detail/dynatrace-mcp-server/)
11. [Dynatrace Trust Center](https://www.dynatrace.com/company/trust-center/)

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