This repository was archived by the owner on Jun 7, 2022. It is now read-only.
Update dependency prom-client to v14 #477
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^12.0.0->^14.0.1Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
siimon/prom-client
v14.0.1Compare Source
What's Changed
New Contributors
Full Changelog: siimon/prom-client@v14.0.0...v14.0.1
v14.0.0Compare Source
Breaking
changed:
linearBucketsdoes not propagate rounding errors anymore.Fewer bucket bounds will be affected by rounding errors. Histogram bucket
labels may change.
6f1f3b2changed: The push gateway methods
pushAdd(),push()anddelete()nowreturn Promises instead of accepting a callback:
f177b1fchanged: The default
nodejs_eventloop_lag_*metrics are now reset every timethey 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.
0f444cdChanged
await/thens to examples.074f339client.contentType.3b66641c9bf1d8v13.2.0Compare Source
Changed
processif cluster module is not used.Added
zero()toHistogramfor setting the metrics for a given label combination to zeroGauge.inc/dec(0)without defaulting to 1v13.1.0Compare Source
Changed
Added
labels()andremove()v13.0.0Compare Source
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()), youshould change it to
res.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 a
collectfunction forpoint-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 onlyreturns a promise.
removed: v12.0.0 added the undocumented functions
registry.registerCollectorand
registry.collectors(). These have been removed. If you were using them,you should instead provide a
collectfunction as described above.Changed
registry.resetMetrics()(#238)registry.resetMetrics()registry.resetMetrics()registry.getMetricAsPrometheusStringutils.getPropertiesFromObjwithObject.valuescatchbindingsnumberin typescript instead ofvoidAdded
registry.registerCollector()andregistry.collectors()methods in TypeScript declarationexample/pushgateway.jsConfiguration
📅 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.
This PR has been generated by Mend Renovate. View repository job log here.