DECLARATIVE
YAML + SQL
- Add or revise metrics without changing Go code
- Declare GAUGE, COUNTER, HISTOGRAM, and LABEL mappings
- Control cost with TTL and per-collector timeouts
DECLARATIVE POSTGRESQL METRICS EXPORTER
PostgreSQL observability, expressed in SQL.Declarative collectors · dynamic planning · native Prometheus metrics
One binary plus YAML and SQL covers PostgreSQL 10–19+ and PgBouncer 1.8–1.25+, selecting query branches by server version, role, and installed extensions.
PG_EXPORTER_URL='postgres://monitor@localhost/postgres' pg_exporter
CURRENT SURFACE
QUICK START
Install v1.4.1 for your platform, then verify the complete database-to-Prometheus path in three actions.
sudo apt install -y pg-exporterPG_EXPORTER_URL='postgres://monitor@localhost/postgres' pg_exportercurl -fsS localhost:9630/metricsWHY PG EXPORTER
Collector logic lives in configuration; the runtime handles discovery, planning, caching, timeouts, and Prometheus encoding.
DECLARATIVE
DYNAMIC PLAN
/explainOPERATING MODEL
01 · PLAN
02 · COLLECT
v1.4.1
Linux, macOS, and Windows archives; RPM and DEB packages; amd64 and arm64 Docker images.
PACKAGES
Includes a systemd unit, default environment file, and merged configuration for service deployments.
RELEASE
Get platform archives and packages from GitHub Releases and review the exact version notes.