Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 49 additions & 49 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Enable `bun.js` by catching `NotImplemented` error (Fixes [#570](https://github.com/siimon/prom-client/issues/570))
- Enable `bun.js` by catching `NotImplemented` error (Fixes [#570](https://github.com/prometheus/client_js/issues/570))

## [15.1.1] - 2024-03-26

### Changed

- Improve the memory usage of histograms when the `enableExemplars` option is disabled
- fix: Avoid updating exemplar values during subsequent metric changes (Fixes [#616](https://github.com/siimon/prom-client/issues/616))
- fix: Avoid updating exemplar values during subsequent metric changes (Fixes [#616](https://github.com/prometheus/client_js/issues/616))

## [15.1.0] - 2023-12-15

Expand All @@ -75,7 +75,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Allow Pushgateway to now require job names for compatibility with Gravel Gateway.
- Allow `histogram.startTime()` to be used with exemplars.

[15.1.0]: https://github.com/siimon/prom-client/compare/v15.0.0...v15.1.0
[15.1.0]: https://github.com/prometheus/client_js/compare/v15.0.0...v15.1.0

## [15.0.0] - 2023-10-09

Expand All @@ -101,7 +101,7 @@ project adheres to [Semantic Versioning](http://semver.org/).

- Support for OpenMetrics and Exemplars

[15.0.0]: https://github.com/siimon/prom-client/compare/v14.2.0...v15.0.0
[15.0.0]: https://github.com/prometheus/client_js/compare/v14.2.0...v15.0.0

## [14.2.0] - 2023-03-06

Expand All @@ -119,15 +119,15 @@ project adheres to [Semantic Versioning](http://semver.org/).

- Add `get` method to type definitions of metric classes

[14.2.0]: https://github.com/siimon/prom-client/compare/v14.1.1...v14.2.0
[14.2.0]: https://github.com/prometheus/client_js/compare/v14.1.1...v14.2.0

## [14.1.1] - 2022-12-31

### Changed

- Increase compatibility with external build system such as `rollup` by making perf_hooks optional in gc.js

[14.1.1]: https://github.com/siimon/prom-client/compare/v14.1.0...v14.1.1
[14.1.1]: https://github.com/prometheus/client_js/compare/v14.1.0...v14.1.1

## [14.1.0] - 2022-08-23

Expand Down Expand Up @@ -156,15 +156,15 @@ project adheres to [Semantic Versioning](http://semver.org/).

- Support gzipped pushgateway requests

[14.1.0]: https://github.com/siimon/prom-client/compare/v14.0.1...v14.1.0
[14.1.0]: https://github.com/prometheus/client_js/compare/v14.0.1...v14.1.0

## [14.0.1] - 2021-11-02

### Changed

- changed: typedef for pushgateway to reflect js implementation.

[14.0.1]: https://github.com/siimon/prom-client/compare/v14.0.0...v14.0.1
[14.0.1]: https://github.com/prometheus/client_js/compare/v14.0.0...v14.0.1

## [14.0.0] - 2021-09-18

Expand All @@ -173,7 +173,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- changed: `linearBuckets` does not propagate rounding errors anymore.

Fewer bucket bounds will be affected by rounding errors. Histogram bucket
labels may change. [`6f1f3b2`](https://github.com/siimon/prom-client/commit/6f1f3b24c9c21311ff33e7d4b987b40c6b304e04)
labels may change. [`6f1f3b2`](https://github.com/prometheus/client_js/commit/6f1f3b24c9c21311ff33e7d4b987b40c6b304e04)

- changed: The push gateway methods `pushAdd()`, `push()` and `delete()` now
return Promises instead of accepting a callback:
Expand All @@ -190,20 +190,20 @@ project adheres to [Semantic Versioning](http://semver.org/).
const { resp, body } = await gateway.pushAdd({ jobName: 'test' });
```

[`f177b1f`](https://github.com/siimon/prom-client/commit/f177b1fd3d4db5fc48fcb1ec02d94069fffcf144)
[`f177b1f`](https://github.com/prometheus/client_js/commit/f177b1fd3d4db5fc48fcb1ec02d94069fffcf144)

- changed: The default `nodejs_eventloop_lag_*` metrics are now reset every time
they are observed. This prevents these metrics from "stabilizing" over a long
period of time and becoming insensitive to small changes. For more info, see
[#370](https://github.com/siimon/prom-client/issues/370). [`0f444cd`](https://github.com/siimon/prom-client/commit/0f444cd38e4c7074991270106c270f731bafddb8)
[#370](https://github.com/prometheus/client_js/issues/370). [`0f444cd`](https://github.com/prometheus/client_js/commit/0f444cd38e4c7074991270106c270f731bafddb8)

### Changed

- Add missing `await`/`then`s to examples. [`074f339`](https://github.com/siimon/prom-client/commit/074f339914e5d71b5829cd4a949affae23dbc409)
- Add missing type declaration for `client.contentType`. [`3b66641`](https://github.com/siimon/prom-client/commit/3b6664160bdd1555045b03d8f4c421022f30e1db)
- Modernize some label processing code. [`c9bf1d8`](https://github.com/siimon/prom-client/commit/c9bf1d8e3db3b5fb97faf2df9ca9b9af670288f3)
- Add missing `await`/`then`s to examples. [`074f339`](https://github.com/prometheus/client_js/commit/074f339914e5d71b5829cd4a949affae23dbc409)
- Add missing type declaration for `client.contentType`. [`3b66641`](https://github.com/prometheus/client_js/commit/3b6664160bdd1555045b03d8f4c421022f30e1db)
- Modernize some label processing code. [`c9bf1d8`](https://github.com/prometheus/client_js/commit/c9bf1d8e3db3b5fb97faf2df9ca9b9af670288f3)

[14.0.0]: https://github.com/siimon/prom-client/compare/v13.2.0...v14.0.0
[14.0.0]: https://github.com/prometheus/client_js/compare/v13.2.0...v14.0.0

## [13.2.0] - 2021-08-08

Expand All @@ -212,30 +212,30 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Don't add event listener to `process` if cluster module is not used.
- fix: set labels for default memory metrics on linux.
- fix: fix DEP0152 deprecation warning in Node.js v16+.
- fix: Set aggregation mode for newer event loop metrics. (Fixes [#418](https://github.com/siimon/prom-client/issues/418))
- fix: Set aggregation mode for newer event loop metrics. (Fixes [#418](https://github.com/prometheus/client_js/issues/418))
- Improve performance of/reduce memory allocations in Gauge.

### Added

- feat: added `zero()` to `Histogram` for setting the metrics for a given label combination to zero
- fix: allow `Gauge.inc/dec(0)` without defaulting to 1

[13.2.0]: https://github.com/siimon/prom-client/compare/v13.1.0...v13.2.0
[13.2.0]: https://github.com/prometheus/client_js/compare/v13.1.0...v13.2.0

## [13.1.0] - 2021-01-24

### Changed

- fix: push client attempting to write Promise (fixes [#390](https://github.com/siimon/prom-client/issues/390))
- fix: push client attempting to write Promise (fixes [#390](https://github.com/prometheus/client_js/issues/390))
- types: improve type checking of labels
- fix: Summary#observe should throw when adding additional labels to labelset (fixes [#262](https://github.com/siimon/prom-client/issues/262))
- fix: Summary#observe should throw when adding additional labels to labelset (fixes [#262](https://github.com/prometheus/client_js/issues/262))

### Added

- feat: added the ability to pass labels as an object to `labels()` and `remove()`
- Added: More examples with commented output

[13.1.0]: https://github.com/siimon/prom-client/compare/v13.0.0...v13.1.0
[13.1.0]: https://github.com/prometheus/client_js/compare/v13.0.0...v13.1.0

## [13.0.0] - 2020-12-16

Expand Down Expand Up @@ -284,7 +284,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- feat: added support for adding labels to default metrics (#374)
- Added CHANGELOG reminder

[13.0.0]: https://github.com/siimon/prom-client/compare/v12.0.0...v13.0.0
[13.0.0]: https://github.com/prometheus/client_js/compare/v12.0.0...v13.0.0

## [12.0.0] - 2020-02-20

Expand Down Expand Up @@ -316,7 +316,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- feat: implement GC metrics collection without native(C++) modules.
- feat: implement advanced event loop monitoring

[12.0.0]: https://github.com/siimon/prom-client/compare/v11.5.3...v12.0.0
[12.0.0]: https://github.com/prometheus/client_js/compare/v11.5.3...v12.0.0

## [11.5.3] - 2019-06-27

Expand All @@ -325,23 +325,23 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Parameter `compressCount` in Summaries to control compression of data in t-digest.
- Compress t-digest in Summaries

[11.5.3]: https://github.com/siimon/prom-client/compare/v11.5.2...v11.5.3
[11.5.3]: https://github.com/prometheus/client_js/compare/v11.5.2...v11.5.3

## [11.5.2] - 2019-06-20

### Changed

- fix: avoid mutation bug in registry

[11.5.2]: https://github.com/siimon/prom-client/compare/v11.5.1...v11.5.2
[11.5.2]: https://github.com/prometheus/client_js/compare/v11.5.1...v11.5.2

## [11.5.1] - 2019-06-13

### Changed

- fix: guard against missing constructor

[11.5.1]: https://github.com/siimon/prom-client/compare/v11.5.0...v11.5.1
[11.5.1]: https://github.com/prometheus/client_js/compare/v11.5.0...v11.5.1

## [11.5.0] - 2019-06-04

Expand All @@ -350,7 +350,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Added `timestamps` toggle to `collectDefaultMetrics` options
- Export `validateMetricName`

[11.5.0]: https://github.com/siimon/prom-client/compare/v11.4.0...v11.5.0
[11.5.0]: https://github.com/prometheus/client_js/compare/v11.4.0...v11.5.0

## [11.4.0] - 2019-06-04

Expand All @@ -359,7 +359,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- `nodejs_active_handles` metric to the `collectDefaultMetrics()`. Unlike `nodejs_active_handles_total` it split count of active handles by type.
- `nodejs_active_requests` metric to the `collectDefaultMetrics()`. Unlike `nodejs_active_requests_total` it split count of active requests by type.

[11.4.0]: https://github.com/siimon/prom-client/compare/v11.3.0...v11.4.0
[11.4.0]: https://github.com/prometheus/client_js/compare/v11.3.0...v11.4.0

## [11.3.0] - 2019-04-02

Expand All @@ -372,7 +372,7 @@ project adheres to [Semantic Versioning](http://semver.org/).

- Added a `remove()` method on each metric type, based on [Prometheus "Writing Client Libraries" section on labels](https://prometheus.io/docs/instrumenting/writing_clientlibs/#labels)

[11.3.0]: https://github.com/siimon/prom-client/compare/v11.2.1...v11.3.0
[11.3.0]: https://github.com/prometheus/client_js/compare/v11.2.1...v11.3.0

## [11.2.1]

Expand All @@ -384,7 +384,7 @@ project adheres to [Semantic Versioning](http://semver.org/).

- Updated types for Summary in typescript definition file

[11.2.1]: https://github.com/siimon/prom-client/compare/v11.2.0...v11.2.1
[11.2.1]: https://github.com/prometheus/client_js/compare/v11.2.0...v11.2.1

## [11.2.0]

Expand All @@ -397,7 +397,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Added an initial `benchmark` suite which can be run with `npm run benchmarks`.
- Add support for sliding windows in Summaries

[11.2.0]: https://github.com/siimon/prom-client/compare/v11.1.3...v11.2.0
[11.2.0]: https://github.com/prometheus/client_js/compare/v11.1.3...v11.2.0

## [11.1.3] - 2018-09-22

Expand All @@ -406,7 +406,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Fixed performance by avoiding `Object.assign` on hot paths, as well as
mutating objects when appropriate.

[11.1.3]: https://github.com/siimon/prom-client/compare/v11.1.2...v11.1.3
[11.1.3]: https://github.com/prometheus/client_js/compare/v11.1.2...v11.1.3

## [11.1.2] - 2018-09-19

Expand All @@ -415,15 +415,15 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Allow setting Gauge values to NaN, +Inf, and -Inf
- Fixed `histogram` scrape performance by using `acc.push` instead of `acc.concat`. Fixes #216 with #219

[11.1.2]: https://github.com/siimon/prom-client/compare/v11.1.1...v11.1.2
[11.1.2]: https://github.com/prometheus/client_js/compare/v11.1.1...v11.1.2

## [11.1.1] - 2018-06-29

### Changed

- Fixed `processOpenFileDescriptors` metric when no custom config was set

[11.1.1]: https://github.com/siimon/prom-client/compare/v11.1.0...v11.1.1
[11.1.1]: https://github.com/prometheus/client_js/compare/v11.1.0...v11.1.1

## [11.1.0] - 2018-06-29

Expand All @@ -436,7 +436,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
labelset
- Fixed `AggregatorFactory` losing the aggregator method of metrics

[11.1.0]: https://github.com/siimon/prom-client/compare/v11.0.0...v11.1.0
[11.1.0]: https://github.com/prometheus/client_js/compare/v11.0.0...v11.1.0

## [11.0.0] - 2018-03-10

Expand All @@ -447,7 +447,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
[best practices](https://prometheus.io/docs/practices/naming/#base-units)
- Dropped support for node 4

[11.0.0]: https://github.com/siimon/prom-client/compare/v10.2.3...v11.0.0
[11.0.0]: https://github.com/prometheus/client_js/compare/v10.2.3...v11.0.0

## [10.2.3] - 2018-02-28

Expand All @@ -459,7 +459,7 @@ project adheres to [Semantic Versioning](http://semver.org/).

### Added

[10.2.3]: https://github.com/siimon/prom-client/compare/v10.2.2...v10.2.3
[10.2.3]: https://github.com/prometheus/client_js/compare/v10.2.2...v10.2.3

## [10.2.2] - 2017-11-02

Expand Down Expand Up @@ -584,16 +584,16 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Creating metrics with one argument per parameter - use object literals
instead.

[10.2.2]: https://github.com/siimon/prom-client/compare/v10.2.1...v10.2.2
[10.2.1]: https://github.com/siimon/prom-client/compare/v10.2.0...v10.2.1
[10.2.0]: https://github.com/siimon/prom-client/compare/v10.1.1...v10.2.0
[10.1.1]: https://github.com/siimon/prom-client/compare/v10.1.0...v10.1.1
[10.1.0]: https://github.com/siimon/prom-client/compare/v10.0.4...v10.1.0
[10.0.4]: https://github.com/siimon/prom-client/compare/v10.0.3...v10.0.4
[10.0.3]: https://github.com/siimon/prom-client/compare/v10.0.2...v10.0.3
[10.0.2]: https://github.com/siimon/prom-client/compare/v10.0.1...v10.0.2
[10.0.1]: https://github.com/siimon/prom-client/compare/v10.0.0...v10.0.1
[10.0.0]: https://github.com/siimon/prom-client/compare/v9.1.1...v10.0.0
[9.1.1]: https://github.com/siimon/prom-client/compare/v9.1.0...v9.1.1
[9.1.0]: https://github.com/siimon/prom-client/compare/v9.0.0...v9.1.0
[9.0.0]: https://github.com/siimon/prom-client/commit/1ef835f908e1a5032f228bbc754479fe7ccf5201
[10.2.2]: https://github.com/prometheus/client_js/compare/v10.2.1...v10.2.2
[10.2.1]: https://github.com/prometheus/client_js/compare/v10.2.0...v10.2.1
[10.2.0]: https://github.com/prometheus/client_js/compare/v10.1.1...v10.2.0
[10.1.1]: https://github.com/prometheus/client_js/compare/v10.1.0...v10.1.1
[10.1.0]: https://github.com/prometheus/client_js/compare/v10.0.4...v10.1.0
[10.0.4]: https://github.com/prometheus/client_js/compare/v10.0.3...v10.0.4
[10.0.3]: https://github.com/prometheus/client_js/compare/v10.0.2...v10.0.3
[10.0.2]: https://github.com/prometheus/client_js/compare/v10.0.1...v10.0.2
[10.0.1]: https://github.com/prometheus/client_js/compare/v10.0.0...v10.0.1
[10.0.0]: https://github.com/prometheus/client_js/compare/v9.1.1...v10.0.0
[9.1.1]: https://github.com/prometheus/client_js/compare/v9.1.0...v9.1.1
[9.1.0]: https://github.com/prometheus/client_js/compare/v9.0.0...v9.1.0
[9.0.0]: https://github.com/prometheus/client_js/commit/1ef835f908e1a5032f228bbc754479fe7ccf5201
Loading