Update dependency prom-client to v14
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| prom-client | ^12.0.0 -> ^14.0.1 |
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
siimon/prom-client
v14.0.1
What's Changed
- Update pushgateway type def by @adilhafeez in https://github.com/siimon/prom-client/pull/469
New Contributors
- @adilhafeez made their first contribution in https://github.com/siimon/prom-client/pull/469
Full Changelog: https://github.com/siimon/prom-client/compare/v14.0.0...v14.0.1
v14.0.0
Breaking
-
changed:
linearBucketsdoes 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()anddelete()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
Changed
- Add missing
await/thens to examples.074f339 - Add missing type declaration for
client.contentType.3b66641 - Modernize some label processing code.
c9bf1d8
v13.2.0
Changed
- Don't add event listener to
processif 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)
- Improve performance of/reduce memory allocations in Gauge.
Added
- feat: added
zero()toHistogramfor setting the metrics for a given label combination to zero - fix: allow
Gauge.inc/dec(0)without defaulting to 1
v13.1.0
Changed
- fix: push client attempting to write Promise (fixes #390)
- types: improve type checking of labels
- fix: Summary#observe should throw when adding additional labels to labelset (fixes #262)
Added
- feat: added the ability to pass labels as an object to
labels()andremove() - Added: More examples with commented output
v13.0.0
Breaking
-
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 tores.send(await register.metrics()).Additionally, all metric types now accept an optional
collectfunction, which is called when the metric's value should be collected and within which you should set the metric's value. You should provide acollectfunction 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.registerCollectorandregistry.collectors(). These have been removed. If you were using them, you should instead provide acollectfunction as described above.
Changed
- fix: provide nodejs_version_info metric value after calling
registry.resetMetrics()(#238) - fix: provide process_max_fds metric value after calling
registry.resetMetrics() - fix: provide process_start_time_seconds metric value after calling
registry.resetMetrics() - chore: improve performance of
registry.getMetricAsPrometheusString - chore: refactor metrics to reduce code duplication
- chore: replace
utils.getPropertiesFromObjwithObject.values - chore: remove unused
catchbindings - chore: upgrade Prettier to 2.x
- fix: startTimer returns
numberin typescript instead ofvoid - fix: incorrect typings of `registry.getSingleMetric' (#388)
- chore: stop testing node v13 on CI
Added
- feat: exposed
registry.registerCollector()andregistry.collectors()methods in TypeScript declaration - Added: complete working example of a pushgateway push in
example/pushgateway.js - feat: added support for adding labels to default metrics (#374)
- Added CHANGELOG reminder
Configuration
📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.