This directory contains the legacy pg_exporter config bundle for PostgreSQL 9.1 - 9.6 (EOL).
pg_exporter.yml: merged legacy config (ready to use)config/: separated collector definitions (source of truth)
From the repository root:
make conf9Use the merged legacy config file:
PG_EXPORTER_CONFIG=legacy/pg_exporter.yml \
PG_EXPORTER_URL='postgres://user:pass@host:5432/postgres' \
pg_exporter --auto-discovery --exclude-database=template0,template1Or load separated collectors directly (directory mode):
PG_EXPORTER_CONFIG=legacy/config \
PG_EXPORTER_URL='postgres://user:pass@host:5432/postgres' \
pg_exporter --auto-discovery --exclude-database=template0,template1- PostgreSQL 9.0 is not supported.
- For PostgreSQL 10+, use the default config in repo root:
pg_exporter.yml.