Skip to content

fix(deps): update module github.com/prometheus/client_golang to v1.20.5

This MR contains the following updates:

Package Type Update Change
github.com/prometheus/client_golang require minor v1.12.2 -> v1.20.5

Release Notes

prometheus/client_golang

v1.20.5

Compare Source

We decided to revert the testutil change that made our util functions less error-prone, but created a lot of work for our downstream users. Apologies for the pain! This revert should not cause any major breaking change, even if you already did the work--unless you depend on the exact error message.

Going forward, we plan to reinforce our release testing strategy [1],[2] and deliver an enhanced testutil package/module with more flexible and safer APIs.

Thanks to @​dashpole @​dgrisonnet @​kakkoyun @​ArthurSens @​vesari @​logicalhan @​krajorama @​bwplotka who helped in this patch release! 🤗

Changelog

[BUGFIX] testutil: Reverted #​1424; functions using compareMetricFamilies are (again) only failing if filtered metricNames are in the expected input. #​1645

v1.20.4

Compare Source

  • [BUGFIX] histograms: Fix a possible data race when appending exemplars vs metrics gather. #​1623

v1.20.3

Compare Source

  • [BUGFIX] histograms: Fix possible data race when appending exemplars. #​1608

v1.20.2

Compare Source

  • [BUGFIX] promhttp: Unset Content-Encoding header when data is uncompressed. #​1596

v1.20.1

Compare Source

This release contains the critical fix for the issue. Thanks to @​geberl, @​CubicrootXYZ, @​zetaab and @​timofurrer for helping us with the investigation!

  • [BUGFIX] process-collector: Fixed unregistered descriptor error when using process collector with PedanticRegistry on Linux machines. #​1587

v1.20.0

Compare Source

Thanks everyone for contributions!

In this release we remove one (broken anyway, given Go runtime changes) metric and add three new (representing GOGC, GOMEMLIMIT and GOMAXMROCS flags) to the default collectors.NewGoCollector() collector. Given its popular usage, expect your binary to expose two additional metric.

Changes

  • [CHANGE] go-collector: Remove go_memstat_lookups_total metric which was always 0; Go runtime stopped sharing pointer lookup statistics. #​1577
  • [FEATURE] go-collector: Add 3 default metrics: go_gc_gogc_percent, go_gc_gomemlimit_bytes and go_sched_gomaxprocs_threads as those are recommended by the Go team. #​1559
  • [FEATURE] go-collector: Add more information to all metrics' HELP e.g. the exact runtime/metrics sourcing each metric (if relevant). #​1568 #​1578
  • [FEATURE] testutil: Add CollectAndFormat method. #​1503
  • [FEATURE] histograms: Add support for exemplars in native histograms. #​1471
  • [FEATURE] promhttp: Add experimental support for zstd on scrape, controlled by the request Accept-Encoding header. #​1496
  • [FEATURE] api/v1: Add WithLimit parameter to all API methods that supports it. #​1544
  • [FEATURE] prometheus: Add support for created timestamps in constant histograms and constant summaries. #​1537
  • [FEATURE] process-collectors: Add network usage metrics: process_network_receive_bytes_total and process_network_transmit_bytes_total. #​1555
  • [FEATURE] promlint: Add duplicated metric lint rule. #​1472
  • [BUGFIX] promlint: Relax metric type in name linter rule. #​1455
  • [BUGFIX] promhttp: Make sure server instrumentation wrapping supports new and future extra responseWriter methods. #​1480
  • [BUGFIX] testutil: Functions using compareMetricFamilies are now failing if filtered metricNames are not in the input. #​1424
All commits
#### New Contributors * @​foehammer127 made their first contribution in https://github.com/prometheus/client_golang/pull/1455 * @​SachinSahu431 made their first contribution in https://github.com/prometheus/client_golang/pull/1476 * @​igor-drozdov made their first contribution in https://github.com/prometheus/client_golang/pull/1480 * @​majolo made their first contribution in https://github.com/prometheus/client_golang/pull/1492 * @​oftenoccur made their first contribution in https://github.com/prometheus/client_golang/pull/1497 * @​dongjiang1989 made their first contribution in https://github.com/prometheus/client_golang/pull/1499 * @​lilijreey made their first contribution in https://github.com/prometheus/client_golang/pull/1511 * @​Ishani217 made their first contribution in https://github.com/prometheus/client_golang/pull/1444 * @​jcass8695 made their first contribution in https://github.com/prometheus/client_golang/pull/1503 * @​leonnicolas made their first contribution in https://github.com/prometheus/client_golang/pull/1424 * @​fatsheep9146 made their first contribution in https://github.com/prometheus/client_golang/pull/1471 * @​abbyssoul made their first contribution in https://github.com/prometheus/client_golang/pull/1544 * @​swar8080 made their first contribution in https://github.com/prometheus/client_golang/pull/1537 * @​huwcbjones made their first contribution in https://github.com/prometheus/client_golang/pull/1555 * @​marcosnils made their first contribution in https://github.com/prometheus/client_golang/pull/1534 * @​vesari made their first contribution in https://github.com/prometheus/client_golang/pull/1559

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.0

v1.19.1

Compare Source

What's Changed

  • Security patches for golang.org/x/sys and google.golang.org/protobuf

New Contributors

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.19.0...v1.19.1

v1.19.0

Compare Source

What's Changed

The module prometheus/common v0.48.0 introduced an incompatibility when used together with client_golang (See https://github.com/prometheus/client_golang/pull/1448 for more details). If your project uses client_golang and you want to use prometheus/common v0.48.0 or higher, please update client_golang to v1.19.0.

  • [CHANGE] Minimum required go version is now 1.20 (we also test client_golang against new 1.22 version). #​1445 #​1449
  • [FEATURE] collectors: Add version collector. #​1422 #​1427

New Contributors

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.0

v1.18.0

Compare Source

What's Changed

  • [FEATURE] promlint: Allow creation of custom metric validations. #​1311
  • [FEATURE] Go programs using client_golang can be built in wasip1 OS. #​1350
  • [BUGFIX] histograms: Add timer to reset ASAP after bucket limiting has happened. #​1367
  • [BUGFIX] testutil: Fix comparison of metrics with empty Help strings. #​1378
  • [ENHANCEMENT] Improved performance of MetricVec.WithLabelValues(...). #​1360

New Contributors

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.17.0...v1.18.0

v1.17.0

Compare Source

What's Changed

  • [CHANGE] Minimum required go version is now 1.19 (we also test client_golang against new 1.21 version). #​1325
  • [FEATURE] Add support for Created Timestamps in Counters, Summaries and Historams. #​1313
  • [ENHANCEMENT] Enable detection of a native histogram without observations. #​1314
Commits
#### New Contributors * @​diogoteles08 made their first contribution in https://github.com/prometheus/client_golang/pull/1295 * @​tigrato made their first contribution in https://github.com/prometheus/client_golang/pull/1318 * @​ZiViZiViZ made their first contribution in https://github.com/prometheus/client_golang/pull/1321 * @​sengi made their first contribution in https://github.com/prometheus/client_golang/pull/1322 * @​ArthurSens made their first contribution in https://github.com/prometheus/client_golang/pull/1323 * @​alexandear made their first contribution in https://github.com/prometheus/client_golang/pull/1348

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.16.0...v1.17.0

v1.16.0

Compare Source

What's Changed

  • [BUGFIX] api: Switch to POST for LabelNames, Series, and QueryExemplars. #​1252
  • [BUGFIX] api: Fix undefined execution order in return statements. #​1260
  • [BUGFIX] native histograms: Fix bug in bucket key calculation. #​1279
  • [ENHANCEMENT] Reduce constrainLabels allocations for all metrics. #​1272
  • [ENHANCEMENT] promhttp: Add process start time header for scrape efficiency. #​1278
  • [ENHANCEMENT] promlint: Improve metricUnits runtime. #​1286
Commits
#### New Contributors * @​vegerot made their first contribution in https://github.com/prometheus/client_golang/pull/1153 * @​marevers made their first contribution in https://github.com/prometheus/client_golang/pull/1257 * @​PiotrLewandowski323 made their first contribution in https://github.com/prometheus/client_golang/pull/1260 * @​sashashura made their first contribution in https://github.com/prometheus/client_golang/pull/1180 * @​logicalhan made their first contribution in https://github.com/prometheus/client_golang/pull/1278 * @​khasanovbi made their first contribution in https://github.com/prometheus/client_golang/pull/1272 * @​krishnaduttPanchagnula made their first contribution in https://github.com/prometheus/client_golang/pull/1281 * @​avlitman made their first contribution in https://github.com/prometheus/client_golang/pull/1286

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.15.1...v1.16.0

v1.15.1

Compare Source

Changes

  • [BUGFIX] Fixed promhttp.Instrument* handlers wrongly trying to attach exemplar to unsupported metrics (e.g. summary),
    causing panics #​1253

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.15.0...v1.15.1

v1.15.0

Compare Source

Changed

[BUGFIX] Fix issue with atomic variables on ppc64le #​1171 [BUGFIX] Support for multiple samples within same metric #​1181 [BUGFIX] Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149 #​1187 [ENHANCEMENT] Add exemplars and middleware examples #​1173 [ENHANCEMENT] Add more context to "duplicate label names" error to enable debugging #​1177 [ENHANCEMENT] Add constrained labels and constrained variant for all MetricVecs #​1151 [ENHANCEMENT] Moved away from deprecated github.com/golang/protobuf package #​1183 [ENHANCEMENT] Add possibility to dynamically get label values for http instrumentation #​1066 [ENHANCEMENT] Add ability to Pusher to add custom headers #​1218 [ENHANCEMENT] api: Extend and improve efficiency of json-iterator usage #​1225 [ENHANCEMENT] Added (official) support for go 1.20 #​1234 [ENHANCEMENT] timer: Added support for exemplars #​1233 [ENHANCEMENT] Filter expected metrics as well in CollectAndCompare #​1143 [ENHANCEMENT] ️ Only set start/end if time is not Zero. This breaks compatibility in experimental api package. If you strictly depend on empty time.Time as actual value, the behavior is now changed #​1238

All commits
#### New Contributors * @​SpencerMalone made their first contribution in https://github.com/prometheus/client_golang/pull/1177 * @​Okhoshi made their first contribution in https://github.com/prometheus/client_golang/pull/1151 * @​machadovilaca made their first contribution in https://github.com/prometheus/client_golang/pull/1181 * @​b4bay made their first contribution in https://github.com/prometheus/client_golang/pull/1187 * @​ibreakthecloud made their first contribution in https://github.com/prometheus/client_golang/pull/1178 * @​songjiayang made their first contribution in https://github.com/prometheus/client_golang/pull/1218 * @​lamida made their first contribution in https://github.com/prometheus/client_golang/pull/1226 * @​dimonl made their first contribution in https://github.com/prometheus/client_golang/pull/1235 * @​DariaKunoichi made their first contribution in https://github.com/prometheus/client_golang/pull/1143

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.14.0...v1.15.0

v1.14.0

Compare Source

It might look like a small release, but it's quite opposite 😱 There were many non user facing changes and fixes and enormous work from engineers from Grafana to add native histograms in 💪🏾 Enjoy! 😍

What's Changed

  • [FEATURE] Add Support for Native Histograms. #​1150
  • [CHANGE] Extend prometheus.Registry to implement prometheus.Collector interface. #​1103

New Contributors

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.1...v1.14.0

v1.13.1

Compare Source

  • [BUGFIX] Fix race condition with Exemplar in Counter. #​1146
  • [BUGFIX] Fix CumulativeCount value of +Inf bucket created from exemplar. #​1148
  • [BUGFIX] Fix double-counting bug in promhttp.InstrumentRoundTripperCounter. #​1118

Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.0...v1.13.1

v1.13.0

Compare Source

  • [CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against the new 1.19 version).
  • [ENHANCEMENT] Added prometheus.TransactionalGatherer interface for promhttp.Handler use which allows using low allocation update techniques for custom collectors. #​989
  • [ENHANCEMENT] Added exemplar support to prometheus.NewConstHistogram. See ExampleNewConstHistogram_WithExemplar example on how to use it. #​986
  • [ENHANCEMENT] Query requests are now retried after network error. #​1022
  • [ENHANCEMENT] prometheus/push.Pusher now has context-aware methods that pass context to HTTP requests. #​1028
  • [ENHANCEMENT] prometheus/push.Pusher has now Error method that retrieve last error. #​1075
  • [ENHANCEMENT] testutil.GatherAndCompare provides now readable diff on failed comparisons. #​998
  • [ENHANCEMENT] Query API now supports timeouts. #​1014
  • [ENHANCEMENT] New MetricVec method DeletePartialMatch(labels Labels) for deleting all metrics that match provided labels. #​1013
  • [ENHANCEMENT] api.Config now accepts passing custom *http.Client. #​1025
  • [BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. #​1091
  • [BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. #​1094
  • [ENHANCEMENT] Most promhttp.Instrument* middlewares now support adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and puts it in exemplar if present. #​1055
  • [ENHANCEMENT] Added testutil.ScrapeAndCompare method. #​1043
  • [BUGFIX] Fixed GopherJS build support. #​897
  • [ENHANCEMENT] Added way to specify what runtime/metrics collectors.NewGoCollector should use. See ExampleGoCollector_WithAdvancedGoMetrics. #​1102

New Contributors

Commits

Configuration

📅 Schedule: "before 6am on Monday" in timezone Europe/Paris.

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

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

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


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports

Loading