Skip to content

deps:chore - update module github.com/prometheus/client_golang to v1.25.0 - #206

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-prometheus-client_golang-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-prometheus-client_golang-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 1, 2025 •

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
github.com/prometheus/client_golang v1.12.1 → v1.25.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

prometheus/client_golang (github.com/prometheus/client_golang)

v1.25.0

Compare Source

⚠️ This release raises the minimum required Go version to 1.26 and includes breaking API changes in api/prometheus/v1 (see the [CHANGE] entries below). ⚠️

1.25.0 / 2026-10-07

  • [CHANGE] Minimum required Go version is now 1.26, only the two latest Go versions (1.26 and 1.27) are supported from now on. #​2138
  • [CHANGE] api/prometheus/v1: Query, QueryRange, Series, LabelNames, and LabelValues now return Infos annotations in addition to Warnings, matching the Prometheus server's info annotations. This changes the signatures of these methods and of api.Client's Do/DoGetFallback; custom API client implementations must be updated. #​1963
  • [CHANGE] api/prometheus/v1: Rework TSDBBlocks result types to align with the Prometheus server's tsdb.BlockMeta: TSDBBlocksResult now contains Blocks []TSDBBlockMeta directly instead of mirroring the full API envelope, nested types are renamed (TSDBBlockMeta, TSDBBlockStats, TSDBBlockMetaCompaction), stat fields are uint64 with omitempty tags, and the optional compaction parents field is included. #​1928
  • [FEATURE] testutil: Add GatherAndFormat to encode a subset of metrics from a Gatherer. #​2091
  • [FEATURE] promhttp: Add HandlerOpts.AcceptedFormats to customize the formats negotiated from the incoming Accept header, enabling opt-in to experimental formats such as OpenMetrics 2.0 without changing default negotiation. #​2146
  • [ENHANCEMENT] promhttp: Negotiated metrics responses now include a Vary header. #​2142
  • [ENHANCEMENT] prometheus: Regenerate the default runtime collector metrics for Go 1.25 and Go 1.26. #​2090, #​2095
  • [ENHANCEMENT] testutil: Finalize OpenMetrics output in GatherAndFormat and CollectAndFormat (terminating # EOF). #​2125
  • [BUGFIX] api: Match complete URL path placeholders only; a :foo argument no longer substitutes inside :foobar. #​2136
  • [BUGFIX] exp/api/remote: Reset the pooled buffer before generic proto marshaling, preventing corrupted remote-write payloads. #​2139
  • [BUGFIX] testutil/promlint: Fix "mibi" unit prefix to "mebi". #​2135
What's changed

What's Changed

New Contributors

Full Changelog: prometheus/client_golang@v1.24.1...v1.25.0

v1.24.1: / 2026-07-23

Compare Source

Small bugfix release for promhttp.

What's Changed

[BUGFIX] promhttp: Fix panic on requests with nil URL. #​2065

Full Changelog: prometheus/client_golang@v1.24.0...v1.24.1

v1.24.0: - 2026-07-20

Compare Source

Changes
  • [CHANGE] Minimum required Go version is now 1.25, only the two latest Go versions (1.25 and 1.26) are supported from now on. #​1862
  • [CHANGE] prometheus: Name validation now always uses the UTF-8 scheme instead of the deprecated model.NameValidationScheme global. Default behavior is unchanged; code that set NameValidationScheme = LegacyValidation no longer gets legacy enforcement at metric, label, and push-grouping construction. #​2051
  • [CHANGE] api/prometheus/v1: Support matchers (matches[] parameter) in Rules method (Rules(ctx context.Context, matches []string) (RulesResult, error)). #​1843
  • [CHANGE] api/prometheus/v1: Refactor LabelNames method to return model.LabelNames instead of []string for consistency across the API. #​1850
  • [CHANGE] exp/api/remote: Simplify Store interface, rename Handler to WriteHandler, and encapsulate write response handling. #​1855
  • [FEATURE] prometheus: Add new Go 1.26 runtime metrics (/sched/goroutines-created:goroutines, /sched/goroutines/not-in-go:goroutines, /sched/goroutines/runnable:goroutines, /sched/goroutines/running:goroutines, /sched/goroutines/waiting:goroutines, /sched/threads/total:threads). #​1942
  • [FEATURE] prometheus: Add WithUnit(unit string) option and explicit OpenMetrics unit support in CounterOpts, GaugeOpts, SummaryOpts, and HistogramOpts. #​1392
  • [FEATURE] prometheus: Expose descriptor construction error through public Err() method on Desc. #​1902
  • [FEATURE] promhttp: Add opt-in HandlerOpts.CoalesceGather to deduplicate concurrent Gather calls so overlapping scrapes share one collection cycle, preventing goroutine pile-up when the scrape rate outpaces collection time. #​1969
  • [FEATURE] promhttp: HTTP handlers created by promhttp package now support metrics filtering by providing one or more name[] query parameters. The default behavior when none are provided remains the same, returning all metrics. #​1925
  • [FEATURE] api/prometheus/v1: Add query formatting endpoint support (/format_query) and FormatQuery(ctx context.Context, query string) (string, error) method. #​1846, #​1856
  • [FEATURE] api/prometheus/v1: Add support for /status/tsdb/blocks endpoint via TSDBBlocks(ctx context.Context) ([]TSDBBlock, error) method. #​1896
  • [FEATURE] exp/api/remote: Export BackoffConfig to allow customization when using WithAPIBackoff. #​1895
  • [FEATURE] exp/api/remote: Add RetryCallBack to allow custom logging or handling on retry attempts in the remote write client. #​1888, #​1890
  • [ENHANCEMENT] prometheus/collectors/version: Allow specifying custom labels when registering the version collector. #​1860
  • [ENHANCEMENT] api: Use cloned http.DefaultTransport when constructing default HTTP clients to prevent accidental mutations of shared global transport state. #​1885
  • [BUGFIX] prometheus: Recover from collector panics during Gather() and return an error instead of crashing the process. #​1961
  • [BUGFIX] prometheus: Fix cpu-seconds unit suffix handling for metric go_cpu_classes_gc_mark_assist_cpu_seconds. #​1991
  • [BUGFIX] promhttp: InstrumentHandlerDuration and InstrumentHandlerCounter no longer panic when given an observer/counter that does not implement ExemplarObserver/ExemplarAdder (e.g. a SummaryVec). The exemplar is dropped and the value is recorded via the plain Observe/Add path, matching the safe-cast already used by Timer.ObserveDurationWithExemplar. #​2005
  • [BUGFIX] api/prometheus/v1: Fall back to GET requests when POST requests return 403 Forbidden or method not allowed. #​2030
  • [BUGFIX] api: Respect context cancellation inside httpClient.Do. #​1971
  • [BUGFIX] exp/api/remote: Fix compression buffer pooling where compressed buffers were released prematurely, causing corrupted remote-write payloads. #​1889
  • [BUGFIX] exp/api/remote: Reject malformed snappy payloads declaring huge decoded sizes. Enforce a 32MB decoded-size limit to prevent OOM from oversized remote-write requests. #​1917
  • [BUGFIX] exp/api/remote: Ensure remote write v2 headers cannot be returned on v1 requests. #​1927
All commits

New Contributors

❗ Important

✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Nov 1, 2025

Copy link
Copy Markdown
Contributor Author

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 13 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.17 -> 1.23.0
github.com/stretchr/testify v1.7.0 -> v1.11.1
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 -> v0.41.0
google.golang.org/protobuf v1.27.1 -> v1.36.8
github.com/cespare/xxhash/v2 v2.1.2 -> v2.3.0
github.com/prometheus/client_model v0.2.0 -> v0.6.2
github.com/prometheus/common v0.32.1 -> v0.66.1
github.com/prometheus/procfs v0.7.3 -> v0.16.1
github.com/stretchr/objx v0.3.0 -> v0.5.2
golang.org/x/net v0.0.0-20220114011407-0dd24b26b47d -> v0.43.0
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 -> v0.35.0
golang.org/x/text v0.3.7 -> v0.28.0
golang.org/x/tools v0.1.8 -> v0.35.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b -> v3.0.1

@ghost

ghost commented Nov 1, 2025 •

Copy link
Copy Markdown

PR Summary

This Pull Request updates the Go module and dependency files to modernize the project’s dependency set. The main focus is on upgrading the Go version and several key dependencies, which brings improvements in compatibility, security, and features. These changes are essential for keeping the project up-to-date and secure, but they may also introduce breaking changes that require careful review.


Changed Files and Their Summaries

1. go.mod

  • Summary:

    • Updated Go version from 1.17 to 1.23.0.
    • Upgraded several dependencies, including:
      • github.com/prometheus/client_golang: v1.12.1 → v1.23.2
      • github.com/stretchr/testify: v1.7.0 → v1.11.1
      • golang.org/x/crypto: v0.0.0-20220214200702-86341886e292 → v0.41.0
      • google.golang.org/protobuf: v1.27.1 → v1.36.8
      • And others.
    • Added new indirect dependencies (e.g., github.com/munnerz/goautoneg, go.yaml.in/yaml/v2).
    • These updates modernize the codebase for better compatibility, security, and features.
  • Security Concerns:

    • Upgrading dependencies generally improves security by including patches for known vulnerabilities.
    • Attention: Major version upgrades (e.g., Go 1.17 → 1.23.0) may introduce breaking changes or new, unknown vulnerabilities.
    • Recommendation: Review the changelogs of all upgraded dependencies for breaking changes or new security advisories.

2. go.sum

  • Summary:

    • Updated to reflect new dependency versions and added modules from go.mod.
    • New checksums were added for upgraded and newly introduced dependencies, ensuring integrity verification.
  • Security Concerns:

    • No direct security concerns, as go.sum only contains cryptographic hashes for dependency verification.
    • Attention: Ensure that the hashes match the intended versions to prevent supply chain attacks.

Security Advice & Points of Attention

  • Review Dependency Changelogs:
    Carefully check the release notes and changelogs for all upgraded dependencies, especially those with major version jumps, for any breaking changes or new security advisories.
  • Test Thoroughly:
    Since the Go version and several core libraries have been upgraded, run all tests and validate application behavior in staging before deploying to production.
  • Supply Chain Integrity:
    Confirm that all new checksums in go.sum correspond to trusted sources to mitigate supply chain risks.

In summary:
This PR brings your project up-to-date with the latest Go version and dependency updates, which is beneficial for long-term maintenance and security. However, it is crucial to review all changes carefully for compatibility and potential new issues before merging.
This is an AI-generated summary, which may be innacurate.
This aims only to assist human reviewers, and does not replace code reviews in any way.
Use responsibly and please submit any feedback to this form.

@renovate

renovate Bot commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 13 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.17 -> 1.26.0
github.com/google/uuid v1.3.0 -> v1.6.0
github.com/stretchr/testify v1.7.0 -> v1.12.1
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 -> v0.57.0
google.golang.org/protobuf v1.27.1 -> v1.36.12
github.com/cespare/xxhash/v2 v2.1.2 -> v2.3.0
github.com/prometheus/client_model v0.2.0 -> v0.6.3
github.com/prometheus/common v0.32.1 -> v0.72.0
github.com/prometheus/procfs v0.7.3 -> v0.22.0
github.com/stretchr/objx v0.3.0 -> v0.5.3
golang.org/x/net v0.0.0-20220114011407-0dd24b26b47d -> v0.59.0
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 -> v0.48.0
golang.org/x/text v0.3.7 -> v0.42.0
golang.org/x/tools v0.1.8 -> v0.49.0

@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.23.2 deps:chore - update module github.com/prometheus/client_golang to v1.23.2 - autoclosed Apr 30, 2026
@renovate renovate Bot closed this Apr 30, 2026
@renovate
renovate Bot deleted the renovate/github.com-prometheus-client_golang-1.x branch April 30, 2026 11:29
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.23.2 - autoclosed deps:chore - update module github.com/prometheus/client_golang to v1.23.2 May 2, 2026
@renovate renovate Bot reopened this May 2, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch 2 times, most recently from 7b855a4 to 3a0cf8b Compare May 2, 2026 01:11
@ghost

ghost commented May 2, 2026 •

Copy link
Copy Markdown

⛔ Snyk checks have failed. 11 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (11)
⛔ Open Source Security 1 10 0 0 11 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.23.2 deps:chore - update module github.com/prometheus/client_golang to v1.23.2 - autoclosed Jul 3, 2026
@renovate renovate Bot closed this Jul 3, 2026
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.23.2 - autoclosed deps:chore - update module github.com/prometheus/client_golang to v1.23.2 Jul 4, 2026
@renovate renovate Bot reopened this Jul 4, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch 2 times, most recently from 3a0cf8b to e6b8f62 Compare July 4, 2026 01:31
@snyk-io

snyk-io Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

⛔ Snyk checks have failed. 11 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (11)
⛔ Open Source Security 1 10 0 0 11 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from e6b8f62 to 274989c Compare July 20, 2026 20:56
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.23.2 deps:chore - update module github.com/prometheus/client_golang to v1.24.0 Jul 20, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 274989c to a1d0644 Compare July 24, 2026 12:16
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.24.0 deps:chore - update module github.com/prometheus/client_golang to v1.24.1 Jul 24, 2026
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.24.1 deps:chore - update module github.com/prometheus/client_golang to v1.24.1 - autoclosed Aug 28, 2026
@renovate renovate Bot closed this Aug 28, 2026
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.24.1 - autoclosed deps:chore - update module github.com/prometheus/client_golang to v1.24.1 Aug 29, 2026
@renovate renovate Bot reopened this Aug 29, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch 2 times, most recently from a1d0644 to 02908bf Compare August 29, 2026 16:29
…25.0

Signed-off-by: Renovate Bot <bot@renovateapp.com>
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 02908bf to d9487b8 Compare October 8, 2026 18:11
@renovate renovate Bot changed the title deps:chore - update module github.com/prometheus/client_golang to v1.24.1 deps:chore - update module github.com/prometheus/client_golang to v1.25.0 Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants