From 0d87c0b1027b3519f28bf188e6314a31838bee7e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:20:50 -0700 Subject: [PATCH] Bump github.com/nginxinc/nginx-plus-go-client from 0.11.0 to 1.0.0 (#503) * Bump github.com/nginxinc/nginx-plus-go-client from 0.11.0 to 1.0.0 Bumps [github.com/nginxinc/nginx-plus-go-client](https://github.com/nginxinc/nginx-plus-go-client) from 0.11.0 to 1.0.0. - [Release notes](https://github.com/nginxinc/nginx-plus-go-client/releases) - [Changelog](https://github.com/nginxinc/nginx-plus-go-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/nginxinc/nginx-plus-go-client/compare/v0.11.0...v1.0.0) --- updated-dependencies: - dependency-name: github.com/nginxinc/nginx-plus-go-client dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Update plus client --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Luca Comellini --- exporter.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter.go b/exporter.go index 0ebc5bb4..155142d0 100644 --- a/exporter.go +++ b/exporter.go @@ -196,7 +196,7 @@ func main() { if *nginxPlus { plusClient, err := createClientWithRetries(func() (interface{}, error) { - return plusclient.NewNginxClient(httpClient, *scrapeURI) + return plusclient.NewNginxClient(*scrapeURI, plusclient.WithHTTPClient(httpClient)) }, *nginxRetries, *nginxRetryInterval, logger) if err != nil { level.Error(logger).Log("msg", "Could not create Nginx Plus Client", "error", err.Error()) diff --git a/go.mod b/go.mod index e3ae2723..62629956 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/alecthomas/kingpin/v2 v2.3.2 github.com/go-kit/log v0.2.1 - github.com/nginxinc/nginx-plus-go-client v0.11.0 + github.com/nginxinc/nginx-plus-go-client v1.0.0 github.com/prometheus/client_golang v1.16.0 github.com/prometheus/common v0.44.0 github.com/prometheus/exporter-toolkit v0.10.0 diff --git a/go.sum b/go.sum index d1a67bd7..c63896fc 100644 --- a/go.sum +++ b/go.sum @@ -32,8 +32,8 @@ github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zk github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/nginxinc/nginx-plus-go-client v0.11.0 h1:XxKag3dlcF1gA0HgGsrJktbzBW4W+s369PIgT3lSR2c= -github.com/nginxinc/nginx-plus-go-client v0.11.0/go.mod h1:UvrcgWbUWEJzvbstNnPfq8Ogz9BTi1gHzlQ2ebAJisM= +github.com/nginxinc/nginx-plus-go-client v1.0.0 h1:iqPjWKaVS1aPEQgRogeCSTON+yolivJnsO0IrbIN4wU= +github.com/nginxinc/nginx-plus-go-client v1.0.0/go.mod h1:UvrcgWbUWEJzvbstNnPfq8Ogz9BTi1gHzlQ2ebAJisM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8=