Releases: prometheus/client_golang
Releases · prometheus/client_golang
1.3.0 / 2019-12-21
1.2.1 / 2019-10-17
1.2.1 / 2019-10-17
- [BUGFIX] Fix regression in the implementation of
Registerer.Unregister. #663
1.2.0 / 2019-10-15
1.1.0 / 2019-08-01
1.0.0 / 2019-06-15
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.
- [CHANGE] Remove objectives from the default
Summary. (Objectives have to be set explicitly in theSummaryOpts.) #600 - [CHANGE] Remove all HTTP related feature in the
prometheuspackage. (Use thepromhttppackage instead.) #600 - [CHANGE] Remove
push.FromGatherer,push.AddFromGatherer,push.Collectors. (Usepush.Newinstead.) #600 - [CHANGE] API client: Pass warnings through on non-error responses. #599
- [CHANGE] API client: Add warnings to
Seriescall. #603 - [FEATURE] Make process collector work on Microsoft Windows. EXPERIMENTAL #596
- [FEATURE] API client: Add
/labelscall. #604 - [BUGFIX] Make
AlreadyRegisteredErrorusable for wrapped registries. #607
0.9.4 / 2019-06-07
- [CHANGE] API client: Switch to alert values as strings. #585
- [FEATURE] Add a collector for Go module build information. #595
- [FEATURE] promhttp: Add an counter for internal errors during HTTP exposition. #594
- [FEATURE] API client: Support target metadata API. #590
- [FEATURE] API client: Support storage warnings. #562
- [ENHANCEMENT] API client: Improve performance handling JSON. #570
- [BUGFIX] Reduce test flakiness. #573
0.9.3 / 2019-05-16
- [CHANGE] Required Go version is now 1.9+. #561
- [FEATURE] API client: Add POST with get fallback for Query/QueryRange. #557
- [FEATURE] API client: Add alerts endpoint. #552
- [FEATURE] API client: Add rules endpoint. #508
- [FEATURE] push: Add option to pick metrics format. #540
- [ENHANCEMENT] Limit time the Go collector may take to collect memstats,
returning results from the previous collection in case of a timeout. #568 - [ENHANCEMENT] Pusher now requires only a thin interface instead of a full
http.Client, facilitating mocking and custom HTTP client implementation.
#559 - [ENHANCEMENT] Memory usage improvement for histograms and summaries without
objectives. #536 - [ENHANCEMENT] Summaries without objectives are now lock-free. #521
- [BUGFIX] promhttp:
InstrumentRoundTripperTracenow takes into account a pre-set context. #582 - [BUGFIX]
TestCounterAddLargenow works on all platforms. #567 - [BUGFIX] Fix
promhttpexamples. #535 #544 - [BUGFIX] API client: Wait for done before writing to shared response
body. #532 - [BUGFIX] API client: Deal with discovered labels properly. #529
0.9.2 / 2018-12-06
- [FEATURE] Support for Go modules. #501
- [FEATURE]
Timer.ObserveDurationreturns observed duration. #509 - [ENHANCEMENT] Improved doc comments and error messages. #504
- [BUGFIX] Fix race condition during metrics gathering. #512
- [BUGFIX] Fix testutil metric comparison for Histograms and empty labels. #494 #498
0.9.1 / 2018-11-03
- [FEATURE] Add
WriteToTextfilefunction to facilitate the creation of
*.prom files for the textfile collector of the node exporter. #489 - [ENHANCEMENT] More descriptive error messages for inconsistent label
cardinality. #487 - [ENHANCEMENT] Exposition: Use a GZIP encoder pool to avoid allocations in
high-frequency scrape scenarios. #366 - [ENHANCEMENT] Exposition: Streaming serving of metrics data while encoding.
#482 - [ENHANCEMENT] API client: Add a way to return the body of a 5xx response.
#479
0.9.0 / 2018-10-15
- [CHANGE] Go1.6 is no longer supported.
- [CHANGE] More refinements of the
Registryconsistency checks: Duplicated
labels are now detected, but inconsistent label dimensions are now allowed.
Collisions with the “magic” metric and label names in Summaries and
Histograms are detected now. #108 #417 #471 - [CHANGE] Changed
ProcessCollectorconstructor. #219 - [CHANGE] Changed Go counter
go_memstats_heap_released_bytes_totalto gauge
go_memstats_heap_released_bytes. #229 - [CHANGE] Unexported
LabelPairSorter. #453 - [CHANGE] Removed the
Untypedmetric from direct instrumentation. #340 - [CHANGE] Unexported
MetricVec. #319 - [CHANGE] Removed deprecated
Setmethod fromCounter#247 - [CHANGE] Removed deprecated
RegisterOrGetandMustRegisterOrGet. #247 - [CHANGE] API client: Introduced versioned packages.
- [FEATURE] A
Registerercan be wrapped with prefixes and labels. #357 - [FEATURE] “Describe by collect” helper function. #239
- [FEATURE] Added package
testutil. #58 - [FEATURE] Timestamp can be explicitly set for const metrics. #187
- [FEATURE] “Unchecked” collectors are possible now without cheating. #47
- [FEATURE] Pushing to the Pushgateway reworked in package
pushto support
many new features. (The old functions are still usable but deprecated.) #372
#341 - [FEATURE] Configurable connection limit for scrapes. #179
- [FEATURE] New HTTP middlewares to instrument
http.Handlerand
http.RoundTripper. The old middlewares and the pre-instrumented/metrics
handler are (strongly) deprecated. #316 #57 #101 #224 - [FEATURE] “Currying” for metric vectors. #320
- [FEATURE] A
Summarycan be created without quantiles. #118 - [FEATURE] Added a
Timerhelper type. #231 - [FEATURE] Added a Graphite bridge. #197
- [FEATURE] Help strings are now optional. #460
- [FEATURE] Added
process_virtual_memory_max_bytesmetric. #438 #440 - [FEATURE] Added
go_gc_cpu_fractionandgo_threadsmetrics. #281 #277 - [FEATURE] Added
promautopackage with auto-registering metrics. #385 #393 - [FEATURE] Add
SetToCurrentTimemethod toGauge. #259 - [FEATURE] API client: Add AlertManager, Status, and Target methods. #402
- [FEATURE] API client: Add admin methods. #398
- [FEATURE] API client: Support series API. #361
- [FEATURE] API client: Support querying label values.
- [ENHANCEMENT] Smarter creation of goroutines during scraping. Solves memory
usage spikes in certain situations. #369 - [ENHANCEMENT] Counters are now faster if dealing with integers only. #367
- [ENHANCEMENT] Improved label validation. #274 #335
- [BUGFIX] Creating a const metric with an invalid
Descreturns an error. #460 - [BUGFIX] Histogram observations don't race any longer with exposition. #275
- [BUGFIX] Fixed goroutine leaks. #236 #472
- [BUGFIX] Fixed an error message for exponential histogram buckets. #467
- [BUGFIX] Fixed data race writing to the metric map. #401
- [BUGFIX] API client: Decode JSON on a 4xx respons but do not on 204
responses. #476 #414