Bot releases are visible (Hide)
bun.js
by catching NotImplemented
errorby @owlcode in https://github.com/siimon/prom-client/pull/624
Registry.PROMETHEUS_CONTENT_TYPE
and Registry.OPENMETRICS_CONTENT_TYPE
constants to the TypeScript types by @SimenB in https://github.com/siimon/prom-client/pull/626
contentType
top level export by @SimenB in https://github.com/siimon/prom-client/pull/625
Full Changelog: https://github.com/siimon/prom-client/compare/v15.1.1...v15.1.2
Published by SimenB 7 months ago
Full Changelog: https://github.com/siimon/prom-client/compare/v15.1.0...v15.1.1
Published by SimenB 10 months ago
osMemoryHeapLinux
hashObject
by using pre-sorted array of label namescollectDefaultMetrics.metricsList
histogram.startTime()
to be used with exemplars.Full Changelog: https://github.com/siimon/prom-client/compare/v15.0.0...v15.1.0
Published by SimenB about 1 year ago
Content-Encoding: gzip
header.escapeString
helper in lib/registry.js
to improve performance and avoid an unnecessarily complex regex.setToCurrentTime()
to reflect units as seconds.Full Changelog: https://github.com/siimon/prom-client/compare/v14.2.0...v15.0.0
Published by SimenB over 1 year ago
Full Changelog: https://github.com/siimon/prom-client/compare/v15.0.0-0...v15.0.0-1
Published by SimenB over 1 year ago
Full Changelog: https://github.com/siimon/prom-client/compare/v14.2.0...v15.0.0-0
Published by SimenB over 1 year ago
getMetricAsPrometheusString
method in the Registry
class to use Array.prototype.join
Array.prototype.map
, and object spread instead of an explicit for
loopexample/default-metrics.js
summary
metrics now has a pruneAgedBuckets
config parametermaxAgeSeconds
.false
(old behavior)get
method to type definitions of metric classesFull Changelog: https://github.com/siimon/prom-client/compare/v14.1.1...v14.2.0
Published by SimenB almost 2 years ago
perf_hooks
accross nodejs versions by @Fadoli in https://github.com/siimon/prom-client/pull/515
Full Changelog: https://github.com/siimon/prom-client/compare/v14.1.0...v14.1.1
Published by SimenB about 2 years ago
types: converted all the generic Metric types to be optional
The done()
functions returned by gauge.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()
and gauge.dec()
by calling hashObject()
once.
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 currentlynodejs_active_resources_total
- Total number of active resources.processHandles
andprocessRequests
metrics along with information about any other types ofSupport gzipped pushgateway requests
Full Changelog: https://github.com/siimon/prom-client/compare/v14.0.1...v14.1.0
Published by SimenB almost 3 years ago
Full Changelog: https://github.com/siimon/prom-client/compare/v14.0.0...v14.0.1
Published by zbjornson about 3 years ago
changed: linearBuckets
does not propagate rounding errors anymore. Fewer bucket bounds will be affected by rounding errors. Histogram bucket labels may change. 6f1f3b2
changed: The push gateway methods pushAdd()
, push()
and delete()
now return Promises instead of accepting a callback:
// Old:
gateway.pushAdd({ jobName: 'test' }, (err, resp, body) => {});
// New:
gateway
.pushAdd({ jobName: 'test' })
.then(({ resp, body }) => {})
.catch(err => {});
// or
const { resp, body } = await gateway.pushAdd({ jobName: 'test' });
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. 0f444cd
Published by zbjornson about 3 years ago
process
if cluster module is not used.zero()
to Histogram
for setting the metrics for a given label combination to zeroGauge.inc/dec(0)
without defaulting to 1Published by zbjornson over 3 years ago
labels()
and remove()
Published by siimon almost 4 years ago
changed: The following functions are now async (return a promise):
registry.metrics()
registry.getMetricsAsJSON()
registry.getMetricsAsArray()
registry.getSingleMetricAsString()
If your metrics server has a line like res.send(register.metrics())
, you
should change it to res.send(await register.metrics())
.
Additionally, all metric types now accept an optional collect
function,
which is called when the metric's value should be collected and within which
you should set the metric's value. You should provide a collect
function for
point-in-time metrics (e.g. current memory usage, as opposed to HTTP request
durations that are continuously logged in a histogram).
changed: register.clusterMetrics()
no longer accepts a callback; it only
returns a promise.
removed: v12.0.0 added the undocumented functions registry.registerCollector
and registry.collectors()
. These have been removed. If you were using them,
you should instead provide a collect
function as described above.
registry.resetMetrics()
(#238)registry.resetMetrics()
registry.resetMetrics()
registry.getMetricAsPrometheusString
utils.getPropertiesFromObj
with Object.values
catch
bindingsnumber
in typescript instead of void
registry.registerCollector()
and registry.collectors()
methods in TypeScript declarationexample/pushgateway.js
Published by siimon over 4 years ago
timeout
option to collectDefaultMetrics(conf)
is no longerTimeout
object.process_max_fds
is process limit, not OS (#314)Metric
labelNames & labelValues in TypeScript declaration to a generic type T extends string
, instead of string
registry.getMetricsAsJSON()
registry.getMetrics*
startTimer
, when invoked returns the number of secondsprocess_start_time_seconds
Published by SimenB over 5 years ago
Published by SimenB over 5 years ago
Published by SimenB over 5 years ago
timestamps
toggle to collectDefaultMetrics
optionsvalidateMetricName
Published by SimenB over 5 years ago
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.Published by SimenB over 5 years ago
Object.assign
on hot paths, as well as