PostgreSQL performance monitoring and optimization service with query, index and VACUUM advisors, EXPLAIN plan analysis and log insights.
pgwatch by CYBERTEC PostgreSQL International GmbH
Open-source (BSD-3-Clause) PostgreSQL monitoring from CYBERTEC: a Go metrics collector with SQL-defined metrics, several storage sinks, a web UI and Grafana dashboards, self-hosted.
pgwatch is an open-source monitoring tool built only for PostgreSQL, published by CYBERTEC PostgreSQL International GmbH under the BSD-3-Clause licence. Its collector, written in Go, runs SQL queries against monitored databases on a schedule, stores the results in a metrics database and presents them in ready-made Grafana dashboards. The current release line is v6; v6.2.0 was released in November 2026.
It is aimed at database administrators and platform teams who run PostgreSQL themselves or on managed services and want a free, self-hosted way to watch database health, query performance, index usage, disk I/O, CPU and memory, and locks and waits. Every metric is a named SQL query, grouped into presets such as basic and exhaustive, so teams can add their own metrics without changing code. The collector chooses the right query version for each PostgreSQL major version and for primary or standby roles.
Beyond plain PostgreSQL, pgwatch monitors Patroni clusters, PgBouncer and PgPool, and pgBackRest and WAL-G backups, and it ships presets for Amazon RDS and Aurora, Google Cloud SQL and Azure Database for PostgreSQL. Metrics can be written to PostgreSQL, TimescaleDB, Prometheus, JSON files or a custom gRPC backend. Alerting is handled by Grafana's own alerting on the stored metrics rather than by pgwatch.
Key takeaways
- PostgreSQL-only monitoring, open source under BSD-3-Clause, with no paid edition.
- Metrics are SQL queries grouped into presets; custom metrics need only SQL.
- Stores metrics in PostgreSQL, TimescaleDB, Prometheus, JSON or gRPC sinks, visualized in Grafana.
- Presets for RDS, Aurora, Cloud SQL and Azure, plus Patroni, PgBouncer and PgPool sources.
- Self-hosted only; alerting relies on Grafana.
Key features
Technical details
Pricing
pgwatch is free and open source under the BSD-3-Clause licence. No paid edition or pricing page is published for it.
Source: pgwat.ch, checked November 2026. Prices can change; confirm with the vendor.
Advantages and limitations
Advantages
- Free under a permissive BSD-3-Clause licence.
- Custom metrics need only SQL, with version-aware query selection.
- Choice of storage backends, including Prometheus and TimescaleDB.
- Covers Patroni, PgBouncer, PgPool and backup tools as well as PostgreSQL.
Limitations
- PostgreSQL only; other database engines are not monitored.
- Self-hosted: you run the collector, metrics database and Grafana.
- No built-in alerting; alerts are configured in Grafana.
- Python-based OS helper metrics do not work on managed services.
Suitable use cases
- Self-hosted PostgreSQL fleetsWatching health and performance across many PostgreSQL servers from one Grafana.
- Managed PostgreSQLMonitoring RDS, Aurora, Cloud SQL or Azure databases with provider presets.
- Patroni and pooler stacksCovering Patroni clusters and PgBouncer or PgPool alongside the databases.
- Prometheus-based observabilityFeeding PostgreSQL metrics into an existing Prometheus and Grafana stack.
Things to check before you choose
- Whether you only need PostgreSQL coverage or several database engines.
- Which sink fits your stack: PostgreSQL, TimescaleDB or Prometheus.
- Whether Grafana alerting is enough for your on-call process.
- Whether your managed service supports the pg_monitor role and the needed settings.
- Who will run and upgrade the collector, metrics database and Grafana.
pgwatch alternatives
All database monitoring and performance software →
Open-source monitoring, query analytics and management for MySQL, PostgreSQL, MongoDB and Valkey/Redis, self-hosted with a server and client agents.
Self-hosted database operations platform from Severalnines that deploys, monitors, backs up and fails over open-source and SQL Server clusters from one console.
Self-hosted database performance monitoring that captures SQL text and wait states across 12 database engines and Azure, Amazon RDS and Google Cloud SQL services.
Multi-platform database monitoring and alerting for SQL Server, PostgreSQL, Oracle, MySQL and MongoDB estates, available self-hosted or as SaaS.
More in database performance monitoring
Other database performance monitoring products in the directory. They share this subcategory but are not necessarily direct alternatives.
Hosted database performance advisor for MySQL, MariaDB, Percona Server and PostgreSQL that monitors servers through an open-source agent and recommends configuration, query and index changes.
Self-installed database monitoring and management for Oracle, SQL Server, PostgreSQL, MySQL, MariaDB, Sybase ASE and MongoDB, with optional performance, maintenance and compliance packages.
Self-hosted performance monitoring for Microsoft SQL Server, Azure SQL Database and SQL Server Analysis Services, with Top SQL, deadlock and blocking analysis.
Frequently asked questions
Is pgwatch free and open source?
Yes. The LICENSE file in the official repository is the BSD 3-Clause License, copyright CYBERTEC PostgreSQL International GmbH. No paid edition is published.
Which databases does pgwatch monitor?
PostgreSQL only, including managed services such as Amazon RDS and Aurora, Google Cloud SQL and Azure Database for PostgreSQL. It also monitors Patroni, PgBouncer, PgPool, pgBackRest and WAL-G.
Where does pgwatch store metrics?
In a sink of your choice: PostgreSQL, TimescaleDB, Prometheus, JSON files or a custom gRPC backend. The configuration and metrics databases need PostgreSQL 14 or newer.
Does pgwatch send alerts?
Not by itself. The documentation wires Grafana's built-in alerting to the stored metrics, with contact points such as Slack, PagerDuty, email or webhooks.
How is pgwatch installed?
The README recommends the cybertecpostgresql/pgwatch Docker image for production. Packages are available for apt and rpm, release archives cover Linux, macOS and Windows, and the docs include a Kubernetes guide.
Research sources
- GitHub: cybertec-postgresql/pgwatch
- GitHub: pgwatch LICENSE
- GitHub: pgwatch releases
- pgwatch docs: introduction
- pgwatch docs: metrics and presets
- pgwatch docs: managed PostgreSQL support
- pgwatch docs: custom installation
- pgwatch docs: setting up alerting