[Snyk] Upgrade prom-client from 11.5.3 to 14.0.1 #16
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.
Snyk has created this PR to upgrade prom-client from 11.5.3 to 14.0.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Warning: This is a major version upgrade, and may be a breaking change.
Release notes
Package name: prom-client
What's Changed
New Contributors
Full Changelog: v14.0.0...v14.0.1
Breaking
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()
anddelete()
now return Promises instead of accepting a callback:f177b1f
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
await
/then
s to examples.074f339
client.contentType
.3b66641
c9bf1d8
Changed
process
if cluster module is not used.Added
zero()
toHistogram
for setting the metrics for a given label combination to zeroGauge.inc/dec(0)
without defaulting to 1[13.1.0] - 2021-01-24
Changed
Added
labels()
andremove()
[13.0.0] - 2020-12-16
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
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 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.registerCollector
and
registry.collectors()
. These have been removed. If you were using them,you should instead provide a
collect
function as described above.Changed
registry.resetMetrics()
(#238)registry.resetMetrics()
registry.resetMetrics()
registry.getMetricAsPrometheusString
utils.getPropertiesFromObj
withObject.values
catch
bindingsnumber
in typescript instead ofvoid
Added
registry.registerCollector()
andregistry.collectors()
methods in TypeScript declarationexample/pushgateway.js
Breaking
constructors, only the config object forms remain.
interval. The
timeout
option tocollectDefaultMetrics(conf)
is no longersupported or needed, and the function no longer returns a
Timeout
object.Changed
process_max_fds
is process limit, not OS (#314)Metric
labelNames & labelValues in TypeScript declaration to a generic typeT extends string
, instead ofstring
registry.getMetricsAsJSON()
registry.getMetrics*
startTimer
, when invoked returns the number of secondsprocess_start_time_seconds
Added
11.5.3
Commit messages
Package name: prom-client
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs