← Back to Pull requests

chore(deps): update module github.com/prometheus/client_golang to v1.25.0 #2277

Closed
unknown closed this pull request without merging on Oct 08, 2026 15:32 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 13:47 UTC
Author

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

<details>
<summary>prometheus/client_golang (github.com/prometheus/client_golang)</summary>

v1.25.0

Compare Source

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

##### 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. #&#8203;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. #&#8203;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. #&#8203;1928

  • \[FEATURE] testutil: Add GatherAndFormat to encode a subset of metrics from a Gatherer. #&#8203;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. #&#8203;2146

  • \[ENHANCEMENT] promhttp: Negotiated metrics responses now include a Vary header. #&#8203;2142

  • \[ENHANCEMENT] prometheus: Regenerate the default runtime collector metrics for Go 1.25 and Go 1.26. #&#8203;2090, #&#8203;2095

  • \[ENHANCEMENT] testutil: Finalize OpenMetrics output in GatherAndFormat and CollectAndFormat (terminating # EOF). #&#8203;2125

  • \[BUGFIX] api: Match complete URL path placeholders only; a :foo argument no longer substitutes inside :foobar. #&#8203;2136

  • \[BUGFIX] exp/api/remote: Reset the pooled buffer before generic proto marshaling, preventing corrupted remote-write payloads. #&#8203;2139

  • \[BUGFIX] testutil/promlint: Fix "mibi" unit prefix to "mebi". #&#8203;2135
  • <details>
    <summary> What's changed </summary>

    ##### What's Changed
    fix: Remove unneeded and broken CI badge by @&#8203;bwplothttps://github.com/prometheus/client_golang/pull/2057l/2057
    Synchronize common files from prometheus/prometheus by @&#8203;prombhttps://github.com/prometheus/client_golang/pull/2060l/2060
    build(deps): bump the codeql group with 4 updates by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2066l/2066
    build(deps): bump github.com/klauspost/compress from 1.19.0 to 1.19.1 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2071l/2071
    build(deps): bump golang.org/x/sys from 0.46.0 to 0.47.0 in the golang-org-x group across 1 directory by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2069l/2069
    build(deps): bump github.com/klauspost/compress from 1.19.0 to 1.19.1 in /exp by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2072l/2072
    build(deps): bump github.com/prometheus/common from 0.69.0 to 0.70.1 in /exp by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2073l/2073
    build(deps): bump github.com/prometheus/common from 0.69.0 to 0.70.1 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2070l/2070
    build(deps): bump google.golang.org/grpc from 1.79.3 to 1.82.1 in /tutorials/whatsup by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2075l/2075
    Pin GitHub Actions by @&#8203;Supehttps://github.com/prometheus/client_golang/pull/2074l/2074
    build(deps): bump actions/checkout from 7.0.0 to 7.0.1 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2067l/2067
    promhttp: fix panic on requests with nil URL by @&#8203;SAYhttps://github.com/prometheus/client_golang/pull/2065l/2065
    Return info annotations in addition to warnings in the API by @&#8203;zenadhttps://github.com/prometheus/client_golang/pull/1963l/1963
    build(deps): bump ossf/scorecard-action from 2.4.3 to 2.4.4 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2082l/2082
    Synchronize common files from prometheus/prometheus by @&#8203;prombhttps://github.com/prometheus/client_golang/pull/2084l/2084
    Synchronize common files from prometheus/prometheus by @&#8203;prombhttps://github.com/prometheus/client_golang/pull/2086l/2086
    Synchronize common files from prometheus/prometheus by @&#8203;prombhttps://github.com/prometheus/client_golang/pull/2088l/2088
    Regenerate Go collector runtime metrics for Go 1.25 and Go 1.26 by @&#8203;bwplothttps://github.com/prometheus/client_golang/pull/2090l/2090
    go.mod: remove obsolete exclude rule by @&#8203;thaJezthttps://github.com/prometheus/client_golang/pull/2077l/2077
    Synchronize common files from prometheus/prometheus by @&#8203;prombhttps://github.com/prometheus/client_golang/pull/2093l/2093
    README: document the OpenTelemetry OTLP push bridge by @&#8203;mvanhohttps://github.com/prometheus/client_golang/pull/1987l/1987
    docs: add AGENTS.md contributor and maintainer guide by @&#8203;bwplothttps://github.com/prometheus/client_golang/pull/2056l/2056
    testutil: add GatherAndFormat helper by @&#8203;wieghttps://github.com/prometheus/client_golang/pull/2091l/2091
    build(deps): bump the codeql group with 4 updates by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2101l/2101
    build(deps): bump google.golang.org/protobuf from 1.36.11 to 1.36.12 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2097l/2097
    build(deps): bump github.com/klauspost/compress from 1.19.1 to 1.19.2 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2098l/2098
    build(deps): bump google.golang.org/protobuf from 1.36.11 to 1.36.12 in /exp by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2099l/2099
    build(deps): bump github.com/klauspost/compress from 1.19.1 to 1.19.2 in /exp by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2100l/2100
    build(deps): bump github.com/prometheus/procfs from 0.21.1 to 0.22.0 in the prometheus group across 1 directory by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2096l/2096
    build(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.1 in /tutorials/whatsup by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2102l/2102
    chore: Update metrics for new Go version by @&#8203;github-actionsbo[https://github.com/prometheus/client_golang/pull/2095l/2095
    Benchmark json-iter, stdlib json and json/v2 by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2107l/2107
    build(deps): bump google.golang.org/grpc from 1.83.1 to 1.83.2 in /tutorials/whatsup by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2112l/2112
    RuleGroup: use stdlib for json decoding, optimize decoding by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2109l/2109
    Modernize micro benchmarks: b.Loop and key=value case names by @&#8203;radiancedhttps://github.com/prometheus/client_golang/pull/2114l/2114
    QueryResult: use stdlib for envelope decoding by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2110l/2110
    Use stdlib to decode apiResult envelope by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2111l/2111
    Improve linting by @&#8203;Supehttps://github.com/prometheus/client_golang/pull/2115l/2115
    Delete unused custom json-iterator marshaling by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2121l/2121
    Simplify apiClientImpl#Do error path by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2120l/2120
    testutil: finalize OpenMetrics output by @&#8203;ajavanhttps://github.com/prometheus/client_golang/pull/2125l/2125
    build(deps): bump go.opentelemetry.io/otel/sdk from 1.44.0 to 1.45.0 in /tutorials/whatsup by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2124l/2124
    Synchronize common files from prometheus/prometheus by @&#8203;prombhttps://github.com/prometheus/client_golang/pull/2116l/2116
    prometheus: fix revive indent-error-flow lint on Darwin by @&#8203;bwplothttps://github.com/prometheus/client_golang/pull/2131l/2131
    build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace from 1.34.0 to 1.45.0 in /tutorials/whatsup by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2123l/2123
    Combine envelope/inner apiResponse decoding, switch to stdlib json by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2118l/2118
    build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.34.0 to 1.45.0 in /tutorials/whatsup by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2122l/2122
    testutil/promlint: fix "mibi" unit prefix to "mebi" by @&#8203;ZainnQureshhttps://github.com/prometheus/client_golang/pull/2135l/2135
    all: update prometheus/common to v0.72.0 and apply modernize fixes by @&#8203;bwplothttps://github.com/prometheus/client_golang/pull/2138l/2138
    limit json-iterator use to Go 1.26 by @&#8203;liggihttps://github.com/prometheus/client_golang/pull/2128l/2128
    promhttp: add AcceptedFormats option to customize format negotiation by @&#8203;bwplothttps://github.com/prometheus/client_golang/pull/2146l/2146
    build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.1 by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2143l/2143
    build(deps): bump the codeql group with 4 updates by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2145l/2145
    build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.1 in /exp by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2144l/2144
    promhttp: vary negotiated metrics responses by @&#8203;lowgahttps://github.com/prometheus/client_golang/pull/2142l/2142
    exp/api/remote: reset pooled buffer before generic marshal by @&#8203;lowgahttps://github.com/prometheus/client_golang/pull/2139l/2139
    api: match complete URL placeholders by @&#8203;lowgahttps://github.com/prometheus/client_golang/pull/2136l/2136
    fix: updates for tsdb blocks handling by @&#8203;tjhhttps://github.com/prometheus/client_golang/pull/1928l/1928
    prometheus: fix modernize lint findings by @&#8203;kakkoyhttps://github.com/prometheus/client_golang/pull/2151l/2151
    build(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.2 in /api/prometheus/v1/paritytest by @&#8203;dependabotbo[https://github.com/prometheus/client_golang/pull/2152l/2152
    Cut v1.25.0-rc.0 by @&#8203;kakkoyhttps://github.com/prometheus/client_golang/pull/2154l/2154
    Cut v1.25.0 by @&#8203;kakkoyhttps://github.com/prometheus/client_golang/pull/2164l/2164

    ##### New Contributors
    @&#8203;SAY-5 made their first contributihttps://github.com/prometheus/client_golang/pull/2065l/2065
    @&#8203;zenador made their first contributihttps://github.com/prometheus/client_golang/pull/1963l/1963
    @&#8203;thaJeztah made their first contributihttps://github.com/prometheus/client_golang/pull/2077l/2077
    @&#8203;mvanhorn made their first contributihttps://github.com/prometheus/client_golang/pull/1987l/1987
    @&#8203;wieghx made their first contributihttps://github.com/prometheus/client_golang/pull/2091l/2091
    @&#8203;radianceded made their first contributihttps://github.com/prometheus/client_golang/pull/2114l/2114
    @&#8203;ajavanma made their first contributihttps://github.com/prometheus/client_golang/pull/2125l/2125
    @&#8203;ZainnQureshii made their first contributihttps://github.com/prometheus/client_golang/pull/2135l/2135

  • @&#8203;lowgame made their first contributihttps://github.com/prometheus/client_golang/pull/2142l/2142
  • Full Changelog: <https://github.com/prometheus/client_golang/compare/v1.24.1...v1.25.0>

    </details>

    </details>

    ---

    Configuration

    📅 Schedule: (UTC)

  • Branch creation

  • - At any time (no schedule defined)
  • Automerge

  • - At any time (no schedule defined)

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

    ♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR was generated by Mend Renovate. View the repository job log.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==-->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: dmathieu Review duration: 105m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2277"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%