# PostgresAI vs Grafana Cloud Database Observability: checkups vs query data

> Grafana Cloud Database Observability collects Postgres query data and links it to traces. PostgresAI is open source and turns checkup findings into Issues with a fix.

Checked on 2026-11-18. Page: https://postgres.ai/compare/postgresai-vs-grafana-cloud-database-observability. All comparisons: https://postgres.ai/compare.

## Short answer

Grafana Cloud Database Observability, generally available since April 2026, uses Grafana Alloy to collect query performance, samples, wait events, explain plans and schema details from PostgreSQL 14 and newer, and links them to traces and host metrics in Grafana Cloud. PostgresAI monitors PostgreSQL only, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Both use Grafana: PostgresAI shows its data in Grafana dashboards. Pick Grafana Cloud if your team already uses it and wants query samples linked to traces and AI-suggested indexes. Pick PostgresAI for open-source monitoring you can self-host, scheduled Postgres checkups with expert help, or DBLab clones to test a fix.

## Where PostgresAI is ahead of Grafana Cloud Database Observability

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))
   - Grafana Cloud Database Observability: Grafana Alloy, the collector, is open source under Apache 2.0. Database Observability itself is a Grafana Cloud service, and Grafana's announcement lists no self-managed release; it has a free tier of 2,232 host hours. [13][3][9]
2. **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))
   - Grafana Cloud Database Observability: Grafana Assistant suggests CREATE INDEX statements and query rewrites, each with an EXPLAIN command to run afterwards. Grafana recommends reviewing suggested changes in a staging environment before production; the sources we reviewed do not describe providing one. [10]
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))
   - Grafana Cloud Database Observability: Grafana Assistant suggests indexes and rewrites for a query when you ask from a query view. The sources we reviewed do not describe scheduled checks of settings, vacuum or bloat. [1][10]

## 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 | Grafana Cloud Database Observability |
|---|---|---|
| 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 Grafana Cloud app that surfaces query performance from PostgreSQL databases. Grafana Alloy collects query details, query samples, wait events, schema details and explain plans and sends them to Grafana Cloud as metrics and logs. [2][6][1] |
| 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. Setup guides for self-managed PostgreSQL, Amazon Aurora, Amazon RDS, Google Cloud SQL and Azure Database for PostgreSQL, on PostgreSQL 14 and newer; 13 and earlier are not supported. It needs pg_stat_statements, compute_query_id and Alloy 1.17.0 or newer. [5][6][7] |
| 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: partly. Alloy runs in your network with direct access to the database host and sends data to Grafana Cloud; SQL text is redacted by default. Grafana's announcement lists no self-managed release of Database Observability. Enterprise lists Bring Your Own Cloud deployment. [6][1][3][9] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Partly. The collector, Grafana Alloy, is open source under Apache 2.0. Database Observability is a Grafana Cloud service with a free tier. [13][9] |
| 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. Query-level RED metrics (rate, errors, duration) from pg_stat_statements, sortable by wait time, errors, latency or calls, plus query samples and visual explain plans with table schema and index details. Alloy runs EXPLAIN, not EXPLAIN ANALYZE, on sampled queries. [2][1][7] |
| 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. Time is broken down by wait type, including lock, I/O and network, from query samples collected by Alloy. [1][6] |
| 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: partly. Grafana Assistant suggests CREATE INDEX statements and query rewrites from schemas and explain plans when asked, and says so when existing indexes are adequate. The sources we reviewed do not describe scheduled health checks of settings, vacuum or bloat. [1][10] |
| 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. Grafana Assistant is generally available in Database Observability, with no feature toggle. The open-source Grafana MCP server (Apache 2.0) works with Grafana Cloud and exposes Prometheus, Loki, alerting and other tools; it lists no Database Observability toolset. [10][11][12] |
| 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. Grafana recommends reviewing suggested changes in a staging environment before production, and each suggested rewrite comes with an EXPLAIN command to run afterwards. [10][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. Product support by tier: community on Free, 8x5 email on Pro, premium support on Enterprise. The sources we reviewed do not describe PostgreSQL consulting. [9] |
| Alerts | Email and Slack alerts on Starter and Scale. | Grafana Alerting contact points include email, Slack, PagerDuty, Microsoft Teams, Opsgenie, Jira, Grafana IRM, webhooks and more than 15 others. [14] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Free: 14 days for metrics and for logs, including query samples. Pro: 13 months for metrics and 30 days for logs. Extended retention on Enterprise. [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. | Grafana Labs states a SOC 2 Type 2 audit and ISO 27001 certification, and has completed CSA STAR. [15] |

## When Grafana Cloud Database Observability is the better choice

- Query data sits next to the rest of Grafana Cloud: query samples link to traces and back, the Knowledge Graph shows which services depend on each database, and host and cloud metrics overlay query latency.
- A free tier with 2,232 database host hours (3 database hosts), no credit card required.
- Grafana Assistant, generally available in Database Observability, ranks slow queries, explains plans and wait events, and suggests CREATE INDEX statements and query rewrites with an EXPLAIN check to run afterwards.
- Nothing is installed in the database engine or on the database server; Alloy runs EXPLAIN, not EXPLAIN ANALYZE, on sampled queries and redacts SQL text by default.
- Setup guides for self-managed PostgreSQL 14 and newer, Amazon RDS and Aurora, Google Cloud SQL and Azure Database for PostgreSQL.

## 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 |
| Grafana Cloud Database Observability | Free | $0 | Up to 2,232 host hours (3 database hosts); telemetry counts toward free tier allowances; community support [9] |
| Grafana Cloud Database Observability | Pro | $0.07 per host hour (~$51 per host) | After 2,232 included host hours; $19/month platform fee; metrics and logs billed separately; 8x5 email support [9] |
| Grafana Cloud Database Observability | Enterprise | Custom | Minimum commit of $25,000 per year; premium support [9] |

PostgresAI prices: https://postgres.ai/pricing. A host is a single database instance; each Aurora writer and reader counts separately, and databases on one instance count once. Host hours are billed for each hour Alloy keeps a connection, plus metrics and logs at standard Grafana Cloud rates.

## Using both

The two share Grafana: PostgresAI monitoring shows its metrics in Grafana dashboards. Separately, DBLab copies any PostgreSQL source, so an index or rewrite suggested in Grafana Cloud can be tried on a full-size DBLab clone before production.

## Questions

### Is Grafana Cloud Database Observability generally available?

Yes. Release 2.17.0 of April 1, 2026 made it generally available after a public preview. It supports PostgreSQL 14 and newer. [4][7]

### Does Grafana Database Observability work with Amazon RDS?

Yes. Grafana has setup guides for Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL and self-managed PostgreSQL 14 and newer. Grafana says Alloy should connect directly to the database host, not through PgBouncer or a load balancer. [5][6][7]

### What does Grafana Cloud Database Observability cost?

The free tier covers 2,232 host hours, about 3 database hosts. Pro is $0.07 per host hour (about $51 per host) after the included hours, plus a $19 monthly platform fee and metrics and logs usage. Enterprise starts at a $25,000 annual commit. [9][8]

### PostgresAI also uses Grafana. How is it different?

PostgresAI monitoring uses Grafana only for dashboards; it collects and stores the metrics itself, and the monitoring software is open source and can be self-hosted. Grafana Cloud Database Observability is a hosted app fed by Grafana Alloy. [2][13]

### Can I use PostgresAI and Grafana Cloud Database Observability together?

Yes. DBLab, the PostgresAI cloning product, copies any PostgreSQL source, so an index or query rewrite suggested by Grafana Assistant can be tested on a full-size DBLab clone before production. [10]

## Sources for PostgresAI

- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab compared with other ways to branch](https://postgres.ai/compare#branching)
- [Checkup reports](https://postgres.ai/docs/checkup)
- [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues)
- [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)
- [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 Grafana Cloud Database Observability

1. [Grafana Cloud Database Observability product page](https://grafana.com/products/cloud/database-observability/)
2. [Grafana Cloud documentation: Database Observability](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/)
3. [Grafana: Database Observability now generally available](https://grafana.com/whats-new/2026-04-02-database-observability-now-generally-available/)
4. [Database Observability release notes](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/release-notes/)
5. [Grafana Cloud documentation: set up PostgreSQL](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/set-up/postgres/)
6. [Grafana Cloud documentation: set up self-managed PostgreSQL](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/set-up/postgres/postgres/)
7. [Grafana Cloud documentation: requirements and overhead](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/set-up/requirements-overhead/)
8. [Grafana Cloud documentation: Database Observability pricing and usage](https://grafana.com/docs/grafana-cloud/platform/pricing-and-usage/database-observability/)
9. [Grafana pricing](https://grafana.com/pricing/)
10. [Grafana blog: Grafana Assistant integration for Database Observability (May 6, 2026)](https://grafana.com/blog/troubleshoot-performance-issues-faster-with-the-new-grafana-assistant-integration-for-database-observability/)
11. [Grafana: investigate database performance with Grafana Assistant](https://grafana.com/whats-new/2026-08-26-investigate-database-performance-with-grafana-assistant/)
12. [Grafana MCP server repository](https://github.com/grafana/mcp-grafana)
13. [Grafana Alloy repository](https://github.com/grafana/alloy)
14. [Grafana documentation: contact points](https://grafana.com/docs/grafana/latest/alerting/configure-notifications/manage-contact-points/)
15. [Grafana Labs security](https://grafana.com/security/)

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