Skip to content

Commit 62a52f8

Browse files
fix(prometheus.exporter.postgres): Update version of the exporter fork to fix pg_settings (#5574)
### Brief description of Pull Request Update version of the grafana fork of postgres_exporter to include a fix for a panic with Cloud Sql Postgres in pg_settings collector. ### Pull Request Details The upstream fix is included in upstream postgres_exporter v0.19.0, which will be shipped with Alloy 1.14.0. This backport is targeted for Alloy 1.13. Fork patch: grafana/postgres_exporter#30 ### Issue(s) fixed by this Pull Request Fixes #5502 ### 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 6c62760 commit 62a52f8

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

collector/builder-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ replaces:
7171
# TODO - remove forks when changes are merged upstream — non-singleton cadvisor
7272
- github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20240729082359-1f04a91701e2
7373
# TODO - track exporter-package-v0.18.1 branch of grafana fork; remove once merged upstream
74-
- github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363
74+
- github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb
7575
# TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
7676
- github.com/prometheus/mysqld_exporter => github.com/grafana/mysqld_exporter v0.17.2-0.20250226152553-be612e3fdedd
7777
# 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
@@ -1038,7 +1038,7 @@ replace github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-2025
10381038

10391039
replace github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20240729082359-1f04a91701e2
10401040

1041-
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363
1041+
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb
10421042

10431043
replace github.com/prometheus/mysqld_exporter => github.com/grafana/mysqld_exporter v0.17.2-0.20250226152553-be612e3fdedd
10441044

collector/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,8 @@ github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260217121301-aa27
11691169
github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260217121301-aa2759218aeb/go.mod h1:oqSk8XwYnL4saX2ZdpfnTJV9vURSNaVjK6yomOAVIPI=
11701170
github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF3YH66t4qL8=
11711171
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
1172-
github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363 h1:/vCopugIegPx9brm+E9+4bMQ6uIsZujCoE7su3bLLbk=
1173-
github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363/go.mod h1:dOdKpz09HRMtkSs8kba90eNmrL81E+LMotcP7eW9/ek=
1172+
github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb h1:zYE9mLwsO4EuAOSzqQF+G4fSjwzpwd3K4r/R5uYv0rY=
1173+
github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb/go.mod h1:dOdKpz09HRMtkSs8kba90eNmrL81E+LMotcP7eW9/ek=
11741174
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 h1:iwOtYXeeVSAeYefJNaxDytgjKtUuKQbJqgAIjlnicKg=
11751175
github.com/grafana/pyroscope-go/godeltaprof v0.1.8/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
11761176
github.com/grafana/pyroscope/api v1.2.0 h1:SfHDZcEZ4Vbj/Jj3bTOSpm4IDB33wLA2xBYxROhiL4U=

dependency-replacements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ replaces:
8181

8282
- comment: TODO - track exporter-package-v0.18.1 branch of grafana fork; remove once merged upstream
8383
dependency: github.com/prometheus-community/postgres_exporter
84-
replacement: github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363
84+
replacement: github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb
8585

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

extension/alloyengine/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ replace github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-2025
10281028
replace github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20240729082359-1f04a91701e2
10291029

10301030
// TODO - track exporter-package-v0.18.1 branch of grafana fork; remove once merged upstream
1031-
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363
1031+
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb
10321032

10331033
// TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
10341034
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
@@ -1187,8 +1187,8 @@ github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260217121301-aa27
11871187
github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260217121301-aa2759218aeb/go.mod h1:oqSk8XwYnL4saX2ZdpfnTJV9vURSNaVjK6yomOAVIPI=
11881188
github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF3YH66t4qL8=
11891189
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
1190-
github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363 h1:/vCopugIegPx9brm+E9+4bMQ6uIsZujCoE7su3bLLbk=
1191-
github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363/go.mod h1:dOdKpz09HRMtkSs8kba90eNmrL81E+LMotcP7eW9/ek=
1190+
github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb h1:zYE9mLwsO4EuAOSzqQF+G4fSjwzpwd3K4r/R5uYv0rY=
1191+
github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb/go.mod h1:dOdKpz09HRMtkSs8kba90eNmrL81E+LMotcP7eW9/ek=
11921192
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 h1:iwOtYXeeVSAeYefJNaxDytgjKtUuKQbJqgAIjlnicKg=
11931193
github.com/grafana/pyroscope-go/godeltaprof v0.1.8/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
11941194
github.com/grafana/pyroscope/api v1.2.0 h1:SfHDZcEZ4Vbj/Jj3bTOSpm4IDB33wLA2xBYxROhiL4U=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ replace github.com/thanos-io/objstore => github.com/grafana/objstore v0.0.0-2025
10691069
replace github.com/google/cadvisor => github.com/grafana/cadvisor v0.0.0-20240729082359-1f04a91701e2
10701070

10711071
// TODO - track exporter-package-v0.18.1 branch of grafana fork; remove once merged upstream
1072-
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363
1072+
replace github.com/prometheus-community/postgres_exporter => github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb
10731073

10741074
// TODO - remove once PR is merged upstream - https://github.com/prometheus/mysqld_exporter/pull/774
10751075
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
@@ -1197,8 +1197,8 @@ github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260217121301-aa27
11971197
github.com/grafana/opentelemetry-ebpf-profiler v0.0.202602-0.20260217121301-aa2759218aeb/go.mod h1:oqSk8XwYnL4saX2ZdpfnTJV9vURSNaVjK6yomOAVIPI=
11981198
github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF3YH66t4qL8=
11991199
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
1200-
github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363 h1:/vCopugIegPx9brm+E9+4bMQ6uIsZujCoE7su3bLLbk=
1201-
github.com/grafana/postgres_exporter v0.0.0-20250930111128-c8f6a9f4d363/go.mod h1:dOdKpz09HRMtkSs8kba90eNmrL81E+LMotcP7eW9/ek=
1200+
github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb h1:zYE9mLwsO4EuAOSzqQF+G4fSjwzpwd3K4r/R5uYv0rY=
1201+
github.com/grafana/postgres_exporter v0.0.0-20260218135413-e22add1afabb/go.mod h1:dOdKpz09HRMtkSs8kba90eNmrL81E+LMotcP7eW9/ek=
12021202
github.com/grafana/pyroscope-go/godeltaprof v0.1.8 h1:iwOtYXeeVSAeYefJNaxDytgjKtUuKQbJqgAIjlnicKg=
12031203
github.com/grafana/pyroscope-go/godeltaprof v0.1.8/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
12041204
github.com/grafana/pyroscope/api v1.2.0 h1:SfHDZcEZ4Vbj/Jj3bTOSpm4IDB33wLA2xBYxROhiL4U=

0 commit comments

Comments
 (0)