Description
PG Exporter is a metrics exporter for PostgreSQL and PgBouncer that sends data to Prometheus. It uses declarative YAML configuration, dynamic query planning and customizable collectors. The bundled configuration defines 460 metrics across 96 collector branches and 59 namespaces, although the number of time series you see depends on the PostgreSQL version, enabled collectors, databases and labels. The README says the regular configuration covers PostgreSQL 10 through 18 and 19 RC1, and a legacy bundle covers PostgreSQL 9.1 to 9.6. PgBouncer is verified through 1.26.1. You can set timeouts, caching, skip conditions and fatality for each collector. The exporter also reports metrics about itself, provides health check HTTP endpoints for service health and traffic routing, and can discover multiple databases in an instance. It has extension support for timescaledb, citus and pg_stat_statements. The project is hosted on GitHub, and a live demo is run by Pigsty.…
Highlights
- Metrics for PostgreSQL and PgBouncer to Prometheus
- Declarative YAML collector configuration
- 460 metrics across 96 collector branches
- Health check HTTP endpoints
- Automatic discovery of databases
Ratings & Reviews
No ratings yet
Be the first to rate PG Exporter.
People also visit
PG Exporter FAQ
What is PG Exporter?
A Prometheus exporter for PostgreSQL and PgBouncer metrics, configured with YAML files.
Which versions are supported?
The README says PostgreSQL 10 to 18 and 19 RC1 are verified with the regular configuration, and 9.1 to 9.6 with the legacy bundle.
Does it work with extensions?
Yes. The README lists support for timescaledb, citus, pg_stat_statements and pg_wait_sampling, among others.
Is there a live demo?
Yes. Pigsty runs a live demo at demo.pigsty.io, built on this exporter.
What are the best PG Exporter alternatives?
Popular alternatives to PG Exporter include SQL Exporter, Pgmetrics and pgweb. See all PG Exporter alternatives

