Debian Codegraph @

CHANGELOG.md

raw
1 ## Unreleased
2
3 ## 1.23.2 / 2025-09-05
4
5 This release is made to upgrade to prometheus/common v0.66.1, which drops the dependencies github.com/grafana/regexp and go.uber.org/atomic and replaces gopkg.in/yaml.v2 with go.yaml.in/yaml/v2 (a drop-in replacement).
6 There are no functional changes.
7
8 ## 1.23.1 / 2025-09-04
9
10 This release is made to be compatible with a backwards incompatible API change
11 in prometheus/common v0.66.0. There are no functional changes.
12
13 ## 1.23.0 / 2025-07-30
14
15 * [CHANGE] Minimum required Go version is now 1.23, only the two latest Go versions are supported from now on. #1812
16 * [FEATURE] Add WrapCollectorWith and WrapCollectorWithPrefix #1766
17 * [FEATURE] Add exemplars for native histograms #1686
18 * [ENHANCEMENT] exp/api: Bubble up status code from writeResponse #1823
19 * [ENHANCEMENT] collector/go: Update runtime metrics for Go v1.23 and v1.24 #1833
20 * [BUGFIX] exp/api: client prompt return on context cancellation #1729
21
22 ## 1.22.0 / 2025-04-07
23
24 :warning: This release contains potential breaking change if you use experimental `zstd` support introduce in #1496 :warning:
25
26 Experimental support for `zstd` on scrape was added, controlled by the request `Accept-Encoding` header.
27 It was enabled by default since version 1.20, but now you need to add a blank import to enable it.
28 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,
29 https://github.com/golang/go/issues/62513 however, the work took longer than anticipated and it will be postponed to upcoming major Go versions.
30
31
32 e.g.:
33 > ```go
34 > import (
35 > _ "github.com/prometheus/client_golang/prometheus/promhttp/zstd"
36 > )
37 > ```
38
39 * [FEATURE] prometheus: Add new CollectorFunc utility #1724
40 * [CHANGE] Minimum required Go version is now 1.22 (we also test client_golang against latest go version - 1.24) #1738
41 * [FEATURE] api: `WithLookbackDelta` and `WithStats` options have been added to API client. #1743
42 * [CHANGE] :warning: promhttp: Isolate zstd support and klauspost/compress library use to promhttp/zstd package. #1765
43
44 ## 1.21.1 / 2025-03-04
45
46 * [BUGFIX] prometheus: Revert of `Inc`, `Add` and `Observe` cumulative metric CAS optimizations (#1661), causing regressions on low contention cases.
47 * [BUGFIX] prometheus: Fix GOOS=ios build, broken due to process_collector_* wrong build tags.
48
49 ## 1.21.0 / 2025-02-17
50
51 :warning: This release contains potential breaking change if you upgrade `github.com/prometheus/common` to 0.62+ together with client_golang. :warning:
52
53 New common version [changes `model.NameValidationScheme` global variable](https://github.com/prometheus/common/pull/724), which relaxes the validation of label names and metric name, allowing all UTF-8 characters. Typically, this should not break any user, unless your test or usage expects strict certain names to panic/fail on client_golang metric registration, gathering or scrape. In case of problems change `model.NameValidationScheme` to old `model.LegacyValidation` value in your project `init` function.
54
55 * [BUGFIX] gocollector: Fix help message for runtime/metric metrics. #1583
56 * [BUGFIX] prometheus: Fix `Desc.String()` method for no labels case. #1687
57 * [ENHANCEMENT] prometheus: Optimize popular `prometheus.BuildFQName` function; now up to 30% faster. #1665
58 * [ENHANCEMENT] prometheus: Optimize `Inc`, `Add` and `Observe` cumulative metrics; now up to 50% faster under high concurrent contention. #1661
59 * [CHANGE] Upgrade prometheus/common to 0.62.0 which changes `model.NameValidationScheme` global variable. #1712
60 * [CHANGE] Add support for Go 1.23. #1602
61 * [FEATURE] process_collector: Add support for Darwin systems. #1600 #1616 #1625 #1675 #1715
62 * [FEATURE] api: Add ability to invoke `CloseIdleConnections` on api.Client using `api.Client.(CloseIdler).CloseIdleConnections()` casting. #1513
63 * [FEATURE] promhttp: Add `promhttp.HandlerOpts.EnableOpenMetricsTextCreatedSamples` option to create OpenMetrics _created lines. Not recommended unless you want to use opt-in Created Timestamp feature. Community works on OpenMetrics 2.0 format that should make those lines obsolete (they increase cardinality significantly). #1408
64 * [FEATURE] prometheus: Add `NewConstNativeHistogram` function. #1654
65
66 ## 1.20.5 / 2024-10-15
67
68 * [BUGFIX] testutil: Reverted #1424; functions using compareMetricFamilies are (again) only failing if filtered metricNames are in the expected input.
69
70 ## 1.20.4 / 2024-09-07
71
72 * [BUGFIX] histograms: Fix possible data race when appending exemplars vs metrics gather. #1623
73
74 ## 1.20.3 / 2024-09-05
75
76 * [BUGFIX] histograms: Fix possible data race when appending exemplars. #1608
77
78 ## 1.20.2 / 2024-08-23
79
80 * [BUGFIX] promhttp: Unset Content-Encoding header when data is uncompressed. #1596
81
82 ## 1.20.1 / 2024-08-20
83
84 * [BUGFIX] process-collector: Fixed unregistered descriptor error when using process collector with `PedanticRegistry` on linux machines. #1587
85
86 ## 1.20.0 / 2024-08-14
87
88 * [CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total` metric which was always 0; Go runtime stopped sharing pointer lookup statistics. #1577
89 * [FEATURE] :warning: 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
90 * [FEATURE] go-collector: Add more information to all metrics' HELP e.g. the exact `runtime/metrics` sourcing each metric (if relevant). #1568 #1578
91 * [FEATURE] testutil: Add CollectAndFormat method. #1503
92 * [FEATURE] histograms: Add support for exemplars in native histograms. #1471
93 * [FEATURE] promhttp: Add experimental support for `zstd` on scrape, controlled by the request `Accept-Encoding` header. #1496
94 * [FEATURE] api/v1: Add `WithLimit` parameter to all API methods that supports it. #1544
95 * [FEATURE] prometheus: Add support for created timestamps in constant histograms and constant summaries. #1537
96 * [FEATURE] process-collector: Add network usage metrics: `process_network_receive_bytes_total` and `process_network_transmit_bytes_total`. #1555
97 * [FEATURE] promlint: Add duplicated metric lint rule. #1472
98 * [BUGFIX] promlint: Relax metric type in name linter rule. #1455
99 * [BUGFIX] promhttp: Make sure server instrumentation wrapping supports new and future extra responseWriter methods. #1480
100 * [BUGFIX] **breaking** testutil: Functions using compareMetricFamilies are now failing if filtered metricNames are not in the input. #1424 (reverted in 1.20.5)
101
102 ## 1.19.0 / 2024-02-27
103
104 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.
105
106 * [CHANGE] Minimum required go version is now 1.20 (we also test client_golang against new 1.22 version). #1445 #1449
107 * [FEATURE] collectors: Add version collector. #1422 #1427
108
109 ## 1.18.0 / 2023-12-22
110
111 * [FEATURE] promlint: Allow creation of custom metric validations. #1311
112 * [FEATURE] Go programs using client_golang can be built in wasip1 OS. #1350
113 * [BUGFIX] histograms: Add timer to reset ASAP after bucket limiting has happened. #1367
114 * [BUGFIX] testutil: Fix comparison of metrics with empty Help strings. #1378
115 * [ENHANCEMENT] Improved performance of `MetricVec.WithLabelValues(...)`. #1360
116
117 ## 1.17.0 / 2023-09-27
118
119 * [CHANGE] Minimum required go version is now 1.19 (we also test client_golang against new 1.21 version). #1325
120 * [FEATURE] Add support for Created Timestamps in Counters, Summaries and Historams. #1313
121 * [ENHANCEMENT] Enable detection of a native histogram without observations. #1314
122
123 ## 1.16.0 / 2023-06-15
124
125 * [BUGFIX] api: Switch to POST for LabelNames, Series, and QueryExemplars. #1252
126 * [BUGFIX] api: Fix undefined execution order in return statements. #1260
127 * [BUGFIX] native histograms: Fix bug in bucket key calculation. #1279
128 * [ENHANCEMENT] Reduce constrainLabels allocations for all metrics. #1272
129 * [ENHANCEMENT] promhttp: Add process start time header for scrape efficiency. #1278
130 * [ENHANCEMENT] promlint: Improve metricUnits runtime. #1286
131
132 ## 1.15.1 / 2023-05-3
133
134 * [BUGFIX] Fixed promhttp.Instrument* handlers wrongly trying to attach exemplar to unsupported metrics (e.g. summary), \
135 causing panics. #1253
136
137 ## 1.15.0 / 2023-04-13
138
139 * [BUGFIX] Fix issue with atomic variables on ppc64le. #1171
140 * [BUGFIX] Support for multiple samples within same metric. #1181
141 * [BUGFIX] Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149. #1187
142 * [ENHANCEMENT] Add exemplars and middleware examples. #1173
143 * [ENHANCEMENT] Add more context to "duplicate label names" error to enable debugging. #1177
144 * [ENHANCEMENT] Add constrained labels and constrained variant for all MetricVecs. #1151
145 * [ENHANCEMENT] Moved away from deprecated github.com/golang/protobuf package. #1183
146 * [ENHANCEMENT] Add possibility to dynamically get label values for http instrumentation. #1066
147 * [ENHANCEMENT] Add ability to Pusher to add custom headers. #1218
148 * [ENHANCEMENT] api: Extend and improve efficiency of json-iterator usage. #1225
149 * [ENHANCEMENT] Added (official) support for go 1.20. #1234
150 * [ENHANCEMENT] timer: Added support for exemplars. #1233
151 * [ENHANCEMENT] Filter expected metrics as well in CollectAndCompare. #1143
152 * [ENHANCEMENT] :warning: 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
153
154 ## 1.14.0 / 2022-11-08
155
156 * [FEATURE] Add Support for Native Histograms. #1150
157 * [CHANGE] Extend `prometheus.Registry` to implement `prometheus.Collector` interface. #1103
158
159 ## 1.13.1 / 2022-11-01
160
161 * [BUGFIX] Fix race condition with Exemplar in Counter. #1146
162 * [BUGFIX] Fix `CumulativeCount` value of `+Inf` bucket created from exemplar. #1148
163 * [BUGFIX] Fix double-counting bug in `promhttp.InstrumentRoundTripperCounter`. #1118
164
165 ## 1.13.0 / 2022-08-05
166
167 * [CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against new 1.19 version).
168 * [ENHANCEMENT] Added `prometheus.TransactionalGatherer` interface for `promhttp.Handler` use which allows using low allocation update techniques for custom collectors. #989
169 * [ENHANCEMENT] Added exemplar support to `prometheus.NewConstHistogram`. See [`ExampleNewConstHistogram_WithExemplar`](prometheus/examples_test.go#L602) example on how to use it. #986
170 * [ENHANCEMENT] `prometheus/push.Pusher` has now context aware methods that pass context to HTTP request. #1028
171 * [ENHANCEMENT] `prometheus/push.Pusher` has now `Error` method that retrieve last error. #1075
172 * [ENHANCEMENT] `testutil.GatherAndCompare` provides now readable diff on failed comparisons. #998
173 * [ENHANCEMENT] Query API now supports timeouts. #1014
174 * [ENHANCEMENT] New `MetricVec` method `DeletePartialMatch(labels Labels)` for deleting all metrics that match provided labels. #1013
175 * [ENHANCEMENT] `api.Config` now accepts passing custom `*http.Client`. #1025
176 * [BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. #1091
177 * [BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. #1094
178 * [ENHANCEMENT] Most `promhttp.Instrument*` middlewares now supports adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and put it in exemplar if present. #1055
179 * [ENHANCEMENT] Added `testutil.ScrapeAndCompare` method. #1043
180 * [BUGFIX] Fixed `GopherJS` build support. #897
181 * [ENHANCEMENT] :warning: Added way to specify what `runtime/metrics` `collectors.NewGoCollector` should use. See [`ExampleGoCollector_WithAdvancedGoMetrics`](prometheus/collectors/go_collector_latest_test.go#L263). #1102
182
183 ## 1.12.2 / 2022-05-13
184
185 * [CHANGE] Added `collectors.WithGoCollections` that allows to choose what collection of Go runtime metrics user wants: Equivalent of [`MemStats` structure](https://pkg.go.dev/runtime#MemStats) configured using `GoRuntimeMemStatsCollection`, new based on dedicated [runtime/metrics](https://pkg.go.dev/runtime/metrics) metrics represented by `GoRuntimeMetricsCollection` option, or both by specifying `GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection` flag. #1031
186 * [CHANGE] :warning: 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.
187 * [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.
188 * `go_gc_heap_allocs_by_size_bytes_total` -> `go_gc_heap_allocs_by_size_bytes`,
189 * `go_gc_heap_frees_by_size_bytes_total` -> `go_gc_heap_allocs_by_size_bytes`
190 * `go_gc_pauses_seconds_total` -> `go_gc_pauses_seconds`.
191 * [CHANCE] Removed `-Inf` buckets from new Go Collector histograms.
192
193 ## 1.12.1 / 2022-01-29
194
195 * [BUGFIX] Make the Go 1.17 collector concurrency-safe #969
196 * Use simpler locking in the Go 1.17 collector #975
197 * [BUGFIX] Reduce granularity of histogram buckets for Go 1.17 collector #974
198 * [ENHANCEMENT] API client: make HTTP reads more efficient #976
199
200 ## 1.12.0 / 2022-01-19
201
202 * [CHANGE] example/random: Move flags and metrics into main() #935
203 * [FEATURE] API client: Support wal replay status api #944
204 * [FEATURE] Use the runtime/metrics package for the Go collector for 1.17+ #955
205 * [ENHANCEMENT] API client: Update /api/v1/status/tsdb to include headStats #925
206 * [ENHANCEMENT] promhttp: Check validity of method and code label values #962
207
208 ## 1.11.0 / 2021-06-07
209
210 * [CHANGE] Add new collectors package. #862
211 * [CHANGE] `prometheus.NewExpvarCollector` is deprecated, use `collectors.NewExpvarCollector` instead. #862
212 * [CHANGE] `prometheus.NewGoCollector` is deprecated, use `collectors.NewGoCollector` instead. #862
213 * [CHANGE] `prometheus.NewBuildInfoCollector` is deprecated, use `collectors.NewBuildInfoCollector` instead. #862
214 * [FEATURE] Add new collector for database/sql#DBStats. #866
215 * [FEATURE] API client: Add exemplars API support. #861
216 * [ENHANCEMENT] API client: Add newer fields to Rules API. #855
217 * [ENHANCEMENT] API client: Add missing fields to Targets API. #856
218
219 ## 1.10.0 / 2021-03-18
220
221 * [CHANGE] Minimum required Go version is now 1.13.
222 * [CHANGE] API client: Add matchers to `LabelNames` and `LabesValues`. #828
223 * [FEATURE] API client: Add buildinfo call. #841
224 * [BUGFIX] Fix build on riscv64. #833
225
226 ## 1.9.0 / 2020-12-17
227
228 * [FEATURE] `NewPidFileFn` helper to create process collectors for processes whose PID is read from a file. #804
229 * [BUGFIX] promhttp: Prevent endless loop in `InstrumentHandler...` middlewares with invalid metric or label names. #823
230
231 ## 1.8.0 / 2020-10-15
232
233 * [CHANGE] API client: Use `time.Time` rather than `string` for timestamps in `RuntimeinfoResult`. #777
234 * [FEATURE] Export `MetricVec` to facilitate implementation of vectors of custom `Metric` types. #803
235 * [FEATURE] API client: Support `/status/tsdb` endpoint. #773
236 * [ENHANCEMENT] API client: Enable GET fallback on status code 501. #802
237 * [ENHANCEMENT] Remove `Metric` references after reslicing to free up more memory. #784
238
239 ## 1.7.1 / 2020-06-23
240
241 * [BUGFIX] API client: Actually propagate start/end parameters of `LabelNames` and `LabelValues`. #771
242
243 ## 1.7.0 / 2020-06-17
244
245 * [CHANGE] API client: Add start/end parameters to `LabelNames` and `LabelValues`. #767
246 * [FEATURE] testutil: Add `GatherAndCount` and enable filtering in `CollectAndCount` #753
247 * [FEATURE] API client: Add support for `status` and `runtimeinfo` endpoints. #755
248 * [ENHANCEMENT] Wrapping `nil` with a `WrapRegistererWith...` function creates a no-op `Registerer`. #764
249 * [ENHANCEMENT] promlint: Allow Kelvin as a base unit for cases like color temperature. #761
250 * [BUGFIX] push: Properly handle empty job and label values. #752
251
252 ## 1.6.0 / 2020-04-28
253
254 * [FEATURE] testutil: Add lint checks for metrics, including a sub-package `promlint` to expose the linter engine for external usage. #739 #743
255 * [ENHANCEMENT] API client: Improve error messages. #731
256 * [BUGFIX] process collector: Fix `process_resident_memory_bytes` on 32bit MS Windows. #734
257
258 ## 1.5.1 / 2020-03-14
259
260 * [BUGFIX] promhttp: Remove another superfluous `WriteHeader` call. #726
261
262 ## 1.5.0 / 2020-03-03
263
264 * [FEATURE] promauto: Add a factory to allow automatic registration with a local registry. #713
265 * [FEATURE] promauto: Add `NewUntypedFunc`. #713
266 * [FEATURE] API client: Support new metadata endpoint. #718
267
268 ## 1.4.1 / 2020-02-07
269
270 * [BUGFIX] Fix timestamp of exemplars in `CounterVec`. #710
271
272 ## 1.4.0 / 2020-01-27
273
274 * [CHANGE] Go collector: Improve doc string for `go_gc_duration_seconds`. #702
275 * [FEATURE] Support a subset of OpenMetrics, including exemplars. Needs opt-in via `promhttp.HandlerOpts`. **EXPERIMENTAL** #706
276 * [FEATURE] Add `testutil.CollectAndCount`. #703
277
278 ## 1.3.0 / 2019-12-21
279
280 * [FEATURE] Support tags in Graphite bridge. #668
281 * [BUGFIX] API client: Actually return Prometheus warnings. #699
282
283 ## 1.2.1 / 2019-10-17
284
285 * [BUGFIX] Fix regression in the implementation of `Registerer.Unregister`. #663
286
287 ## 1.2.0 / 2019-10-15
288
289 * [FEATURE] Support pushing to Pushgateway v0.10+. #652
290 * [ENHANCEMENT] Improve hashing to make a spurious `AlreadyRegisteredError` less likely to occur. #657
291 * [ENHANCEMENT] API client: Add godoc examples. #630
292 * [BUGFIX] promhttp: Correctly call WriteHeader in HTTP middleware. #634
293
294 ## 1.1.0 / 2019-08-01
295
296 * [CHANGE] API client: Format time as UTC rather than RFC3339Nano. #617
297 * [CHANGE] API client: Add warnings to `LabelValues` and `LabelNames` calls. #609
298 * [FEATURE] Push: Support base64 encoding in grouping key. #624
299 * [FEATURE] Push: Add Delete method to Pusher. #613
300
301 ## 1.0.0 / 2019-06-15
302
303 _This release removes all previously deprecated features, resulting in the breaking changes listed below. As this is v1.0.0, semantic versioning applies from now on, with the exception of the API client and parts marked explicitly as experimental._
304
305 * [CHANGE] Remove objectives from the default `Summary`. (Objectives have to be set explicitly in the `SummaryOpts`.) #600
306 * [CHANGE] Remove all HTTP related feature in the `prometheus` package. (Use the `promhttp` package instead.) #600
307 * [CHANGE] Remove `push.FromGatherer`, `push.AddFromGatherer`, `push.Collectors`. (Use `push.New` instead.) #600
308 * [CHANGE] API client: Pass warnings through on non-error responses. #599
309 * [CHANGE] API client: Add warnings to `Series` call. #603
310 * [FEATURE] Make process collector work on Microsoft Windows. **EXPERIMENTAL** #596
311 * [FEATURE] API client: Add `/labels` call. #604
312 * [BUGFIX] Make `AlreadyRegisteredError` usable for wrapped registries. #607
313
314 ## 0.9.4 / 2019-06-07
315
316 * [CHANGE] API client: Switch to alert values as strings. #585
317 * [FEATURE] Add a collector for Go module build information. #595
318 * [FEATURE] promhttp: Add an counter for internal errors during HTTP exposition. #594
319 * [FEATURE] API client: Support target metadata API. #590
320 * [FEATURE] API client: Support storage warnings. #562
321 * [ENHANCEMENT] API client: Improve performance handling JSON. #570
322 * [BUGFIX] Reduce test flakiness. #573
323
324 ## 0.9.3 / 2019-05-16
325
326 * [CHANGE] Required Go version is now 1.9+. #561
327 * [FEATURE] API client: Add POST with get fallback for Query/QueryRange. #557
328 * [FEATURE] API client: Add alerts endpoint. #552
329 * [FEATURE] API client: Add rules endpoint. #508
330 * [FEATURE] push: Add option to pick metrics format. #540
331 * [ENHANCEMENT] Limit time the Go collector may take to collect memstats,
332 returning results from the previous collection in case of a timeout. #568
333 * [ENHANCEMENT] Pusher now requires only a thin interface instead of a full
334 `http.Client`, facilitating mocking and custom HTTP client implementation.
335 #559
336 * [ENHANCEMENT] Memory usage improvement for histograms and summaries without
337 objectives. #536
338 * [ENHANCEMENT] Summaries without objectives are now lock-free. #521
339 * [BUGFIX] promhttp: `InstrumentRoundTripperTrace` now takes into account a pre-set context. #582
340 * [BUGFIX] `TestCounterAddLarge` now works on all platforms. #567
341 * [BUGFIX] Fix `promhttp` examples. #535 #544
342 * [BUGFIX] API client: Wait for done before writing to shared response
343 body. #532
344 * [BUGFIX] API client: Deal with discovered labels properly. #529
345
346 ## 0.9.2 / 2018-12-06
347
348 * [FEATURE] Support for Go modules. #501
349 * [FEATURE] `Timer.ObserveDuration` returns observed duration. #509
350 * [ENHANCEMENT] Improved doc comments and error messages. #504
351 * [BUGFIX] Fix race condition during metrics gathering. #512
352 * [BUGFIX] Fix testutil metric comparison for Histograms and empty labels. #494
353 #498
354
355 ## 0.9.1 / 2018-11-03
356
357 * [FEATURE] Add `WriteToTextfile` function to facilitate the creation of
358 *.prom files for the textfile collector of the node exporter. #489
359 * [ENHANCEMENT] More descriptive error messages for inconsistent label
360 cardinality. #487
361 * [ENHANCEMENT] Exposition: Use a GZIP encoder pool to avoid allocations in
362 high-frequency scrape scenarios. #366
363 * [ENHANCEMENT] Exposition: Streaming serving of metrics data while encoding.
364 #482
365 * [ENHANCEMENT] API client: Add a way to return the body of a 5xx response.
366 #479
367
368 ## 0.9.0 / 2018-10-15
369
370 * [CHANGE] Go1.6 is no longer supported.
371 * [CHANGE] More refinements of the `Registry` consistency checks: Duplicated
372 labels are now detected, but inconsistent label dimensions are now allowed.
373 Collisions with the “magic” metric and label names in Summaries and
374 Histograms are detected now. #108 #417 #471
375 * [CHANGE] Changed `ProcessCollector` constructor. #219
376 * [CHANGE] Changed Go counter `go_memstats_heap_released_bytes_total` to gauge
377 `go_memstats_heap_released_bytes`. #229
378 * [CHANGE] Unexported `LabelPairSorter`. #453
379 * [CHANGE] Removed the `Untyped` metric from direct instrumentation. #340
380 * [CHANGE] Unexported `MetricVec`. #319
381 * [CHANGE] Removed deprecated `Set` method from `Counter` #247
382 * [CHANGE] Removed deprecated `RegisterOrGet` and `MustRegisterOrGet`. #247
383 * [CHANGE] API client: Introduced versioned packages.
384 * [FEATURE] A `Registerer` can be wrapped with prefixes and labels. #357
385 * [FEATURE] “Describe by collect” helper function. #239
386 * [FEATURE] Added package `testutil`. #58
387 * [FEATURE] Timestamp can be explicitly set for const metrics. #187
388 * [FEATURE] “Unchecked” collectors are possible now without cheating. #47
389 * [FEATURE] Pushing to the Pushgateway reworked in package `push` to support
390 many new features. (The old functions are still usable but deprecated.) #372
391 #341
392 * [FEATURE] Configurable connection limit for scrapes. #179
393 * [FEATURE] New HTTP middlewares to instrument `http.Handler` and
394 `http.RoundTripper`. The old middlewares and the pre-instrumented `/metrics`
395 handler are (strongly) deprecated. #316 #57 #101 #224
396 * [FEATURE] “Currying” for metric vectors. #320
397 * [FEATURE] A `Summary` can be created without quantiles. #118
398 * [FEATURE] Added a `Timer` helper type. #231
399 * [FEATURE] Added a Graphite bridge. #197
400 * [FEATURE] Help strings are now optional. #460
401 * [FEATURE] Added `process_virtual_memory_max_bytes` metric. #438 #440
402 * [FEATURE] Added `go_gc_cpu_fraction` and `go_threads` metrics. #281 #277
403 * [FEATURE] Added `promauto` package with auto-registering metrics. #385 #393
404 * [FEATURE] Add `SetToCurrentTime` method to `Gauge`. #259
405 * [FEATURE] API client: Add AlertManager, Status, and Target methods. #402
406 * [FEATURE] API client: Add admin methods. #398
407 * [FEATURE] API client: Support series API. #361
408 * [FEATURE] API client: Support querying label values.
409 * [ENHANCEMENT] Smarter creation of goroutines during scraping. Solves memory
410 usage spikes in certain situations. #369
411 * [ENHANCEMENT] Counters are now faster if dealing with integers only. #367
412 * [ENHANCEMENT] Improved label validation. #274 #335
413 * [BUGFIX] Creating a const metric with an invalid `Desc` returns an error. #460
414 * [BUGFIX] Histogram observations don't race any longer with exposition. #275
415 * [BUGFIX] Fixed goroutine leaks. #236 #472
416 * [BUGFIX] Fixed an error message for exponential histogram buckets. #467
417 * [BUGFIX] Fixed data race writing to the metric map. #401
418 * [BUGFIX] API client: Decode JSON on a 4xx response but do not on 204
419 responses. #476 #414
420
421 ## 0.8.0 / 2016-08-17
422
423 * [CHANGE] Registry is doing more consistency checks. This might break
424 existing setups that used to export inconsistent metrics.
425 * [CHANGE] Pushing to Pushgateway moved to package `push` and changed to allow
426 arbitrary grouping.
427 * [CHANGE] Removed `SelfCollector`.
428 * [CHANGE] Removed `PanicOnCollectError` and `EnableCollectChecks` methods.
429 * [CHANGE] Moved packages to the prometheus/common repo: `text`, `model`,
430 `extraction`.
431 * [CHANGE] Deprecated a number of functions.
432 * [FEATURE] Allow custom registries. Added `Registerer` and `Gatherer`
433 interfaces.
434 * [FEATURE] Separated HTTP exposition, allowing custom HTTP handlers (package
435 `promhttp`) and enabling the creation of other exposition mechanisms.
436 * [FEATURE] `MustRegister` is variadic now, allowing registration of many
437 collectors in one call.
438 * [FEATURE] Added HTTP API v1 package.
439 * [ENHANCEMENT] Numerous documentation improvements.
440 * [ENHANCEMENT] Improved metric sorting.
441 * [ENHANCEMENT] Inlined fnv64a hashing for improved performance.
442 * [ENHANCEMENT] Several test improvements.
443 * [BUGFIX] Handle collisions in MetricVec.
444
445 ## 0.7.0 / 2015-07-27
446
447 * [CHANGE] Rename ExporterLabelPrefix to ExportedLabelPrefix.
448 * [BUGFIX] Closed gaps in metric consistency check.
449 * [BUGFIX] Validate LabelName/LabelSet on JSON unmarshaling.
450 * [ENHANCEMENT] Document the possibility to create "empty" metrics in
451 a metric vector.
452 * [ENHANCEMENT] Fix and clarify various doc comments and the README.md.
453 * [ENHANCEMENT] (Kind of) solve "The Proxy Problem" of http.InstrumentHandler.
454 * [ENHANCEMENT] Change responseWriterDelegator.written to int64.
455
456 ## 0.6.0 / 2015-06-01
457
458 * [CHANGE] Rename process_goroutines to go_goroutines.
459 * [ENHANCEMENT] Validate label names during YAML decoding.
460 * [ENHANCEMENT] Add LabelName regular expression.
461 * [BUGFIX] Ensure alignment of struct members for 32-bit systems.
462
463 ## 0.5.0 / 2015-05-06
464
465 * [BUGFIX] Removed a weakness in the fingerprinting aka signature code.
466 This makes fingerprinting slower and more allocation-heavy, but the
467 weakness was too severe to be tolerated.
468 * [CHANGE] As a result of the above, Metric.Fingerprint is now returning
469 a different fingerprint. To keep the same fingerprint, the new method
470 Metric.FastFingerprint was introduced, which will be used by the
471 Prometheus server for storage purposes (implying that a collision
472 detection has to be added, too).
473 * [ENHANCEMENT] The Metric.Equal and Metric.Before do not depend on
474 fingerprinting anymore, removing the possibility of an undetected
475 fingerprint collision.
476 * [FEATURE] The Go collector in the exposition library includes garbage
477 collection stats.
478 * [FEATURE] The exposition library allows to create constant "throw-away"
479 summaries and histograms.
480 * [CHANGE] A number of new reserved labels and prefixes.
481
482 ## 0.4.0 / 2015-04-08
483
484 * [CHANGE] Return NaN when Summaries have no observations yet.
485 * [BUGFIX] Properly handle Summary decay upon Write().
486 * [BUGFIX] Fix the documentation link to the consumption library.
487 * [FEATURE] Allow the metric family injection hook to merge with existing
488 metric families.
489 * [ENHANCEMENT] Removed cgo dependency and conditional compilation of procfs.
490 * [MAINTENANCE] Adjusted to changes in matttproud/golang_protobuf_extensions.
491
492 ## 0.3.2 / 2015-03-11
493
494 * [BUGFIX] Fixed the receiver type of COWMetric.Set(). This method is
495 only used by the Prometheus server internally.
496 * [CLEANUP] Added licenses of vendored code left out by godep.
497
498 ## 0.3.1 / 2015-03-04
499
500 * [ENHANCEMENT] Switched fingerprinting functions from own free list to
501 sync.Pool.
502 * [CHANGE] Makefile uses Go 1.4.2 now (only relevant for examples and tests).
503
504 ## 0.3.0 / 2015-03-03
505
506 * [CHANGE] Changed the fingerprinting for metrics. THIS WILL INVALIDATE ALL
507 PERSISTED FINGERPRINTS. IF YOU COMPILE THE PROMETHEUS SERVER WITH THIS
508 VERSION, YOU HAVE TO WIPE THE PREVIOUSLY CREATED STORAGE.
509 * [CHANGE] LabelValuesToSignature removed. (Nobody had used it, and it was
510 arguably broken.)
511 * [CHANGE] Vendored dependencies. Those are only used by the Makefile. If
512 client_golang is used as a library, the vendoring will stay out of your way.
513 * [BUGFIX] Remove a weakness in the fingerprinting for metrics. (This made
514 the fingerprinting change above necessary.)
515 * [FEATURE] Added new fingerprinting functions SignatureForLabels and
516 SignatureWithoutLabels to be used by the Prometheus server. These functions
517 require fewer allocations than the ones currently used by the server.
518
519 ## 0.2.0 / 2015-02-23
520
521 * [FEATURE] Introduce new Histagram metric type.
522 * [CHANGE] Ignore process collector errors for now (better error handling
523 pending).
524 * [CHANGE] Use clear error interface for process pidFn.
525 * [BUGFIX] Fix Go download links for several archs and OSes.
526 * [ENHANCEMENT] Massively improve Gauge and Counter performance.
527 * [ENHANCEMENT] Catch illegal label names for summaries in histograms.
528 * [ENHANCEMENT] Reduce allocations during fingerprinting.
529 * [ENHANCEMENT] Remove cgo dependency. procfs package will only be included if
530 both cgo is available and the build is for an OS with procfs.
531 * [CLEANUP] Clean up code style issues.
532 * [CLEANUP] Mark slow test as such and exclude them from travis.
533 * [CLEANUP] Update protobuf library package name.
534 * [CLEANUP] Updated vendoring of beorn7/perks.
535
536 ## 0.1.0 / 2015-02-02
537
538 * [CLEANUP] Introduced semantic versioning and changelog. From now on,
539 changes will be reported in this file.