Repository navigation
Releases
pg_exporter-v1.6.1
PG Exporter v1.6.1 was released on November 11, 2026. This maintenance release fixes incorrect table statistics, collector failures that could disrupt a scrape, and connection-handling edge cases. It uses Go 1.27.4 and retains lib/pq 1.12.3. Built-in SQL metric names, label keys, types, buckets, CLI flags, and HTTP routes are unchanged.
Changes
- Keep duplicate scalar rows from breaking the whole scrape. A query returning two rows with the same labels for a
GAUGEorCOUNTERnow fails that collector and discards its result before Prometheus gathers the samples. Other collectors continue when the failing collector is non-fatal;fatal: trueretains its normal failure semantics. A collector containing onlyHISTOGRAMmetrics still combines repeated label sets into one snapshot distribution. Collisions between separate collectors still require a configuration fix. - Correct partitioned and indexless table statistics. Across all four
pg_tablebranches, relations withrelfrozenxid = 0, including partitioned parents, reportage = 0instead of2147483647. Nullable index counters no longer erase valid sequential-scan totals: each operand oftbl_scan,tup_read, andn_tup_moddefaults to zero before addition. Nullable live/dead/modified-row estimates also default to zero instead of NaN. - Avoid table-size failures on temporary relations.
pg_table_sizeexcludespg_temp*andpg_toast*schemas, so it does not attempt to size another session's temporary tables or report TOAST tables separately. The source tag also includes the legacy PostgreSQL 9.1 fix for tables without TOAST: OID 0 no longer fails the entire table-size collector. The legacy bundle remains a separate download. - Fix activity durations and TimescaleDB identifiers.
pg_activityclamps negative state, transaction, and session durations to zero when timestamps fall after the query's time reference. The optional, default-disabledpg_tsdb_hypertablecollector correctly quotes schema and table names containing uppercase letters or special characters. HELP text now describes transaction/session start times, indexing phases, checkpoint counters, and table data-fork size more accurately. - Fix connection URLs and credential redaction. Hostless URLs such as
postgresql://?host=/var/run/postgresqlkeep the authority separator during normalization and remain valid for lib/pq. Auto-discovery removes conflictingservice=parameters when assigning a child database. Logs also masksslpassword=values. - Make connection-pool cleanup safe. Removed or replaced discovered targets close their old pools after active collection finishes. Closing a server clears its pool reference under synchronization and safely handles an uninitialized or already-closed pool. Configuration reload continues to reuse live pools and invalidate collector plans; it does not rebuild every child connection.
- Reject invalid metric configuration and protect self-metrics. Non-finite
scaleanddefaultvalues are rejected during configuration loading, and invalid--namespacevalues fail startup. Invalid internal metric labels, such as a non-UTF-8 database name, produce a warning and skip that sample instead of panicking. User constant labels cannot overwrite reserved build-info fields such asversionandrevision. - Repair diagnostic and direct-call edge cases. The HTML explain page correctly renders predicate cache TTLs. Direct collector calls execute on a cold cache or with TTL zero even without a server scrape timestamp. Explicit
Server.Plan(...)calls preserve same-name version branches by their branch keys. - Update builds and service management. The packaged systemd unit adds
ExecReloadforsystemctl reload pg_exporter. Standalone Docker builds accept version, branch, revision, and build-date arguments;make docker-buildsupplies them. Plain Docker builds retainHEAD/unknownplaceholders unless those arguments are provided. The build toolchain moves to Go 1.27.4, with routine dependency updates.
Upgrade notes
- Upgrade the binary and merge the collector YAML. Package upgrades preserve locally modified
/etc/pg_exporter.ymland/etc/default/pg_exporter. Deploy the updated SQL to receive the table, activity, and TimescaleDB fixes. The default bundle still contains 58 YAML files, 96 branches, 59 namespaces, and 460 distinct metric definitions. - Review custom collectors. Scalar queries must return one row per label tuple. Use finite
scaleanddefaultvalues. Histogram-only queries may still return multiple observations per label tuple. Partitioned-parent freeze-age alerts now see0; indexless-table totals and formerly NaN row estimates may also change. - Refresh the unit and restart after a binary upgrade. After installing the new systemd unit, run
sudo systemctl daemon-reload, thensudo systemctl restart pg_exporterto use the new binary or process settings. For subsequent collector-YAML-only changes, usesudo systemctl reload pg_exporterorPOST /reload. - Download legacy YAML separately for PostgreSQL 9.1–9.6. Use
legacy/pg_exporter.ymlfrom tag v1.6.1 or main at282e19dor later. Binary archives and RPM/DEB packages contain only the regular PostgreSQL 10+ configuration.
When upgrading from v1.5.0 or earlier, also review the v1.6.0 release notes for health probes, scrape budgets, and cross-database progress labels, and the v1.5.0 migration notes for subscription labels, receiver states, and PostgreSQL 10–13 grants. See compatibility for the migration table.
Verification scope
Tag v1.6.1 points to d0dead1. Its CI run and Release run passed module and generated-config checks, the full race suite, Go 1.21 HTTP mux compatibility tests, go vet, six-target cross-builds, container checks, and package/checksum checks. Added regressions cover duplicate scalar-row isolation, cold/zero-TTL direct collection, namespace and build-info validation, hostless URLs, service= removal, sslpassword masking, predicate HTML rendering, finite numeric options, and collector SQL invariants.
The release acceptance record covers the 12 published artifacts and checksums, amd64/arm64 Docker images, ARM64 DEB installation on Debian 12 and RPM installation on Rocky Linux 9, and non-superuser live scrapes on PostgreSQL 10–18 and 19 RC1 primaries, PostgreSQL 18 and 19 RC1 streaming standbys, PgBouncer 1.26.1, and PostgreSQL 9.1–9.6 with the separate legacy bundle. Scenarios included auto-discovery and database removal, HTTP/SIGHUP reload, pg_stat_statements, indexless and partitioned tables, temporary tables, and open transactions. Legacy acceptance does not imply that the modern pg_temp* and COALESCE refinements were backported. Windows, Linux ppc64le, and Intel macOS received build/checksum checks rather than runtime acceptance; package-container checks do not establish a real systemd boot. PostgreSQL 19 evidence is for RC1, not every later build or production workload. The experimental snort components are not part of v1.6.1.
Downloads: use the release assets below and verify them with checksums.txt.
Full changelog · English documentation · Chinese release notes
PG Exporter v1.6.0
PG Exporter v1.6.0 separates health probes from collection, bounds overlapping metrics requests, preserves completed bounded refreshes after client cancellation, and corrects cross-database progress labels. It also supplies container trust roots and updates dependencies. The Go toolchain remains 1.27.3 and the PostgreSQL driver remains lib/pq 1.12.3.
Changes
- Independent health probes: slow metrics collection no longer blocks the background probe. Completing a scrape no longer overwrites a newer reachability or role observation. After initialization, HTTP health is written only by the probe;
pg_upandpg_in_recoveryremain collection results. A reachable database can return/upHTTP 200 even when a fatal collector makespg_upzero. - Controlled overlapping scrapes: at most two metrics requests are admitted, including waiting and response writing. Collection remains serial. The second request can wait and reuse caches; extra requests receive HTTP 503. Waiting can be canceled without starting SQL. The request budget is 30 seconds, shortened by a valid positive finite Prometheus scrape-timeout header.
- Collector-level cancellation: request cancellation prevents the next collector or database from starting. A collector already running with a positive timeout continues its predicates and main SQL under one shared deadline, then caches its result normally. This prevents a departing client from turning a healthy bounded refresh into a failure cached for other scrapers. A negative timeout removes the collector deadline and lets the request cancel its SQL.
- Clearer interruption accounting: interrupted passes have an INFO
interruptedsummary and do not increment exporter/server scrape-error counts. Availability preserves the previous value, or becomes true after a successful precheck. Non-interrupted connection and fatal collector failures still count. Query-error statistics and fatal-query ERROR logs remain unchanged. - Correct progress labels:
pg_vacuuming,pg_indexing, andpg_clusteringretain cluster-wide coverage and three queries per refresh. Relations in the connected database and system catalogs resolve to names; user relations in other databases use numeric OIDs inrelname, retainingdatnameandpid. An unrelated local relation can no longer supply a misleading name. Discovery filters or a lack of CONNECT do not filter out visible progress rows. - Container trust: both scratch-image build paths include the system CA bundle and license. Public CA verification can use the bundled trust store. Private CAs still require an explicit mount and
sslrootcert; the default TLS mode is unchanged. - Dependencies and validation: YAML moves from v3 to v4 with the existing collector syntax retained. Prometheus common/procfs,
golang.org/x/net, and supporting dependencies are updated. CI verifies container payload/TLS behavior and inspects all DEB architectures, in addition to RPM compatibility and checksums. - Collector descriptions: help text now distinguishes I/O bytes and operations, completed checkpoints, vacuum dead-tuple memory, and CLUSTER progress. SQL metric names, label keys, types, and units are unchanged on the same PostgreSQL version.
Upgrade notes
- Upgrade the configuration with the binary. Merge the new
pg_exporter.ymlor split YAML files; package upgrades preserve local configuration. A binary-only upgrade does not fix progress SQL. The bundle still contains 58 YAML files, 96 branches, 59 namespaces, and 460 distinct metric definitions, including disabled collectors and two unexpanded histograms. - Check progress-label consumers. Cross-database
relnamevalues can change from an incorrect name to an OID, creating new time series. Preserve database and task identity in dashboards. Names in the connected database and names of system catalogs remain readable. - Choose the right health signal.
/upand role endpoints reflect the latest health probe.pg_upreflects main-target collection, including fatal collector failures. Non-fatal and child-database errors require their query/server metrics.--disable-introhides all built-in metrics, includingpg_up, while HTTP health remains available. - Allow the PgBouncer probe connection. The main PgBouncer pool maximum changes from one to two connections. PostgreSQL keeps three on the main target and one per discovered database.
- Keep positive timeouts on fatal collectors. Canceling a negative-timeout fatal query caches its failure for the normal TTL. A subsequent live scrape can count that cached failure and return
pg_up 0until a successful refresh. TTL zero or--disable-cachestill forces a refresh on every scrape. - Review scrape concurrency and budgets. Excess requests or interrupted collection can return 503. A started bounded collector can extend work beyond the request budget, normally by up to its own timeout. Network stalls can last longer; neither timeout is a hard wall-clock guarantee, and connection handshakes need an appropriate DSN
connect_timeout.
A real error coinciding with request cancellation can be omitted from the two pass-error counters because classification uses both the pass error and the request context. Query-level failures remain visible. A first scrape interrupted before a successful precheck leaves pg_up at zero until later recovery. Failure TTL, reload behavior, and immediate SIGTERM exit remain unchanged; this release does not add background refresh or graceful shutdown.
For upgrades from v1.4.1 or earlier, the v1.5.0 migration notes still apply, including subscription labels, receiver-state mappings, and PostgreSQL 10–13 monitoring grants. See metric compatibility, HTTP API, and scrape lifetime for the operating contracts.
Verification scope
Release validation covers the full race suite, both HTTP mux modes, module/generated-config consistency, static checks, six target builds, container TLS/payload checks, and package validation. Three cancellation regressions also passed 200 consecutive race-detector runs. The earlier reverse control failed with the interruption fix removed. On PostgreSQL 18.6, leaving during a bounded 0.8-second fatal query kept both pass-error counters at zero; the next scrape returned pg_up 1 and the cached metric without repeating the SQL.
Local acceptance of the exact release artifacts also covered PostgreSQL 9.2–9.6 with the legacy configuration, PostgreSQL 10–18 and 19 RC1 with the default configuration, and PgBouncer 1.26.1. Linux amd64/arm64/ppc64le archives and RPM/DEB packages passed runtime and installation checks; ARM64 package upgrades from 1.5.0 preserved local configuration. Darwin ARM64 passed 24 functional groups, including HTTPS authentication, reload overlap, standby promotion, and reconnect. Windows and Intel macOS received static checks only; container-based package tests did not exercise a real systemd boot. The published Docker Hub 1.6.0 and latest tags resolve to the same amd64/arm64 manifest. Both registry images were pulled and passed CA, payload, and TLS checks; their binaries match the corresponding release archives byte for byte.
Progress SQL variants were checked as a monitoring role on PostgreSQL 12, 17, and 18; the system-catalog follow-up and real cross-database VACUUM were verified on 18.6. These are scoped acceptance results, not a new exhaustive audit of every PostgreSQL release, extension, dashboard, or production workload. Composite, Patroni, pgBackRest, and PostgreSQL-log components remain on the separate snort development line and are not included in v1.6.0.
Full changelog: v1.5.0...v1.6.0
PG Exporter v1.5.0
PG Exporter v1.5.0 improves connection safety, replication metric accuracy, database discovery, and health reporting. It is built with Go 1.27.3 and refreshed dependencies.
Highlights
- Reject malformed connection URLs and invalid query parameters before connecting, report errors without exposing credentials, and reject empty URL key files. Explicit TLS settings are no longer silently discarded after a query-decoding error.
- Resolve database identity through
lib/pq, includingdbname/databaseoverrides. Auto-discovery now replaces conflicting database parameters correctly and preserves special database names, preventing duplicate series and failed scrapes. - Read one atomic health state per HTTP response, keeping status codes and response bodies consistent during concurrent role or connectivity changes.
- Replan collectors when the connected user, schemas, or extension set changes; preserve cached results when those sets are unchanged.
- Reject non-finite and overflowing collector/predicate TTLs and query timeouts during configuration parsing. Existing zero-value and finite negative-timeout semantics remain.
- Validate the actual metrics route against the active Go HTTP mux, including escaped paths, so accepted telemetry paths reach the metrics handler.
- Correct replication monitoring: add the owning database label to
pg_sub_*, map WAL receiver states accurately, and clarify publication table counts, subscription relation states, and replication-origin privileges.
Metric and dashboard compatibility
Compared with v1.4.1 on the same PostgreSQL version, v1.5.0 does not add, remove, or rename bundled SQL metric names. Types and units remain unchanged, but labels and state mappings do change. PostgreSQL 19 support first shipped in v1.3.0; upgrading the database can also change the selected SQL branch and a metric's meaning.
| Scope | Metrics | Compatibility action |
|---|---|---|
| v1.5.0 configuration | pg_sub_* |
Adds datname to every sample. Keep database and subscription identity in joins and aggregations; new label sets create new time series. |
| v1.5.0 configuration | pg_recv_state |
Real receiver states starting, waiting, restarting, and stopped now map to 6–9 instead of -1. Update value mappings and state alerts; codes 1–3 are reserved. |
| PG18 → PG19 | Existing PG18 metric names | None are removed or renamed by the PG19 branches in this bundle. This does not guarantee unchanged semantics or labels from PostgreSQL itself. |
| PG19 | pg_sub_sync_error_count |
Keeps the name but becomes the sum of table and sequence synchronization errors. For table-only alerts, use pg_sub_sync_table_error_count; pg_sub_sync_seq_error_count reports the sequence component. Do not double-count the components and their sum. |
| PG19 | pg_sub_has_worker, pg_sub_reset_time, pg_sub_confl_* |
Adds worker presence, reset time, and eight conflict counters. The subscription row can remain without an apply worker; metric presence alone is not a worker-health check. |
| PG19 | pg_subrel_count |
Includes sequences as well as tables; pg_pubrel_count still counts tables only. Review panel labels and count comparisons. |
| PG19 | pg_wal_fpi_bytes, pg_lock_stat_*, pg_recovery_state_*, pg_vacuum_score_* |
Additive metrics. Recovery state is replica-only; autovacuum scores are primary-only. Existing WAL, lock-distribution, and recovery families remain. |
Users upgrading from PG17 or earlier must also migrate older names: checkpoint metrics left pg_bgwriter_* in PG17, and pg_wal_write, pg_wal_sync, pg_wal_write_time, and pg_wal_sync_time are absent from PG18 onward. The full compatibility guide lists each replacement, label/aggregation differences, and mixed-version PromQL.
Before rollout, evaluate the actual dashboard and alert expressions and test missing-series input. A successful scrape does not ensure every expected metric exists; an empty alert expression can silently stop firing. The missing-metric checks include a per-target rule and explain when absence is expected. The full PG19 metric table links to the tagged collector definitions; PostgreSQL validation remains scoped to 19 RC1.
Security and dependencies
The Go toolchain moves from Go 1.26.5 to 1.27.3. This includes CVE-2026-111943, which rejects certificate chains containing a small set of untrusted intermediates, plus the cumulative HTTP, TLS, template, parser, and build-tool fixes in Go 1.26.6 and Go 1.27.2.
The independent golang.org/x/net dependency moves 0.57.0 → 0.61.0, incorporating the HTTP/2 fixes released in 0.60.0:
- CVE-2026-78659: excessive memory use with trailer headers.
- CVE-2026-78669: excessive CPU consumption handling window updates.
- CVE-2026-78663: incorrect flow-control credit accounting.
- CVE-2026-97032: HPACK encoder race/panic.
- CVE-2026-78660: malformed HTTP/2 framing response headers.
x/crypto 0.54.0 → 0.58.0 also incorporates SSH fixes CVE-2026-56854, CVE-2026-56855, and CVE-2026-78662; x/text 0.40.0 → 0.43.0 incorporates the precis fix CVE-2026-56851. PG Exporter does not import those SSH/precis packages. These are dependency-version fixes, not evidence that those vulnerabilities were exploitable through this exporter.
Other maintenance updates include Prometheus client_golang 1.25.0, client_model 0.6.3, common 0.72.1, exporter-toolkit 0.20.0, klauspost/compress 1.20.3, and the maintained YAML v3 module go.yaml.in/yaml/v3 3.0.5. The database driver remains lib/pq 1.12.3.
Source scans on Linux amd64, Darwin arm64, and Windows amd64 found no known symbol-level or imported-package findings in this release candidate as of 2026-10-23. An unimported OpenPGP module advisory (GO-2026-5932) remains. Static symbol matches in older versions are not proof of exploitation. Upgrading the host's Go installation alone does not update an existing exporter binary: install the rebuilt v1.5.0 artifact.
The bilingual release articles provide the full CVE/version table and scope: English · 简体中文.
Upgrade notes
-
Upgrade the binary and the collector configuration to obtain the replication fixes. Package managers preserve locally modified configuration; merge the updated definitions deliberately.
-
pg_sub_*now carries adatnamelabel. Review recording rules and dashboards that assume the previous label set, especially where subscription names repeat across databases. -
On PostgreSQL 10–13, grant the monitoring role access to the subscription OID in the exporter's main connection database:
GRANT SELECT (oid) ON pg_catalog.pg_subscription TO monitor;
-
pg_recv_stateretains 0=streaming, 4=stopping, and 5=connecting (PG19+); it adds 6=starting, 7=waiting, 8=restarting, and 9=stopped. Values 1–3 remain reserved, and -1 means unknown. -
Keep
pg_origindisabled unless the documented privileges have been provisioned. On PostgreSQL 13 and older, granting function execution alone does not remove its internal superuser check. -
Fix malformed URLs and non-finite/overflowing durations before upgrading; these inputs now fail explicitly. TLS remains opt-in when
sslmodeis omitted, so setsslmode=verify-fulland the appropriate CA for remote targets. -
Existing behavior is retained: an empty YAML configuration successfully installs zero collectors; SIGTERM does not drain active HTTP requests.
Configuration and validation
The regular bundle contains 58 YAML files including the schema reference, 96 query branches, 59 namespaces, and 460 distinct metric definitions. This replaces the imprecise “600+ metrics” wording; it is not a reduction in collectors. Actual time-series counts vary with versions, configuration, objects, and labels.
Validation covered PostgreSQL 9.1–9.6, 10–18, and 19 RC1, plus PgBouncer 1.26.1, using non-superuser monitoring accounts. It also covered real standby promotion, disconnection/recovery, metadata and cache changes, failed reloads, concurrent requests, race tests, both HTTP mux modes, and approximately 600,000 fuzz executions.
Release targets: Linux amd64/arm64/ppc64le, macOS amd64/arm64, and Windows amd64. Docker images use pgsty/pg_exporter:1.5.0 for amd64 and arm64. PostgreSQL 9.1–9.6 requires the legacy configuration.
Full diff: v1.4.1...v1.5.0
pg_exporter-v1.4.1
v1.4.1 is a maintenance release focused on metric accuracy and RPM upgrade compatibility.
Highlights:
- Fix
pg_subrel_countovercounting when parallel logical replication apply workers are active: deduplicatepg_stat_subscriptionby subscription ID and name before aggregating subscription relation states - If a query result omits a configured
LABELcolumn, that collector's scrape now fails atomically instead of emitting an empty label or retaining stale results; other non-fatal collectors continue normally - Rename the official RPM package and artifact prefix from
pg_exportertopg-exporter; the new package provides and obsoletes the legacy name, allowing direct upgrades - Refresh version and standalone package metadata, add missing-label regression coverage, and validate RPM configuration, artifact names, and compatibility metadata in CI
Upgrade Notes:
- Custom collector SQL must return every
LABELcolumn; the result schema must remain complete even when the query returns zero rows - If automation matches GitHub RPM file names directly, update
pg_exporter-*.rpmtopg-exporter-*.rpm
https://github.com/pgsty/pg_exporter/releases/tag/v1.4.1
Changelog
pg_exporter-v1.4.0
Changelog
- e216bcc bump go to 1.26.5
- 7c855da ci: add regular verification workflow
- b79a3db ci: verify generated configs, cancel stale runs, dedupe tests
- 0bd80df feat: add snapshot histogram collectors
- a1ab4d5 feat: replace pg_session with pg_xact_age collector
- ff39570 fix: align goreleaser version format and package metadata
- 7097f2d fix: close primary pool on fail-fast startup
- dd74186 fix: exempt timestamps and booleans from histogram scale
- 20489c0 fix: forward GOPROXY to docker build
- c51b0ba fix: preserve explicit exporter connection target
- 16b97b3 fix: reject non-canonical telemetry path and escape landing page
- c702a9a fix: set prometheus home and default database in packages
- 28da792 fix: validate and isolate HTTP routes
- b843800 refactor: unify histogram detection via Column.IsHistogram
v1.3.0 PG19 support
v1.3.0 adds PostgreSQL 19 support
- PostgreSQL support range is extended from 10-18+ to 10-19+. The legacy PostgreSQL 9.1-9.6 bundle remains under legacy/.
- New PG19 collectors: pg_recovery_state, pg_lock_stat, pg_vacuum_score.
- New PG19 branches: pg_wal_19, pg_sub_19.
- PG19 compatibility updates: pg_recv recognizes connecting; pg_slot recognizes idle_timeout; pg_db_confl now uses an explicit column list.
- Build dependencies updated to Go 1.26.4, lib/pq v1.12.3, Prometheus client v1.23.2, and exporter-toolkit v0.16.0.
- Config coverage tests now respect dynamic collector loading: optional or removed collectors are not required to exist.
- 1021219 Add PG19 pg_sub collector branch
- 76c65c7 Add PG19 pg_wal collector branch
- 3dbdde2 Avoid SELECT star in pg_db_confl collector
- 7cd6d44 PG 19 collector final
- c807dea bump version string to 1.3.0
- 456cc6c conf: regenerate merged config to include pg_wal_19
- 9be5a89 config: add PG 19 recovery state collector
- a6ea2f8 feat(config): add PG19 lock stats collector
- 90ade13 feat(config): add PG19 vacuum score collector
- 0dbdf27 feat: add PG progress task summary
- 5f485e5 pg_recv: add PG 19 connecting receiver state
- fa7c38c pg_slot: add PG 19 idle_timeout invalidation reason
- 2004cf2 v1.3.0 release
pg_exporter-v1.2.2
Changelog
- e303f2a release: bump to v1.2.2 with Go 1.26.2
pg_exporter-v1.2.1
v1.2.1 is a lightweight maintenance release focused on release engineering, config package consistency, and documentation/metadata refresh. It does not introduce new collector semantics or runtime behavior changes.
Highlights
- Refresh the build toolchain: bump both release workflows and Docker build images to Go
1.26.1 - Standardize config style: switch inline
descriptionvalues in both current and legacy configs to double-quoted form, and regenerate mergedpg_exporter.yml/legacy/pg_exporter.yml - Add config consistency tests: verify split and merged configs remain equivalent, and check inline metric description style to reduce configuration drift
- Refresh packaging metadata: update RPM / DEB support descriptions to PostgreSQL
9.x - 18+and pgBouncer1.8 - 1.25+, and refresh Pigsty documentation links
Changelog
pg_exporter-v1.2.0
v1.2.0 is a stability-and-compatibility focused minor release across startup flow, hot reload, health probing, config validation, and legacy support.
New Features
- Add robust hot reload workflow: support platform-specific reload signals (
SIGHUP/SIGUSR1) and strengthenPOST /reloadto refresh configs and query plans without process restart - Switch startup to non-blocking mode: HTTP endpoints come up first even when target precheck fails, making recovery and monitoring integration smoother
- Add PostgreSQL 9.1-9.6 legacy config bundle: provide
legacy/configs and amake conf9target for easier onboarding of EOL PostgreSQL versions - Rework health probing architecture: use cached health snapshots with periodic probes for more consistent role-based health endpoints and smoother reload behavior
- Improve release engineering baseline: run
go testandgo vetin release workflows and bump build toolchain to Go 1.26.0
Bug Fixes
- Fix multiple config parsing edge cases: reject malformed metrics entries, return explicit errors when config dirs fail to load valid YAML, and harden runtime fallbacks
- Fix CLI bool flag parsing to correctly handle
--flag=falsestyle arguments - Fix
/explainoutput/rendering behavior by adjusting content type handling and using safer template rendering - Fix predicate query and PG URL handling details: better BOOL/BOOLEAN predicate support, safer row lifecycle handling, and improved
dbnamequery-parameter parsing/redaction - Fix resource cleanup when auto-discovered targets are removed by closing dropped server connections asynchronously
- Fix metric/label validation details including const-label conflict checks, scaled default-value handling, and Prometheus naming/rule checks
Changelog
- 8c7f61c Document PgBouncer health probing pitfalls
- 9a7acf7 Fix PgBouncer health probe (avoid lib/pq Ping ';')
- d33fc4e bump golang to 1.26.0
- 6c8b1a8 chore(go): bump to go1.25.7 for CVE fixes
- 3aea941 ci: run go test and go vet in release workflows
- d3ab676 config: clarify version splits and add PG10-18 coverage test
- 5af178b exporter: harden predicate queries and PGURL handling
- c78c081 exporter: make health checks cached and reload safe
- d89ed88 feat: add PostgreSQL 9.0-9.6 legacy collectors
- feda9bb feat: enable hot reload and non-blocking startup
- 0770d69 fix(cli): normalize kingpin bool flags passed as --flag=false
- abfdab2 fix(pgbouncer): harden precheck and health probe
- 01d0619 fix: add conf9 target and harden PG9 legacy collectors
- 90b5e0f fix: allow startup when target precheck fails
- 755101b fix: close removed servers asynchronously
- 262d8d9 fix: harden config parsing and runtime fallbacks
- 692d282 fix: make PG9.0 collectors and precheck work
- c42c07a fix: normalize config parsing and harden exporter runtime
- 6b65601 fix: serve /explain as text and reject conflicting const labels
- 491c214 fix: tighten config loading and metric helpers
- 6b5f7c2 fix: use html/template for Query HTML rendering
- 01ca8d9 release: bump metadata and docs to v1.2.0
- dd95ad6 remove pg_exporter docs page ci
- 5d3d506 update copyright year to 2026
- c75dd09 v1.2.0 release
- 8df9d7c v1.2.0 release candidate