v1.12.2
版本发布时间: 2022-05-13 18:29:05
prometheus/client_golang最新发布版本:v1.20.4(2024-09-17 16:01:45)
- [CHANGE] Added
collectors.WithGoCollections
that allows to choose what collection of Go runtime metrics user wants: Equivalent ofMemStats
structure configured usingGoRuntimeMemStatsCollection
, new based on dedicated runtime/metrics metrics represented byGoRuntimeMetricsCollection
option, or both by specifyingGoRuntimeMemStatsCollection | GoRuntimeMetricsCollection
flag. - [CHANGE] :warning: Change in
collectors.NewGoCollector
metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back withGoRuntimeMetricsCollection
option orGoRuntimeMemStatsCollection | 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: https://github.com/prometheus/client_golang/compare/v1.12.1...v1.12.2