Skip to content

Commit 9f4e88f

Browse files
cristiangrecojharvey10
authored andcommitted
feat(prometheus.exporter.postgres): Update to version 0.19.1 (#5659)
### Brief description of Pull Request Update to version 0.19.1 of postgres_exporter. See https://github.com/prometheus-community/postgres_exporter/releases/tag/v0.19.1 ### Pull Request Details Update to version 0.19.1 of postgres_exporter, which includes: - Filter and warn about duplicates in pg_stat_statements - perf/reliability: Optimize pg_stat_statements queries that uses too many temp files - fix: ignore setting google_dataplex.max_messages - wal: Fix collector NULL SUM(size) ### Issue(s) fixed by this Pull Request <!-- Uncomment the following line and fill in an issue number if you want a GitHub issue to be closed automatically when this PR gets merged. --> <!-- Fixes #issue_id --> ### Notes to the Reviewer <!-- Add any relevant notes for the reviewers and testers of this PR. --> ### PR Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation added - [ ] Tests updated - [ ] Config converters updated
1 parent 64e2032 commit 9f4e88f

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

collector/builder-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ replaces:
121121
- github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-20250210100727-533688b5600d
122122
# TODO - remove forks when changes are merged upstream — non-singleton cadvisor
123123
- github.com/google/cadvisor => github.com/grafana/cadvisor grafana-v0.54.1-noglobals
124-
# TODO - this tracks exporter-package-v0.19.0 branch of grafana fork; remove once all patches are merged upstream
125-
- github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf
124+
# TODO - this tracks exporter-package-v0.19.1 branch of grafana fork; remove once all patches are merged upstream
125+
- github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a
126126
# TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
127127
- github.com/prometheus/mysqld_exporter => github.com/grafana/mysqld_exporter v0.17.2-0.20250226152553-be612e3fdedd
128128
# TODO: replace node_exporter with custom fork for multi usage. https://github.com/prometheus/node_exporter/pull/2812

collector/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ replace github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-2025
10951095

10961096
replace github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20260204200106-865a22723970
10971097

1098-
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf
1098+
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a
10991099

11001100
replace github.com/prometheus/mysqld_exporter => github.com/grafana/mysqld_exporter v0.17.2-0.20250226152553-be612e3fdedd
11011101

collector/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,8 @@ github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260216144214-2413
12111211
github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260216144214-241376220646/go.mod h1:tspi+K8p4WpFpjT61gNdQRgd2wuai7w/PPpUFPH8wNs=
12121212
github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF3YH66t4qL8=
12131213
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
1214-
github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf h1:GaBnxd6zH0+QaZuMBWra2MdjKUWTI8edIQx1dXMLau8=
1215-
github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf/go.mod h1:4zH24t6LEqkdL3ZfBTtp0kGHOBr6komR55CrmL2AAg4=
1214+
github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a h1:uT3vXB+E1dAMfvrgwQR6PwQbNmgLe6cyvTxHnHcmuns=
1215+
github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a/go.mod h1:4zH24t6LEqkdL3ZfBTtp0kGHOBr6komR55CrmL2AAg4=
12161216
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 h1:iwOtYXeeVSAeYefJNaxDytgjKtUuKQbJqgAIjlnicKg=
12171217
github.com/grafana/pyroscope-go/godeltaprof v0.1.8/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
12181218
github.com/grafana/pyroscope/api v1.2.0 h1:SfHDZcEZ4Vbj/Jj3bTOSpm4IDB33wLA2xBYxROhiL4U=

dependency-replacements.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ replaces:
7373
dependency: github.com/google/cadvisor
7474
replacement: github.com/grafana/cadvisor grafana-v0.54.1-noglobals
7575

76-
- comment: TODO - this tracks exporter-package-v0.19.0 branch of grafana fork; remove once all patches are merged upstream
76+
- comment: TODO - this tracks exporter-package-v0.19.1 branch of grafana fork; remove once all patches are merged upstream
7777
dependency: github.com/prometheus-community/postgres_exporter
78-
replacement: github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf
78+
replacement: github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a
7979

8080
- comment: TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
8181
dependency: github.com/prometheus/mysqld_exporter

extension/alloyengine/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,8 +1066,8 @@ replace github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-2025
10661066
// TODO - remove forks when changes are merged upstream — non-singleton cadvisor
10671067
replace github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20260204200106-865a22723970
10681068

1069-
// TODO - this tracks exporter-package-v0.19.0 branch of grafana fork; remove once all patches are merged upstream
1070-
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf
1069+
// TODO - this tracks exporter-package-v0.19.1 branch of grafana fork; remove once all patches are merged upstream
1070+
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a
10711071

10721072
// TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
10731073
replace github.com/prometheus/mysqld_exporter => github.com/grafana/mysqld_exporter v0.17.2-0.20250226152553-be612e3fdedd

extension/alloyengine/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,8 +1229,8 @@ github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260216144214-2413
12291229
github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260216144214-241376220646/go.mod h1:tspi+K8p4WpFpjT61gNdQRgd2wuai7w/PPpUFPH8wNs=
12301230
github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF3YH66t4qL8=
12311231
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
1232-
github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf h1:GaBnxd6zH0+QaZuMBWra2MdjKUWTI8edIQx1dXMLau8=
1233-
github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf/go.mod h1:4zH24t6LEqkdL3ZfBTtp0kGHOBr6komR55CrmL2AAg4=
1232+
github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a h1:uT3vXB+E1dAMfvrgwQR6PwQbNmgLe6cyvTxHnHcmuns=
1233+
github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a/go.mod h1:4zH24t6LEqkdL3ZfBTtp0kGHOBr6komR55CrmL2AAg4=
12341234
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 h1:iwOtYXeeVSAeYefJNaxDytgjKtUuKQbJqgAIjlnicKg=
12351235
github.com/grafana/pyroscope-go/godeltaprof v0.1.8/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
12361236
github.com/grafana/pyroscope/api v1.2.0 h1:SfHDZcEZ4Vbj/Jj3bTOSpm4IDB33wLA2xBYxROhiL4U=

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,8 @@ replace github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-2025
11091109
// TODO - remove forks when changes are merged upstream — non-singleton cadvisor
11101110
replace github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20260204200106-865a22723970
11111111

1112-
// TODO - this tracks exporter-package-v0.19.0 branch of grafana fork; remove once all patches are merged upstream
1113-
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf
1112+
// TODO - this tracks exporter-package-v0.19.1 branch of grafana fork; remove once all patches are merged upstream
1113+
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a
11141114

11151115
// TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
11161116
replace github.com/prometheus/mysqld_exporter => github.com/grafana/mysqld_exporter v0.17.2-0.20250226152553-be612e3fdedd

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,8 @@ github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260216144214-2413
12391239
github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260216144214-241376220646/go.mod h1:tspi+K8p4WpFpjT61gNdQRgd2wuai7w/PPpUFPH8wNs=
12401240
github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF3YH66t4qL8=
12411241
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
1242-
github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf h1:GaBnxd6zH0+QaZuMBWra2MdjKUWTI8edIQx1dXMLau8=
1243-
github.com/grafana/postgres_exporter v0.0.0-20260212092411-d256e52d0faf/go.mod h1:4zH24t6LEqkdL3ZfBTtp0kGHOBr6komR55CrmL2AAg4=
1242+
github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a h1:uT3vXB+E1dAMfvrgwQR6PwQbNmgLe6cyvTxHnHcmuns=
1243+
github.com/grafana/postgres_exporter v0.0.0-20260225165717-9c2c77e3702a/go.mod h1:4zH24t6LEqkdL3ZfBTtp0kGHOBr6komR55CrmL2AAg4=
12441244
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 h1:iwOtYXeeVSAeYefJNaxDytgjKtUuKQbJqgAIjlnicKg=
12451245
github.com/grafana/pyroscope-go/godeltaprof v0.1.8/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
12461246
github.com/grafana/pyroscope/api v1.2.0 h1:SfHDZcEZ4Vbj/Jj3bTOSpm4IDB33wLA2xBYxROhiL4U=

0 commit comments

Comments
 (0)