Skip to content

Releases: prometheus/client_golang

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

1.11.1 / 2022-02-15

15 Feb 10:42
989baa3
Compare
Choose a tag to compare
  • [SECURITY FIX] promhttp: Check validity of method and code label values #987 (Addressed CVE-2022-21698)

What's Changed

Full Changelog: v1.11.0...v1.11.1

1.12.1 / 2022-01-29

29 Jan 14:54
2e1c481
Compare
Choose a tag to compare
  • [BUGFIX] Make the Go 1.17 collector concurrency-safe #969
    • Use simpler locking in the Go 1.17 collector #975
  • [BUGFIX] Reduce granularity of histogram buckets for Go 1.17 collector #974
  • [ENHANCEMENT] API client: make HTTP reads more efficient #976

Full Changelog: v1.12.0...v1.12.1

1.12.0 / 2022-01-19

19 Jan 08:03
0108796
Compare
Choose a tag to compare
  • [CHANGE] example/random: Move flags and metrics into main() #935
  • [FEATURE] API client: Support wal replay status api #944
  • [FEATURE] Use the runtime/metrics package for the Go collector for 1.17+ #955
  • [ENHANCEMENT] API client: Update /api/v1/status/tsdb to include headStats #925
  • [SECURITY FIX] promhttp: Check validity of method and code label values #962 (Addressed CVE-2022-21698)

What's Changed

  • Address minor issues on the changelog by @kakkoyun in #879
  • Synchronize common files from prometheus/prometheus by @prombot in #888
  • Update status badgets by @SuperQ in #885
  • Updating dependency versions + cleanup by @sivabalan in #881
  • Synchronize common files from prometheus/prometheus by @prombot in #892
  • add ExponentialBucketsRange function by @sbunce in #899
  • Synchronize common files from prometheus/prometheus by @prombot in #909
  • Update cespare/xxhash dependency by @dtrudg in #913
  • example/random: Move flags and metrics into main() by @beorn7 in #935
  • Fix typo by @gozeloglu in #939
  • Add support for go 1.17 by @mrueg in #950
  • Synchronize common files from prometheus/prometheus by @prombot in #928
  • Synchronize common files from prometheus/prometheus by @prombot in #952
  • API: support wal replay status api by @yeya24 in #944
  • Update /api/v1/status/tsdb to include headStats by @prymitive in #925
  • Use the runtime/metrics package for the Go collector for 1.17+ by @mknyszek in #955
  • promhttp: Check validity of method and code label values by @kakkoyun in #962
  • go.*: Update dependencies by @kakkoyun in #965

New Contributors

Full Changelog: v1.11.0...v1.12.0

v1.11.0 / 2021-06-07

07 Jun 13:05
v1.11.0
8184d76
Compare
Choose a tag to compare
  • [CHANGE] Add new collectors package. #862
  • [CHANGE] prometheus.NewExpvarCollector is deprecated, use collectors.NewExpvarCollector instead. #862
  • [CHANGE] prometheus.NewGoCollector is deprecated, use collectors.NewGoCollector instead. #862
  • [CHANGE] prometheus.NewBuildInfoCollector is deprecated, use collectors.NewBuildInfoCollector instead. #862
  • [FEATURE] Add new collector for database/sql#DBStats. #866
  • [FEATURE] API client: Add exemplars API support. #861
  • [ENHANCEMENT] API client: Add newer fields to Rules API. #855
  • [ENHANCEMENT] API client: Add missing fields to Targets API. #856

What's Changed

New Contributors

Full Changelog: v1.10.0...v1.11.0

1.10.0 / 2021-03-18

18 Mar 12:11
v1.10.0
efe7aa7
Compare
Choose a tag to compare
  • [CHANGE] Minimum required Go version is now 1.13.
  • [CHANGE] API client: Add matchers to LabelNames and LabesValues. #828
  • [FEATURE] API client: Add buildinfo call. #841
  • [BUGFIX] Fix build on riscv64. #833

What's Changed

New Contributors

Full Changelog: v1.9.0...v1.10.0

1.9.0 / 2020-12-17

17 Dec 00:24
v1.9.0
d89cf5a
Compare
Choose a tag to compare
  • [FEATURE] NewPidFileFn helper to create process collectors for processes whose PID is read from a file. #804
  • [BUGFIX] promhttp: Prevent endless loop in InstrumentHandler... middlewares with invalid metric or label names. #823

What's Changed

  • add the NewPidFileFn to helper by @sbookworm in #804
  • Synchronize common files from prometheus/prometheus by @prombot in #809
  • Synchronize common files from prometheus/prometheus by @prombot in #811
  • Added example api code showing how to add auth tokens and user agents to prom client. by @bwplotka in #817
  • Correct spelling: possibilites -> possibilities by @jubalh in #819
  • Be more explicit about the multi-line properties of MultiError by @beorn7 in #821
  • promhttp: Correctly detect invalid metric and label names by @beorn7 in #823
  •  Cut release 1.9.0 by @beorn7 in #826

New Contributors

Full Changelog: v1.8.0...v1.9.0

1.8.0 / 2020-10-15

15 Oct 16:26
v1.8.0
47cfdc9
Compare
Choose a tag to compare
  • [CHANGE] API client: Use time.Time rather than string for timestamps in RuntimeinfoResult. #777
  • [FEATURE] Export MetricVec to facilitate implementation of vectors of custom Metric types. #803
  • [FEATURE API client: Support /status/tsdb endpoint. #773
  • [ENHANCEMENT] API client: Enable GET fallback on status code 501. #802
  • [ENHANCEMENT] Remove Metric references after reslicing to free up more memory. #784

What's Changed

New Contributors

Full Changelog: v1.7.1...v1.8.0

1.7.1 / 2020-06-23

23 Jun 20:34
v1.7.1
fe7bd95
Compare
Choose a tag to compare
  • [BUGFIX] API client: Actually propagate start/end parameters of LabelNames and LabelValues. #771

1.7.0 / 2020-06-17

17 Jun 20:43
v1.7.0
b05e50c
Compare
Choose a tag to compare
  • [CHANGE] API client: Add start/end parameters to LabelNames and LabelValues. #767
  • [FEATURE] testutil: Add GatherAndCount and enable filtering in CollectAndCount #753
  • [FEATURE] API client: Add support for status and runtimeinfo endpoints. #755
  • [ENHANCEMENT] Wrapping nil with a WrapRegistererWith... function creates a no-op Registerer. #764
  • [ENHANCEMENT] promlint: Allow Kelvin as a base unit for cases like color temperature. #761
  • [BUGFIX] push: Properly handle empty job and label values. #752