Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cybertec-postgresql/postgres_exporter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 77e1a0d
Choose a base ref
...
head repository: prometheus-community/postgres_exporter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5483697
Choose a head ref
  • 18 commits
  • 20 files changed
  • 7 contributors

Commits on Aug 13, 2025

  1. Bump github.com/prometheus/client_golang from 1.22.0 to 1.23.0 (prome…

    …theus-community#1183)
    
    Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.22.0 to 1.23.0.
    - [Release notes](https://github.com/prometheus/client_golang/releases)
    - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
    - [Commits](prometheus/client_golang@v1.22.0...v1.23.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/client_golang
      dependency-version: 1.23.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 13, 2025
    Configuration menu
    Copy the full SHA
    cb0bac6 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2025

  1. Exclude the metrics fetching session's data from pg_stat_activity (pr…

    …ometheus-community#1185)
    
    To reduce the observer effect, filter out pg_stat_activity rows of the
    postgres_exporter session from all SA queries, based on pid / procpid.
    
    A bit annoying to see idling DBs showing pg_stat_activity_count "active"
    count of 1
    
    Signed-off-by: Kaarel Moppel <kaarel.moppel@gmail.com>
    kmoppel authored Aug 26, 2025
    Configuration menu
    Copy the full SHA
    198454c View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2025

  1. Update common Prometheus files (prometheus-community#1191)

    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    prombot authored Sep 20, 2025
    Configuration menu
    Copy the full SHA
    1c6854e View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2025

  1. Update common Prometheus files (prometheus-community#1194)

    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    prombot authored Sep 23, 2025
    Configuration menu
    Copy the full SHA
    2850c3d View commit details
    Browse the repository at this point in the history
  2. Bump prometheus deps (prometheus-community#1195)

    -	Update github.com/prometheus/client_golang to v1.23.1
    -	Update github.com/prometheus/common to v0.66.1
    -	Update github.com/prometheus/exporter-toolkit to v0.14.1
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    cristiangreco authored Sep 23, 2025
    Configuration menu
    Copy the full SHA
    105c422 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2025

  1. Prepare release 0.18.0 (prometheus-community#1196)

    * Prepare release `0.18.0`
    
    * [FEATURE] Add `stat_progress_vacuum` collector by @ianbibby
    * [FEATURE] Add `buffercache_summary` collector by @sfc-gh-pnuttall
    * [FEATURE] `stat_statements`: export query itself together with `queryId` by @Delorien84
    * [ENHANCEMENT] Update Go version by @SuperQ
    * [ENHANCEMENT] Improve error handling for `Server.Scrape` by @BoweFlex
    * [ENHANCEMENT] `stat_user_tables`: record table-only size bytes in addition to the total size bytes by @Sticksman
    * [ENHANCEMENT] (chore) Fix a typo and use `slices.Contains` by @cristiangreco
    * [ENHANCEMENT] Update mixin to latest changes from `grafana/postgres_exporter` by @cristiangreco, @gaantunes, @v-zhuravlev and @mshahzeb
    * [ENHANCEMENT] Exclude the metrics fetching session's data from pg_stat_activity by @kmoppel
    * [BUGFIX] Ensure database connections are always closed by @cristiangreco and @dehaansa
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    
    * rm entry about go update
    
    Co-authored-by: Joe Adams <github@joeadams.io>
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    
    * add PRs
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    
    * update date
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    
    ---------
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    Co-authored-by: Joe Adams <github@joeadams.io>
    cristiangreco and sysadmind authored Sep 25, 2025
    Configuration menu
    Copy the full SHA
    e62fe08 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2025

  1. Fix swapped flushedLsn and receiveStartTli for wal_receiver col…

    …lector (prometheus-community#1198)
    
    In `pgStatWalReceiverQueryTemplate`, the order of the columns (when `hasFlushedLSN == true`) is:
    
    - ...
    - `receive_start_lsn`
    - `flushed_lsn`
    - `receive_start_tli`
    - ...
    
    However, columns were scanned in this order:
    
    - ...
    - `receive_start_lsn` -> `receiveStartLsn`
    - `receive_start_tli` -> `flushedLsn` (!)
    - `flushed_lsn` -> `receiveStartTli` (!)
    - ...
    
    This incorrect hydration of variables also manifests as swapped values for the
    `pg_stat_wal_receiver_flushed_lsn` and `pg_stat_wal_receiver_receive_start_tli` metrics.
    
    This seems to be a bug that has existed since the initial implementation:
    
    - 2d7e152
    - prometheus-community#844
    
    In this patch, I'm:
    
    - fixing the `.Scan()`, so that it hydrates variables in the correct order
    
    - adjusting the order in which metrics are pushed out to the channel,
      to follow the order we consume them in
      (.., `receive_start_lsn`, `flushed_lsn`, `receive_start_tli`, ..)
    
    - adjusting the walreceiver tests, to follow the new order (which matches .`Scan()`)
    
    - fixing a small identation issue in `pgStatWalReceiverQueryTemplate`
    
    Signed-off-by: Slavi Pantaleev <slavi@devture.com>
    spantaleev authored Sep 29, 2025
    Configuration menu
    Copy the full SHA
    ef2736e View commit details
    Browse the repository at this point in the history
  2. Fix prometheus-community#1185 bug (prometheus-community#1197) (promet…

    …heus-community#1201)
    
    This semicolon breaks the query
    
    Signed-off-by: Joe Adams <github@joeadams.io>
    Co-authored-by: Joe Adams <github@joeadams.io>
    cristiangreco and sysadmind authored Sep 29, 2025
    Configuration menu
    Copy the full SHA
    b4c5250 View commit details
    Browse the repository at this point in the history
  3. Prepare release v0.18.1 (prometheus-community#1202)

    * [BUGFIX] Fix swapped `flushedLsn` and `receiveStartTli` for `wal_receiver` collector by @spantaleev in prometheus-community#1198
    * [BUGFIX] Fix superfluous semicolon breaking query in `process_idle` by @sysadmind in prometheus-community#1197 and prometheus-community#1201
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    cristiangreco authored Sep 29, 2025
    Configuration menu
    Copy the full SHA
    320b684 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2025

  1. Update Go (prometheus-community#1203)

    * Update minimum supported Go to 1.24.0.
    * Update Go build to 1.25.x.
    * Update PostgreSQL testing versions.
    
    Signed-off-by: SuperQ <superq@gmail.com>
    SuperQ authored Sep 30, 2025
    Configuration menu
    Copy the full SHA
    a95b518 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2025

  1. feat: allow setting limit in pg_stat_statements (prometheus-commu…

    …nity#1205)
    
    Add `.limit` CLI flag to `stat_statements` collector to allow
    setting a custom number of queries to be returned.
    
    Signed-off-by: Cristian Greco <cristian@regolo.cc>
    cristiangreco authored Oct 8, 2025
    Configuration menu
    Copy the full SHA
    c70a059 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2025

  1. Bump github.com/prometheus/client_golang from 1.23.1 to 1.23.2 (prome…

    …theus-community#1204)
    
    Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.23.1 to 1.23.2.
    - [Release notes](https://github.com/prometheus/client_golang/releases)
    - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
    - [Commits](prometheus/client_golang@v1.23.1...v1.23.2)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/client_golang
      dependency-version: 1.23.2
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 12, 2025
    Configuration menu
    Copy the full SHA
    00b76df View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2025

  1. Enable pprof (prometheus-community#1212)

    Add the pprof package to allow debug profiling.
    
    Related: prometheus-community#1189
    
    Signed-off-by: SuperQ <superq@gmail.com>
    SuperQ authored Oct 21, 2025
    Configuration menu
    Copy the full SHA
    37171f7 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2025

  1. Update common Prometheus files (prometheus-community#1213)

    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    prombot authored Oct 24, 2025
    Configuration menu
    Copy the full SHA
    9d9a9f9 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2025

  1. Bump github.com/prometheus/common from 0.66.1 to 0.67.2 (prometheus-c…

    …ommunity#1216)
    
    Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.66.1 to 0.67.2.
    - [Release notes](https://github.com/prometheus/common/releases)
    - [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
    - [Commits](prometheus/common@v0.66.1...v0.67.2)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/common
      dependency-version: 0.67.2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 5, 2025
    Configuration menu
    Copy the full SHA
    eae2c87 View commit details
    Browse the repository at this point in the history
  2. Bump github.com/prometheus/exporter-toolkit from 0.14.1 to 0.15.0 (pr…

    …ometheus-community#1215)
    
    Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.14.1 to 0.15.0.
    - [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
    - [Commits](prometheus/exporter-toolkit@v0.14.1...v0.15.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/exporter-toolkit
      dependency-version: 0.15.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 5, 2025
    Configuration menu
    Copy the full SHA
    4372058 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2025

  1. Synchronize common files from prometheus/prometheus (prometheus-commu…

    …nity#1217)
    
    * Update common Prometheus files
    
    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    
    * Fix linting issues.
    
    Signed-off-by: SuperQ <superq@gmail.com>
    
    ---------
    
    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    Signed-off-by: SuperQ <superq@gmail.com>
    Co-authored-by: SuperQ <superq@gmail.com>
    prombot and SuperQ authored Nov 18, 2025
    Configuration menu
    Copy the full SHA
    974c9de View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2025

  1. Bump github.com/prometheus/common from 0.67.2 to 0.67.4 (prometheus-c…

    …ommunity#1224)
    
    Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.67.2 to 0.67.4.
    - [Release notes](https://github.com/prometheus/common/releases)
    - [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
    - [Commits](prometheus/common@v0.67.2...v0.67.4)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/common
      dependency-version: 0.67.4
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 1, 2025
    Configuration menu
    Copy the full SHA
    5483697 View commit details
    Browse the repository at this point in the history
Loading