Skip to content

Commit d241c58

Browse files
Bump github.com/prometheus/exporter-toolkit from 0.11.0 to 0.13.0 (#267)
* Bump github.com/prometheus/exporter-toolkit from 0.11.0 to 0.13.0 Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.11.0 to 0.13.0. - [Release notes](https://github.com/prometheus/exporter-toolkit/releases) - [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md) - [Commits](prometheus/exporter-toolkit@v0.11.0...v0.13.0) --- updated-dependencies: - dependency-name: github.com/prometheus/exporter-toolkit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * PMM-7 fix build. * PMM-7 fix imports. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nurlan Moldomurov <bupychuk1989@gmail.com>
1 parent e2cfeee commit d241c58

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

cmd/postgres_exporter/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
vc "github.com/prometheus/client_golang/prometheus/collectors/version"
3030
"github.com/prometheus/common/promlog"
3131
"github.com/prometheus/common/promlog/flag"
32+
"github.com/prometheus/common/promslog"
3233
"github.com/prometheus/common/version"
3334
"github.com/prometheus/exporter-toolkit/web"
3435
"github.com/prometheus/exporter-toolkit/web/kingpinflag"
@@ -151,7 +152,7 @@ func main() {
151152

152153
level.Info(logger).Log("msg", "Listening on address", "address", *webConfig.WebListenAddresses)
153154
srv := &http.Server{}
154-
if err := web.ListenAndServe(srv, webConfig, logger); err != nil {
155+
if err := web.ListenAndServe(srv, webConfig, promslog.New(&promslog.Config{})); err != nil {
155156
level.Error(logger).Log("msg", "Error running HTTP server", "err", err)
156157
os.Exit(1)
157158
}

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/prometheus/client_golang v1.20.4
1414
github.com/prometheus/client_model v0.6.1
1515
github.com/prometheus/common v0.60.0
16-
github.com/prometheus/exporter-toolkit v0.11.0
16+
github.com/prometheus/exporter-toolkit v0.13.0
1717
github.com/smartystreets/goconvey v1.8.1
1818
github.com/stretchr/testify v1.9.0
1919
github.com/tklauser/go-sysconf v0.3.14
@@ -37,6 +37,8 @@ require (
3737
github.com/klauspost/compress v1.17.9 // indirect
3838
github.com/kr/pretty v0.3.1 // indirect
3939
github.com/kr/text v0.2.0 // indirect
40+
github.com/mdlayher/socket v0.4.1 // indirect
41+
github.com/mdlayher/vsock v1.2.1 // indirect
4042
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4143
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
4244
github.com/pmezard/go-difflib v1.0.0 // indirect

go.sum

+6-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0
4343
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
4444
github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
4545
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
46+
github.com/mdlayher/socket v0.4.1 h1:eM9y2/jlbs1M615oshPQOHZzj6R6wMT7bX5NPiQvn2U=
47+
github.com/mdlayher/socket v0.4.1/go.mod h1:cAqeGjoufqdxWkD7DkpyS+wcefOtmu5OQ8KuoJGIReA=
48+
github.com/mdlayher/vsock v1.2.1 h1:pC1mTJTvjo1r9n9fbm7S1j04rCgCzhCOS5DY0zqHlnQ=
49+
github.com/mdlayher/vsock v1.2.1/go.mod h1:NRfCibel++DgeMD8z/hP+PPTjlNJsdPOmxcnENvE+SE=
4650
github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE=
4751
github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
4852
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
@@ -60,8 +64,8 @@ github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p
6064
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
6165
github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJNllA=
6266
github.com/prometheus/common v0.60.0/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw=
63-
github.com/prometheus/exporter-toolkit v0.11.0 h1:yNTsuZ0aNCNFQ3aFTD2uhPOvr4iD7fdBvKPAEGkNf+g=
64-
github.com/prometheus/exporter-toolkit v0.11.0/go.mod h1:BVnENhnNecpwoTLiABx7mrPB/OLRIgN74qlQbV+FK1Q=
67+
github.com/prometheus/exporter-toolkit v0.13.0 h1:lmA0Q+8IaXgmFRKw09RldZmZdnvu9wwcDLIXGmTPw1c=
68+
github.com/prometheus/exporter-toolkit v0.13.0/go.mod h1:2uop99EZl80KdXhv/MxVI2181fMcwlsumFOqBecGkG0=
6569
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
6670
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
6771
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=

tools/go.mod

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module github.com/percona/postgres_exporter/tools
22

3-
go 1.22
4-
toolchain go1.22.5
3+
go 1.22.1
4+
5+
toolchain go1.23.2
56

67
require (
78
github.com/golangci/golangci-lint v1.59.1

0 commit comments

Comments
 (0)