Repository navigation
chore(deps): update dependency postgres_exporter to v0.21.1 - #2696
Open
renovate[bot] wants to merge 2 commits into
Open
renovate[bot] wants to merge 2 commits into
renovate[bot] wants to merge 2 commits into
Conversation
Package version diffCompares built package versions in legacyPackages between this PR and the tip of the base branch, per system. aarch64-linux: Closure size: 372 -> 372 (2 paths added, 2 paths removed, delta +0, disk usage +0B).x86_64-linux: Closure size: 370 -> 370 (2 paths added, 2 paths removed, delta +0, disk usage +0B). |
This comment has been minimized.
This comment has been minimized.
renovate
Bot
force-pushed
the
renovate/postgres_exporter-0.x
branch
from
November 24, 2026 21:52
b30ac50 to
6f90565
Compare
renovate
Bot
force-pushed
the
renovate/postgres_exporter-0.x
branch
from
November 25, 2026 18:32
60bfef1 to
802e7f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.15.0→0.21.1Release Notes
prometheus-community/postgres_exporter (postgres_exporter)
v0.21.1Compare Source
v0.21.0Compare Source
WARNING: upgrading with large counters can cause a one-time false rate spike.
Non-negative 64-bit counters are now wrapped at
2^53by default so thatsingle-unit changes remain representable as
float64. On the first scrapeafter an upgrade, a previous value such as
2^53 + 1,234,567becomes1,234,567. Prometheus interprets that decrease as a counter reset and countsthe remainder as post-reset growth, so
rate()andincrease()can report alarge false spike for that evaluation window. Use
--no-wrap-large-countersto preserve the previous conversion during rollout;enabling wrapping later will still create this one-time reset boundary.
DEPRECATION: the
DATA_SOURCE_*environment variables that now have a flag.Each one below keeps working and still takes effect when its flag is unset, but
the exporter logs a warning on startup and they will be removed in v0.22.0.
DATA_SOURCE_URI--datasource.uriDATA_SOURCE_URI_FILE--datasource.uri-fileDATA_SOURCE_USER_FILE--datasource.user-fileDATA_SOURCE_PASS_FILE--datasource.pass-fileDATA_SOURCE_NAME,DATA_SOURCE_USERandDATA_SOURCE_PASSare notdeprecated and get no flag: they carry secrets, and CLI flags are readable via
/procand the Kubernetes API. Pass those by environment variable, or pointthe
-fileflags at a mounted secret.DEPRECATION: the
PG_EXPORTER_*environment variables.Each one below keeps working and still takes effect when its flag is unset, but
the exporter logs a warning on startup naming the flag to use instead. They
will be removed in v0.22.0.
PG_EXPORTER_WEB_TELEMETRY_PATH--web.telemetry-pathPG_EXPORTER_DISABLE_DEFAULT_METRICS--disable-default-metricsPG_EXPORTER_AUTO_DISCOVER_DATABASES--auto-discover-databasesPG_EXPORTER_EXTEND_QUERY_PATH--extend.query-pathPG_EXPORTER_CONSTANT_LABELS--constantLabelsPG_EXPORTER_EXCLUDE_DATABASES--exclude-databasesPG_EXPORTER_INCLUDE_DATABASES--include-databasesPG_EXPORTER_METRIC_PREFIX--metric-prefixPG_EXPORTER_COLLECTION_TIMEOUT--collection-timeout--datasource.*CLI flags for the Postgres connection config and deprecate theDATA_SOURCE_*environment variables they replace by @nicolastakashi in #13762^53to preserve single-unit precision by @gnanirahulnutakki in #1351--web.max-requests(default40), independently for the metrics and/probeendpoints, by @ArthurSens in #1428. Previously, both endpoints allowed unlimited concurrent scrapes. After upgrading, requests exceeding the limit receive HTTP 503; multi-target deployments share one limit across all/probetargets, so setups that probe many targets can hit it. Set--web.max-requests=0to preserve the previous unlimited behavior.pidlabel to disambiguate replication connections that otherwise share identical labels by @sysadmind in #1353datnameandschemanamelabels to disambiguate autovacuum workers that otherwise share arelnameby @spicysharkco in #1419PG_EXPORTER_WEB_TELEMETRY_PATHfor removal in v0.22.0; use--web.telemetry-pathinstead, by @ArthurSens in #1428. Until removal, the environment variable continues to set the metrics path when the flag is unset and logs a startup warning.PG_EXPORTER_*environment variables for removal in v0.22.0 in favor of their flags, with a startup warning when one is used, by @adityareddy-dev in #1451pg_scrape_collector_success.stat_user_tables,statio_user_tablesandstatio_user_indexes) against every configured database, and against every discovered database with--auto-discover-databases, by @mwimpelberg28 in #1378. Previously, they only ran against the first one. This can noticeably increase the number of series on multi-database setups.statio_user_indexesmetrics gain adatnamelabel.--web.disable-exporter-metricsto exclude Go, process, andpostgres_exporter_build_infometrics while retaining PostgreSQL scrape-status and configuration-reload metrics, by @ArthurSens in #1428, based on @nicolastakashi's work in #1368.pg_settings.pending_restartaspg_settings_pending_restart{name}from thesettingscollector by @MarcWort in #1396replication_slots: exportconflicting,inactive_since,failoverandsyncedfrompg_replication_slotson PostgreSQL 17+ by @abd-ulbasit in #1421POST /-/reloadorSIGHUP; if a reload fails, the last good configuration stays in use, by @Chaithanyanallamothu in #1406collector.Runtimeruns the collectors of one exporter instance and theconfigpackage holds its configuration, by @ArthurSens in #1330aurora_replica_statuscollector for Amazon Aurora PostgreSQL by @megative in #1311aurora_global_db_statuscollector for Amazon Aurora PostgreSQL by @megative in #1410aurora_stat_logical_wal_cachecollector for Amazon Aurora PostgreSQL by @megative in #1414aurora_stat_databasecollector for Amazon Aurora PostgreSQL by @megative in #1425aurora_global_db_instance_statuscollector for Amazon Aurora PostgreSQL by @megative in #1411aurora_stat_get_db_commit_latencycollector for Amazon Aurora PostgreSQL by @megative in #1413aurora_stat_dml_activitycollector for Amazon Aurora PostgreSQL by @megative in #1412aurora_stat_bgwritercollector for Amazon Aurora PostgreSQL by @megative in #1426aurora_stat_optimized_reads_cachecollector for Amazon Aurora PostgreSQL by @megative in #1427aurora_instancecollector for Amazon Aurora PostgreSQL by @megative in #1433--config.filedisables auth modules and avoids misleading startup warnings in single-target mode, by @ArthurSens in #1370github.com/lib/pqto v1.12.3, which adds support forsslmode=prefer,sslmode=allowandtarget_session_attrs, by @RajeshRajendiran in #1349LICENSEandNOTICEfiles in the container image by @locker95 in #1380pg_database_wraparound_age_datfrozenxidandpg_database_wraparound_age_datminmxidgauges, by @je4yfc in #1417. The existing_secondsmetrics remain as deprecated aliases with unchanged ID-count values; migrate dashboards, rules, and alerts to the new names.long_running_transactionsto count only transactions older than a configurable threshold, by @ArthurSens in #1379, based on the contribution by @moreinhardt in #1210walcollector failing on every scrape on Amazon Aurora PostgreSQL versions that don't supportpg_ls_waldir()by @megative in #1312replicationcollector failing on every scrape on Amazon Aurora PostgreSQL, where it now reports onlypg_replication_is_replica, by @megative in #1424, based on the contribution by @dannotripp in #1274=in a value: such a password is now redacted in logs, andoptions='-c statement_timeout=5000'now works for auto-discovered databases and/probetargets by @abd-ulbasit in #1423lib/pqdriver quote the connection string and were logged as is, by @sysadmind in #1409?password=..., in logged DSNs by @sysadmind in #1389--collection-timeoutto the legacy exporter, including custom queries from--extend.query-path, so that slow queries no longer pile up across scrapes, by @maltere in #1393stat_activity_autovacuum: skip autovacuum workers whosexact_startis NULL instead of failing the whole collector, by @locker95 in #1381stat_database: report errors raised while reading query results instead of ignoring them, by @chieflibrarian in #1399v0.20.1Compare Source
pg_replication_slotsby @megative in #1313v0.20.0Compare Source
BREAKING CHANGES:
Collector flag changes
The
replication_slotcollector has been renamed toreplication_slots.Users explicitly enabling or disabling this collector must update their flags:
--collector.replication_slot->--collector.replication_slots--no-collector.replication_slot->--no-collector.replication_slotsThe
--disable-settings-metricsflag andPG_EXPORTER_DISABLE_SETTINGS_METRICSenvironment variable have been removed.Use
--no-collector.settingsinstead.Metric name changes
The metrics previously exposed by the
replication_slotcollector have beenrenamed to use the
pg_replication_slots_prefix. Update alerts, recordingrules, and dashboards that reference these metrics:
pg_replication_slot_slot_current_wal_lsn->pg_replication_slots_slot_current_wal_lsnpg_replication_slot_slot_confirmed_flush_lsn->pg_replication_slots_slot_confirmed_flush_lsnpg_replication_slot_slot_is_active->pg_replication_slots_slot_is_activepg_replication_slot_safe_wal_size_bytes->pg_replication_slots_safe_wal_size_bytespg_replication_slot_wal_status->pg_replication_slots_wal_statusStandalone collector behavior
The
settings,stat_activity,stat_archiver,stat_replication, andreplication_slotsmetrics now come from standalone collectors instead of thelegacy default metric map.
These metrics no longer honor
--metric-prefix, no longer include deprecatedconstantLabels, and are no longer disabled by--disable-default-metrics.To stop collecting them, disable the corresponding collector explicitly with
its
--no-collector.*flag.pg_settingsmetrics to the standalonesettingscollector by @ArthurSens in #1303stat_archivermetrics to a standalone collector by @ArthurSens in #1304stat_activitymetrics to a standalone collector by @ArthurSens in #1305stat_replicationmetrics to a standalone collector by @ArthurSens in #1306replication_slottoreplication_slotsand move replication slot metrics to a standalone collector by @ArthurSens in #1307pg_stat_progress_vacuummetrics for cross-database vacuums by @steinbrueckri in #1262pg_settingscollection whenshort_descis NULL by @jun-gradial in #1327v0.19.1Compare Source
google_dataplex.max_messagesby @cristiangreco in #1261v0.19.0Compare Source
limitinpg_stat_statementscollector by @cristiangreco in #1205stat_statementscollector by @cristiangreco in #1232stat_checkpointercollector option by @fabiorueda in #1226long_running_transactionscollector by @sysadmind in #1230pg_settingsvalue by @sysadmind in #1252v0.18.1Compare Source
flushedLsnandreceiveStartTliforwal_receivercollector by @spantaleev in #1198process_idleby @sysadmind in #1197 and #1201v0.18.0Compare Source
stat_progress_vacuumcollector by @ianbibby in #1141buffercache_summarycollector by @sfc-gh-pnuttall in #1165stat_statements: export query itself together withqueryIdby @Delorien84 in #940Server.Scrapeby @BoweFlex in #1158stat_user_tables: record table-only size bytes in addition to the total size bytes by @Sticksman Sticksman in #1149slices.Containsby @cristiangreco in #1176grafana/postgres_exporterby @cristiangreco, @gaantunes, @v-zhuravlev and @mshahzeb in #1179process_idleby @sysadmind in #1197v0.17.1Compare Source
v0.17.0Compare Source
v0.16.0Compare Source
BREAKING CHANGES:
The logging system has been replaced with log/slog from the stdlib. This change is being made across the prometheus ecosystem. The logging output has changed, but the messages and levels remain the same. The
tslabel for the timestamp has bewen replaced withtime, the accuracy is less, and the timezone is not forced to UTC. Thecallerfield has been replaced by thesourcefield, which now includes the full path to the source file. Thelevelfield now exposes the log level in capital letters.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.