From 3bbbaf4fd1ebf66f4c0dee05250df65614b540de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 12:20:51 +0000 Subject: [PATCH 1/2] Bump github.com/prometheus/client_golang from 1.24.1 to 1.25.0 Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.24.1 to 1.25.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/v1.25.0/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.24.1...v1.25.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-version: 1.25.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 27e9a66..fe66dc8 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.26.0 require ( github.com/NETWAYS/go-check v1.0.0 - github.com/prometheus/client_golang v1.24.1 + github.com/prometheus/client_golang v1.25.0 github.com/prometheus/common v0.72.1 github.com/spf13/cobra v1.10.2 ) diff --git a/go.sum b/go.sum index cc5aba3..e79bfea 100644 --- a/go.sum +++ b/go.sum @@ -30,8 +30,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8m 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/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v1.24.1 h1:JnJkREXzWxUdCuPFpIWZiPispT9xVV59uiuyR2bPlnU= -github.com/prometheus/client_golang v1.24.1/go.mod h1:F+oSRECHg4sse5ucfYpYDeIv/hu68Zo0uoHKetWnzcE= +github.com/prometheus/client_golang v1.25.0 h1:cDtW1TcFsMi1RJc8khwCKB4VhzwV04aKqbYtNOXuiK0= +github.com/prometheus/client_golang v1.25.0/go.mod h1:j2X/4/kaQHLPnmyEU8zjmkndo1T317VpCIQEml8LTKk= github.com/prometheus/client_model v0.6.3 h1:O0jaTVAYNxTHYInEPFJt5I3+sN8zqBtVMPTB1qyxiEo= github.com/prometheus/client_model v0.6.3/go.mod h1:gpN5P9S7Rr6Yr92PiQ+Ixvhf6JZEkF1dnxsYL2aPBEM= github.com/prometheus/common v0.72.1 h1:ZAiQed/nk8IIcsdzb2TlJu23NEUDyDLQ9TXTN2WRK6Y= From d98aadf3872dc1f71a636315778e2b4df3e6e7ef Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Mon, 26 Oct 2026 13:31:45 +0100 Subject: [PATCH 2/2] Update Query call for client_golang v1.25 --- cmd/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/query.go b/cmd/query.go index 47474b1..1d297c4 100644 --- a/cmd/query.go +++ b/cmd/query.go @@ -87,10 +87,10 @@ Note: Time range values e.G. 'go_memstats_alloc_bytes_total[0s]' only the latest ctx, cancel := cliConfig.timeoutContext() defer cancel() - result, warnings, err := c.API.Query(ctx, cliQueryConfig.RawQuery, time.Now()) + result, warnings, _, err := c.API.Query(ctx, cliQueryConfig.RawQuery, time.Now()) if err != nil { - if strings.Contains(err.Error(), "unmarshalerDecoder: unexpected value type \"string\"") { + if strings.Contains(err.Error(), "unexpected value type \"string\"") { err = errors.New("string value results are not supported") }