Skip to content

Update module github.com/prometheus/client_golang to v1.24.0#15

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

Update module github.com/prometheus/client_golang to v1.24.0#15
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-prometheus-client_golang-1.x

Conversation

@renovate

@renovate renovate Bot commented May 13, 2022

Copy link
Copy Markdown

ℹ️ 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.1v1.24.0 age confidence

Release Notes

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

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

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

v1.23.2: - 2025-09-05

Compare Source

This release is made to upgrade to prometheus/common v0.66.1, which drops the dependencies github.com/grafana/regexp and go.uber.org/atomic and replaces gopkg.in/yaml.v2 with go.yaml.in/yaml/v2 (a drop-in replacement). There are no functional changes.

All Changes

Full Changelog: prometheus/client_golang@v1.23.1...v1.23.2

v1.23.1: - 2025-09-04

Compare Source

This release is made to be compatible with a backwards incompatible API change in prometheus/common v0.66.0. There are no functional changes.

All Changes

Full Changelog: prometheus/client_golang@v1.23.0...v1.23.1

v1.23.0: - 2025-07-30

Compare Source

  • [CHANGE] Minimum required Go version is now 1.23, only the two latest Go versions are supported from now on. #​1812
  • [FEATURE] Add WrapCollectorWith and WrapCollectorWithPrefix #​1766
  • [FEATURE] Add exemplars for native histograms #​1686
  • [ENHANCEMENT] exp/api: Bubble up status code from writeResponse #​1823
  • [ENHANCEMENT] collector/go: Update runtime metrics for Go v1.23 and v1.24 #​1833
  • [BUGFIX] exp/api: client prompt return on context cancellation #​1729
All Changes * Update example test by @​SuperQ in https://github.com/prometheus/client_golang/pull/1770 * build(deps): bump golang.org/x/net from 0.34.0 to 0.36.0 in /tutorials/whatsup by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1776 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1771 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1778 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1779 * build(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6 in /exp by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1782 * build(deps): bump github.com/prometheus/common from 0.62.0 to 0.63.0 in /exp by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1781 * build(deps): bump github.com/prometheus/common from 0.62.0 to 0.63.0 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1783 * build(deps): bump google.golang.org/protobuf from 1.36.5 to 1.36.6 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1784 * build(deps): bump github.com/prometheus/procfs from 0.15.1 to 0.16.0 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1786 * chore: Upgrade golangci-lint to v2 by @​kakkoyun in https://github.com/prometheus/client_golang/pull/1789 * build(deps): bump the github-actions group across 1 directory with 3 updates by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1790 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1791 * Add `WrapCollectorWith` and `WrapCollectorWithPrefix` by @​colega in https://github.com/prometheus/client_golang/pull/1766 * feat(github-actions): add Go file change detection to golangci-lint workflow by @​kakkoyun in https://github.com/prometheus/client_golang/pull/1794 * chore(ci): Fix flaky tests by @​kakkoyun in https://github.com/prometheus/client_golang/pull/1795 * build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /tutorials/whatsup by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1799 * test(registry): Add goleak-based goroutine leak detection by @​surinkim in https://github.com/prometheus/client_golang/pull/1797 * build(deps): bump go.uber.org/goleak from 1.2.0 to 1.3.0 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1806 * build(deps): bump the github-actions group with 2 updates by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1804 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1809 * Add exemplars for native histograms by @​shivanthzen in https://github.com/prometheus/client_golang/pull/1686 * build(deps): bump golang.org/x/sys from 0.30.0 to 0.32.0 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1807 * build(deps): bump github.com/prometheus/client_model from 0.6.1 to 0.6.2 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1805 * build(deps): bump github.com/prometheus/procfs from 0.16.0 to 0.16.1 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1808 * build(deps): bump golang.org/x/net from 0.35.0 to 0.38.0 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1800 * Update supported Go versions by @​SuperQ in https://github.com/prometheus/client_golang/pull/1812 * Cleaup Go modules by @​SuperQ in https://github.com/prometheus/client_golang/pull/1813 * fix: client prompt return on context cancellation by @​umegbewe in https://github.com/prometheus/client_golang/pull/1729 * Simplify buf binary install by @​SuperQ in https://github.com/prometheus/client_golang/pull/1814 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1815 * build(deps): bump the github-actions group with 5 updates by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1817 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1821 * exp/api: Bubble up status code from writeResponse by @​saswatamcode in https://github.com/prometheus/client_golang/pull/1823 * build(deps): bump github.com/prometheus/common from 0.64.0 to 0.65.0 by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1827 * build(deps): bump github.com/prometheus/common from 0.64.0 to 0.65.0 in /exp by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1828 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1831 * Update runtime metrics for Go v1.23 and v1.24 by @​aknuds1 in https://github.com/prometheus/client_golang/pull/1833 * Fix `errNotImplemented` reference by @​aknuds1 in https://github.com/prometheus/client_golang/pull/1835 * build(deps): bump the github-actions group with 3 updates by @​dependabot[bot] in https://github.com/prometheus/client_golang/pull/1826 * Synchronize common files from prometheus/prometheus by @​prombot in https://github.com/prometheus/client_golang/pull/1832 * Cut v1.23.0-rc.0 by @​vesari in https://github.com/prometheus/client_golang/pull/1837 * cut v1.23.0-rc.1 by @​vesari in https://github.com/prometheus/client_golang/pull/1842

New Contributors

Full Changelog: prometheus/client_golang@v1.22.0...v1.23.0

v1.22.0: - 2025-04-07

Compare Source

⚠️ This release contains potential breaking change if you use experimental zstd support introduce in #​1496 ⚠️

Experimental support for zstd on scrape was added, controlled by the request Accept-Encoding header.
It was enabled by default since version 1.20, but now you need to add a blank import to enable it.
The decision to make it opt-in by default was originally made because the Go standard library was expected to have default zstd support added soon,
golang/go#62513 however, the work took longer than anticipated and it will be postponed to upcoming major Go versions.

e.g.:

import (
  _ "github.com/prometheus/client_golang/prometheus/promhttp/zstd"
)
  • [FEATURE] prometheus: Add new CollectorFunc utility #​1724
  • [CHANGE] Minimum required Go version is now 1.22 (we also test client_golang against latest go version - 1.24) #​1738
  • [FEATURE] api: WithLookbackDelta and WithStats options have been added to API client. #​1743
  • [CHANGE] ⚠️ promhttp: Isolate zstd support and klauspost/compress library use to promhttp/zstd package. #​1765
All Changes

Note

PR body was truncated to here.


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.


  • 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 force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from a9ffb54 to 52506e5 Compare September 25, 2022 10:48
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.12.2 Update module github.com/prometheus/client_golang to v1.13.0 Sep 25, 2022
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 52506e5 to f4e67df Compare November 20, 2022 18:03
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.13.0 Update module github.com/prometheus/client_golang to v1.14.0 Nov 20, 2022
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.14.0 fix(deps): update module github.com/prometheus/client_golang to v1.14.0 Mar 17, 2023
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.14.0 fix(deps): update module github.com/prometheus/client_golang to v1.15.0 Apr 17, 2023
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from f4e67df to 70fedfe Compare April 17, 2023 10:45
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.15.0 fix(deps): update module github.com/prometheus/client_golang to v1.15.1 May 28, 2023
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 70fedfe to a07bce0 Compare May 28, 2023 12:14
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.15.1 fix(deps): update module github.com/prometheus/client_golang to v1.16.0 Jun 15, 2023
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from a07bce0 to 715f7d8 Compare June 15, 2023 14:33
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.16.0 fix(deps): update module github.com/prometheus/client_golang to v1.17.0 Sep 27, 2023
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 715f7d8 to cc3cdda Compare September 27, 2023 13:54
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from cc3cdda to 7e3a2db Compare December 28, 2023 00:24
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.17.0 fix(deps): update module github.com/prometheus/client_golang to v1.18.0 Dec 28, 2023
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.18.0 fix(deps): update module github.com/prometheus/client_golang to v1.19.0 Feb 27, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 7e3a2db to f254609 Compare February 27, 2024 22:15
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from f254609 to 377a444 Compare May 9, 2024 13:04
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.19.0 fix(deps): update module github.com/prometheus/client_golang to v1.19.1 May 9, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 377a444 to 5ff64c6 Compare August 14, 2024 15:55
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.19.1 fix(deps): update module github.com/prometheus/client_golang to v1.20.0 Aug 14, 2024
@renovate

renovate Bot commented Aug 14, 2024

Copy link
Copy Markdown
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):

  • 1 additional dependency was updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.15 -> 1.23.0
github.com/google/go-cmp v0.5.6 -> v0.7.0

@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 5ff64c6 to 51e790c Compare August 20, 2024 13:47
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.0 fix(deps): update module github.com/prometheus/client_golang to v1.20.1 Aug 20, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 51e790c to aa0a19c Compare August 23, 2024 21:20
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.1 fix(deps): update module github.com/prometheus/client_golang to v1.20.2 Aug 23, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from aa0a19c to 688eea3 Compare September 5, 2024 15:44
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.2 fix(deps): update module github.com/prometheus/client_golang to v1.20.3 Sep 5, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 688eea3 to 8c0976d Compare September 18, 2024 02:32
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.3 fix(deps): update module github.com/prometheus/client_golang to v1.20.4 Sep 18, 2024
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.20.5 Oct 29, 2024
@renovate renovate Bot reopened this Oct 29, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from f6ffe00 to 817084e Compare October 29, 2024 07:31
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Dec 7, 2024
@renovate renovate Bot closed this Dec 7, 2024
@renovate
renovate Bot deleted the renovate/github.com-prometheus-client_golang-1.x branch December 7, 2024 21:33
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.20.5 Dec 8, 2024
@renovate renovate Bot reopened this Dec 8, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 53cdbe6 to 817084e Compare December 8, 2024 00:07
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Dec 12, 2024
@renovate renovate Bot closed this Dec 12, 2024
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.20.5 Dec 12, 2024
@renovate renovate Bot reopened this Dec 12, 2024
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 2138a76 to 817084e Compare December 12, 2024 21:14
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Jan 4, 2025
@renovate renovate Bot closed this Jan 4, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.20.5 Jan 4, 2025
@renovate renovate Bot reopened this Jan 4, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Feb 7, 2025
@renovate renovate Bot closed this Feb 7, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.20.5 Feb 7, 2025
@renovate renovate Bot reopened this Feb 7, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 2ab4a7d to 817084e Compare February 7, 2025 04:30
@renovate
renovate Bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 817084e to c0f5721 Compare February 19, 2025 10:42
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.20.5 fix(deps): update module github.com/prometheus/client_golang to v1.21.0 Feb 19, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.21.0 fix(deps): update module github.com/prometheus/client_golang to v1.21.0 - autoclosed Feb 22, 2025
@renovate renovate Bot closed this Feb 22, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.21.0 - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.21.0 Feb 22, 2025
@renovate

renovate Bot commented Dec 15, 2025

Copy link
Copy Markdown
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):

  • 1 additional dependency was updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.15 -> 1.25.0
github.com/google/go-cmp v0.5.6 -> v0.7.0

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