Skip to content

Update module github.com/prometheus/client_golang to v1.25.0 - #2361

Merged
red-hat-konflux[bot] merged 1 commit into
masterfrom
konflux/mintmaker/master/github.com-prometheus-client_golang-1.x
Oct 12, 2026
Merged

red-hat-konflux[bot] merged 1 commit into
masterfrom
konflux/mintmaker/master/github.com-prometheus-client_golang-1.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

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


Configuration

📅 Schedule: (in timezone Europe/Prague)

  • Branch creation
    • Between 03:00 AM and 10:59 AM, only on Monday (* 3-10 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ 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

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

Summary by Sourcery

Enhancements:

  • Update Prometheus client libraries to the v1.25.0 dependency set, including refreshed compression, OAuth2, and Prometheus ecosystem modules.

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux
red-hat-konflux Bot requested a review from a team as a code owner October 12, 2026 04:29
@red-hat-konflux
red-hat-konflux Bot enabled auto-merge (squash) October 12, 2026 04:29
@red-hat-konflux

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):

  • 5 additional dependencies were updated

Due to Go's usage of Minimal Version Selection (MVS), these packages have been updated to the minimum version available, so will still abide by minimumReleaseAge=3 days

Details:

Package Change
github.com/klauspost/compress v1.19.1 -> v1.20.1
github.com/prometheus/client_model v0.6.2 -> v0.6.3
github.com/prometheus/common v0.70.1 -> v0.72.0
github.com/prometheus/procfs v0.21.1 -> v0.22.0
golang.org/x/oauth2 v0.36.0 -> v0.37.0

@red-hat-konflux
red-hat-konflux Bot merged commit f4a6e0e into master Oct 12, 2026
6 of 7 checks passed
@sourcery-ai

sourcery-ai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This dependency-only PR upgrades github.com/prometheus/client_golang from v1.24.1 to v1.25.0 and refreshes its transitive module graph and checksums. Review should focus on the release's Go 1.26 minimum, breaking api/prometheus/v1 signatures and TSDB block types, plus compatibility of any local callers or custom API implementations; the upstream release also brings format-negotiation, runtime-metrics, testutil, and correctness fixes.

File-Level Changes

Change Details Files
Upgrade Prometheus client libraries and their transitive dependencies to the v1.25.0 dependency set.
  • Update the direct client_golang requirement from v1.24.1 to v1.25.0.
  • Refresh related indirect modules, including client_model, common, procfs, compress, and oauth2.
  • Regenerate module checksums for the dependency changes.
go.mod
go.sum
Adopt the upstream release's API and runtime compatibility changes.
  • Account for the Go 1.26 minimum requirement when validating build and CI environments.
  • Review callers and custom implementations of api/prometheus/v1 methods and Client Do/DoGetFallback for the added Infos return value.
  • Review TSDBBlocks consumers for the reworked result and renamed metadata/stat types.
go.mod
go.sum
Inherit upstream HTTP, formatting, runtime metrics, and correctness improvements through the dependency upgrade.
  • Validate promhttp content negotiation, AcceptedFormats behavior, and the new Vary response header where applicable.
  • Validate metric formatting helpers, including OpenMetrics termination and GatherAndFormat usage if consumed.
  • Exercise affected remote-write, URL placeholder, and runtime collector behavior through existing integration and unit tests.
go.mod
go.sum

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.95%. Comparing base (5bc6a6b) to head (937b97f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2361   +/-   ##
=======================================
  Coverage   58.95%   58.95%           
=======================================
  Files         150      150           
  Lines        9626     9626           
=======================================
  Hits         5675     5675           
  Misses       3352     3352           
  Partials      599      599           
Flag Coverage Δ
unittests 58.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@red-hat-konflux
red-hat-konflux Bot deleted the konflux/mintmaker/master/github.com-prometheus-client_golang-1.x branch October 12, 2026 04:36
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.

1 participant