Skip to content

Releases: prometheus/client_golang

v1.19.0

27 Feb 18:44
v1.19.0
77d4003
Compare
Choose a tag to compare

What's Changed

The module prometheus/common v0.48.0 introduced an incompatibility when used together with client_golang (See #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: v1.18.0...v1.19.0

v1.18.0

27 Dec 23:13
v1.18.0
53be91d
Compare
Choose a tag to compare

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: v1.17.0...v1.18.0

v1.17.0

27 Sep 12:52
v1.17.0
fa1408e
Compare
Choose a tag to compare

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
  • Merge v1.16.0 to main by @bwplotka in #1293
  • Synchronize common files from prometheus/prometheus by @prombot in #1297
  • ci: define minimal permissions to GitHub workflows by @diogoteles08 in #1295
  • Do not allocate memory when there's no constraints by @Okhoshi in #1296
  • Bump golang.org/x/sys from 0.8.0 to 0.9.0 by @dependabot in #1306
  • Bump google.golang.org/grpc from 1.45.0 to 1.53.0 in /tutorial/whatsup by @dependabot in #1307
  • histogram: Enable detection of a native histogram without observations by @beorn7 in #1314
  • Bump github.com/prometheus/procfs from 0.10.1 to 0.11.0 by @dependabot in #1305
  • Synchronize common files from prometheus/prometheus by @prombot in #1302
  • Fix data-race in metric without code and method but with WithLabelFromCtx by @tigrato in #1318
  • Add missing tick "`" in README by @ZiViZiViZ in #1321
  • Bump golang.org/x/sys from 0.9.0 to 0.10.0 by @dependabot in #1320
  • Bump github.com/prometheus/procfs from 0.11.0 to 0.11.1 by @dependabot in #1319
  • docs: trivial grammar fixes to improve readability in promauto Godoc by @sengi in #1322
  • Add Go 1.21 support by @kakkoyun in #1325
  • Bump client_model by @ArthurSens in #1323
  • histogram docs: Fixed minor nit. by @bwplotka in #1324
  • Update building by @SuperQ in #1326
  • Bump golang.org/x/sys from 0.10.0 to 0.11.0 by @dependabot in #1331
  • Bump github.com/prometheus/client_golang from 1.15.1-0.20230416215738-0963f595c689 to 1.16.0 in /tutorial/whatsup by @dependabot in #1329
  • Bump github.com/prometheus/client_golang from 1.13.1 to 1.16.0 in /examples/middleware by @dependabot in #1328
  • Bump github.com/prometheus/common from 0.42.0 to 0.44.0 by @dependabot in #1284
  • Bump github.com/prometheus/common from 0.42.0 to 0.44.0 in /tutorial/whatsup by @dependabot in #1330
  • Bump google.golang.org/protobuf from 1.30.0 to 1.31.0 by @dependabot in #1304
  • Synchronize common files from prometheus/prometheus by @prombot in #1332
  • Synchronize common files from prometheus/prometheus by @prombot in #1338
  • Cleanup golangci-lint errcheck by @SuperQ in #1339
  • Add go_godebug_non_default_behavior_tlsmaxrsasize_events_total by @alexandear in #1348
  • Extend Counters, Summaries and Histograms with creation timestamp by @ArthurSens in #1313
  • Fix typos in comments, tests, and errors by @alexandear in #1346
  • Deprecated comment should begin with "Deprecated:" by @alexandear in #1347
  • Add changelog entry for 1.17 by @ArthurSens in #1352

New Contributors

Full Changelog: v1.16.0...v1.17.0

v1.16.0

15 Jun 10:48
3583c1e
Compare
Choose a tag to compare

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

Full Changelog: v1.15.1...v1.16.0

v1.15.1

03 May 09:50
4bbb297
Compare
Choose a tag to compare

Changes

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

Full Changelog: v1.15.0...v1.15.1

v1.15.0

13 Apr 11:40
d7896d4
Compare
Choose a tag to compare

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

Full Changelog: v1.14.0...v1.15.0

1.14.0 / 2022-11-08

08 Nov 08:13
254e546
Compare
Choose a tag to compare

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: v1.13.1...v1.14.0

1.13.1 / 2022-11-02

02 Nov 09:02
v1.13.1
53e51c4
Compare
Choose a tag to compare
  • [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: v1.13.0...v1.13.1

1.13.0 / 2022-08-06

06 Aug 07:47
64435fc
Compare
Choose a tag to compare
  • [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
Read more

1.12.2 / 2022-05-13

13 May 10:29
Compare
Choose a tag to compare
  • [CHANGE] Added collectors.WithGoCollections that allows to choose what collection of Go runtime metrics user wants: Equivalent of MemStats structure configured using GoRuntimeMemStatsCollection, new based on dedicated runtime/metrics metrics represented by GoRuntimeMetricsCollection option, or both by specifying GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection flag.
  • [CHANGE] ⚠️ Change in collectors.NewGoCollector metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back with GoRuntimeMetricsCollection option or GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection for smooth transition.
  • [BUGFIX] Fixed the bug that causes generated histogram metric names to end with _total. ⚠️ This changes 3 metric names in the new Go collector that was reverted from default in this release.
    • go_gc_heap_allocs_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes,
    • go_gc_heap_frees_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes
    • go_gc_pauses_seconds_total -> go_gc_pauses_seconds.
  • [CHANGE] Removed -Inf buckets from new Go Collector histograms.

Full Changelog: v1.12.1...v1.12.2