⚠️ 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, https://github.com/golang/go/issues/62513 however, the work took longer than anticipated and it will be postponed to upcoming major Go versions.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) | require | minor | `v1.21.1` -> `v1.22.0` |
---
### Release Notes
<details>
<summary>prometheus/client_golang (github.com/prometheus/client_golang)</summary>
### [`v1.22.0`](https://github.com/prometheus/client_golang/releases/tag/v1.22.0): - 2025-04-07
[Compare Source](https://github.com/prometheus/client_golang/compare/v1.21.1...v1.22.0)
:warning: This release contains potential breaking change if you use experimental `zstd` support introduce in [#​1496](https://github.com/prometheus/client_golang/issues/1496) :warning:
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,
https://github.com/golang/go/issues/62513 however, the work took longer than anticipated and it will be postponed to upcoming major Go versions.
e.g.:
> ```go
> import (
> _ "github.com/prometheus/client_golang/prometheus/promhttp/zstd"
> )
> ```
- \[FEATURE] prometheus: Add new CollectorFunc utility [#​1724](https://github.com/prometheus/client_golang/issues/1724)
- \[CHANGE] Minimum required Go version is now 1.22 (we also test client_golang against latest go version - 1.24) [#​1738](https://github.com/prometheus/client_golang/issues/1738)
- \[FEATURE] api: `WithLookbackDelta` and `WithStats` options have been added to API client. [#​1743](https://github.com/prometheus/client_golang/issues/1743)
- \[CHANGE] :warning: promhttp: Isolate zstd support and klauspost/compress library use to promhttp/zstd package. [#​1765](https://github.com/prometheus/client_golang/issues/1765)
<details>
<summary> All Changes </summary>
- build(deps): bump golang.org/x/sys from 0.28.0 to 0.29.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1720
- build(deps): bump google.golang.org/protobuf from 1.36.1 to 1.36.3 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1719
- Update RELEASE.md by [@​bwplotka](https://github.com/bwplotka) in https://github.com/prometheus/client_golang/pull/1721
- chore(docs): Add links for the upstream PRs by [@​kakkoyun](https://github.com/kakkoyun) in https://github.com/prometheus/client_golang/pull/1722
- Added tips on releasing client and checking with k8s. by [@​bwplotka](https://github.com/bwplotka) in https://github.com/prometheus/client_golang/pull/1723
- feat: Add new CollectorFunc utility by [@​Saumya40-codes](https://github.com/Saumya40-codes) in https://github.com/prometheus/client_golang/pull/1724
- build(deps): bump google.golang.org/protobuf from 1.36.3 to 1.36.4 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1725
- build(deps): bump the github-actions group with 5 updates by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1726
- Synchronize common files from prometheus/prometheus by [@​prombot](https://github.com/prombot) in https://github.com/prometheus/client_golang/pull/1727
- Synchronize common files from prometheus/prometheus by [@​prombot](https://github.com/prombot) in https://github.com/prometheus/client_golang/pull/1731
- build(deps): bump golang.org/x/sys from 0.29.0 to 0.30.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1739
- build(deps): bump google.golang.org/protobuf from 1.36.4 to 1.36.5 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1740
- Cleanup dependabot config by [@​SuperQ](https://github.com/SuperQ) in https://github.com/prometheus/client_golang/pull/1741
- Upgrade Golang version v1.24 by [@​dongjiang1989](https://github.com/dongjiang1989) in https://github.com/prometheus/client_golang/pull/1738
- build(deps): bump the github-actions group with 2 updates by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1742
- Merging 1.21 release back to main. by [@​bwplotka](https://github.com/bwplotka) in https://github.com/prometheus/client_golang/pull/1744
- Synchronize common files from prometheus/prometheus by [@​prombot](https://github.com/prombot) in https://github.com/prometheus/client_golang/pull/1745
- Add support for undocumented query options for API by [@​mahendrapaipuri](https://github.com/mahendrapaipuri) in https://github.com/prometheus/client_golang/pull/1743
- exp/api: Add experimental exp module; Add remote API with write client and handler. by [@​bwplotka](https://github.com/bwplotka) in https://github.com/prometheus/client_golang/pull/1658
- exp/api: Add accepted msg type validation to handler by [@​saswatamcode](https://github.com/saswatamcode) in https://github.com/prometheus/client_golang/pull/1750
- build(deps): bump the github-actions group with 5 updates by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1751
- build(deps): bump github.com/klauspost/compress from 1.17.11 to 1.18.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1752
- build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1753
- exp: Reset snappy buf by [@​saswatamcode](https://github.com/saswatamcode) in https://github.com/prometheus/client_golang/pull/1756
- Merge release 1.21.1 to main. by [@​bwplotka](https://github.com/bwplotka) in https://github.com/prometheus/client_golang/pull/1762
- exp: Add dependabot config by [@​saswatamcode](https://github.com/saswatamcode) in https://github.com/prometheus/client_golang/pull/1754
- build(deps): bump peter-evans/create-pull-request from 7.0.7 to 7.0.8 in the github-actions group by [@​dependabot](https://github.com/dependabot) in https://github.com/prometheus/client_golang/pull/1764
- promhttp: Isolate zstd support and klauspost/compress library use to promhttp/zstd package by [@​liggitt](https://github.com/liggitt) in https://github.com/prometheus/client_golang/pull/1765
- Cut 1.22.0-rc.0 by [@​kakkoyun](https://github.com/kakkoyun) in https://github.com/prometheus/client_golang/pull/1768
</details>
#### New Contributors
* @​Saumya40-codes made their first contribution in https://github.com/prometheus/client_golang/pull/1724
* @​mahendrapaipuri made their first contribution in https://github.com/prometheus/client_golang/pull/1743
* @​liggitt made their first contribution in https://github.com/prometheus/client_golang/pull/1765
**Full Changelog**: https://github.com/prometheus/client_golang/compare/v1.21.1...v1.22.0-rc.0
</details>
---
### Configuration
📅 **Schedule**: 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 has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzUuMiIsInVwZGF0ZWRJblZlciI6IjM5LjIzNS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v1.21.1->v1.22.0Release Notes
prometheus/client_golang (github.com/prometheus/client_golang)
v1.22.0: - 2025-04-07Compare Source
⚠️ This release contains potential breaking change if you use experimental
zstdsupport introduce in #1496 ⚠️Experimental support for
zstdon scrape was added, controlled by the requestAccept-Encodingheader.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,
https://github.com/golang/go/issues/62513 however, the work took longer than anticipated and it will be postponed to upcoming major Go versions.
e.g.:
WithLookbackDeltaandWithStatsoptions have been added to API client. #1743All Changes
New Contributors
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.21.1...v1.22.0-rc.0
Configuration
📅 Schedule: 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.
This PR has been generated by Renovate Bot.
ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):godirective was updated for compatibility reasonsDetails:
go1.21->1.22github.com/klauspost/compressv1.17.11->v1.18.0golang.org/x/sysv0.28.0->v0.30.0google.golang.org/protobufv1.36.1->v1.36.5