Releases: siimon/prom-client
v15.1.3
What's Changed
- Improve error message on labels by @leftieFriele in #633
New Contributors
- @leftieFriele made their first contribution in #633
- @korengal made their first contribution in #636
Full Changelog: v15.1.2...v15.1.3
v15.1.2
What's Changed
- Enable
bun.js
by catchingNotImplemented
errorby @owlcode in #624 - Add
Registry.PROMETHEUS_CONTENT_TYPE
andRegistry.OPENMETRICS_CONTENT_TYPE
constants to the TypeScript types by @SimenB in #626 - Correctly read and set
contentType
top level export by @SimenB in #625
New Contributors
Full Changelog: v15.1.1...v15.1.2
v15.1.1
What's Changed
- perf: improve the memory usage of histogram by @xsbchen in #606
- fix: avoid updating exemplar values during subsequent metric changes by @psimk in #620
New Contributors
- @glensc made their first contribution in #604
- @xsbchen made their first contribution in #606
- @psimk made their first contribution in #620
Full Changelog: v15.1.0...v15.1.1
v15.1.0
Changed
- remove unnecessary loop from
osMemoryHeapLinux
- Improve performance of
hashObject
by using pre-sorted array of label names - Fix type of
collectDefaultMetrics.metricsList
Added
- Allow Pushgateway to now require job names for compatibility with Gravel Gateway.
- Allow
histogram.startTime()
to be used with exemplars.
New Contributors
- @Connormiha made their first contribution in #592
- @yosiat made their first contribution in #596
- @geofholbrook made their first contribution in #597
- @Pigrabbit made their first contribution in #593
Full Changelog: v15.0.0...v15.1.0
v15.0.0
Added
- Support for OpenMetrics and Exemplars
Breaking
- drop support for Node.js versions 10, 12, 14, 17 and 19
Changed
- Refactor histogram internals and provide a fast path for rendering metrics to Prometheus strings when there are many labels shared across different values.
- Disable custom content encoding for pushgateway delete requests in order to avoid failures from the server when using
Content-Encoding: gzip
header. - Refactor
escapeString
helper inlib/registry.js
to improve performance and avoid an unnecessarily complex regex. - Cleanup code and refactor to be more efficient
- Correct TS types for working with OpenMetrics
- Updated Typescript and Readme docs for
setToCurrentTime()
to reflect units as seconds. - Do not ignore error if request to pushgateway fails
- Make sure to reject the request to pushgateway if it times out
New Contributors
- @ric113 made their first contribution in #541
- @ngavalas made their first contribution in #546
- @sokyrynskyi made their first contribution in #558
- @grossjo made their first contribution in #560
- @FreeRiderBysik made their first contribution in #571
- @alarobric made their first contribution in #585
- @kdeberk made their first contribution in #578
- @FLNacif made their first contribution in #574
Full Changelog: v14.2.0...v15.0.0
v15.0.0-1
v15.0.0-0
What's Changed
- Add openmetrics and exemplars support (#544) by @voltbit & @karlodwyer
Breaking changes
- drop support for Node.js versions 10, 12 and 17
New Contributors
- @voltbit made their first contribution in #482
- @ric113 made their first contribution in #541
- @karlodwyer made their first contribution in #544
- @ngavalas made their first contribution in #546
Full Changelog: v14.2.0...v15.0.0-0
v14.2.0
Changed
- Refactor
getMetricAsPrometheusString
method in theRegistry
class to useArray.prototype.join
instead of loop of string concatenations. - Also use
Array.prototype.map
, and object spread instead of an explicitfor
loop - changed: updated the sample output in
example/default-metrics.js
summary
metrics now has apruneAgedBuckets
config parameter
to remove entries without any new values in the lastmaxAgeSeconds
.
Default isfalse
(old behavior)
Added
- Add
get
method to type definitions of metric classes
New Contributors
- @nflaig made their first contribution in #531
- @shappir made their first contribution in #542
- @rilpires made their first contribution in #540
Full Changelog: v14.1.1...v14.2.0
v14.1.1
v14.1.0
Changed
-
types: converted all the generic Metric types to be optional
-
The
done()
functions returned bygauge.startTimer()
and
summary.startTimer()
now return the timed duration. Histograms already had
this behavior. -
types: fixed type for
registry.getMetricsAsArray()
-
Improve performance of
gague.inc()
andgauge.dec()
by callinghashObject()
once.
Added
-
The
processResources
metric was added, which keeps a track of all sorts of
active resources. It consists of the following gauges:nodejs_active_resources
- Number of active resources that are currently
keeping the event loop alive, grouped by async resource type.nodejs_active_resources_total
- Total number of active resources.
It is supposed to provide the combined result of theprocessHandles
and
processRequests
metrics along with information about any other types of
async resources that these metrics do not keep a track of (like timers).
-
Support gzipped pushgateway requests
New Contributors
- @thierrylamarre made their first contribution in #477
- @RaisinTen made their first contribution in #485
- @mdornseif made their first contribution in #489
- @justinmchase made their first contribution in #496
- @RomanYar made their first contribution in #505
- @tuyennhv made their first contribution in #503
- @vpalmisano made their first contribution in #508
Full Changelog: v14.0.1...v14.1.0