Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 28, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prom-client ^13.2.0 -> ^14.0.0 age adoption passing confidence

Release Notes

siimon/prom-client

v14.2.0

Compare Source

Changed
  • Refactor getMetricAsPrometheusString method in the Registry class to use Array.prototype.join
    instead of loop of string concatenations.
  • Also use Array.prototype.map, and object spread instead of an explicit for loop
  • changed: updated the sample output in example/default-metrics.js
  • summary metrics now has a pruneAgedBuckets config parameter
    to remove entries without any new values in the last maxAgeSeconds.
    Default is false (old behavior)
Added
  • Add get method to type definitions of metric classes

v14.1.1

Compare Source

Changed
  • Increase compatibility with external build system such as rollup by making perf_hooks optional in gc.js

v14.1.0

Compare Source

Changed
  • 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.

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 the processHandles 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

v14.0.1

Compare Source

Changed
  • changed: typedef for pushgateway to reflect js implementation.

v14.0.0

Compare Source

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() 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' });

    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
  • Add missing await/thens to examples. 074f339
  • Add missing type declaration for client.contentType. 3b66641
  • Modernize some label processing code. c9bf1d8

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate
Copy link
Contributor Author

renovate bot commented May 28, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: express-prometheus-middleware@1.2.0
npm ERR! Found: prom-client@14.2.0
npm ERR! node_modules/prom-client
npm ERR!   prom-client@"^14.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer prom-client@">= 10.x <= 13.x" from express-prometheus-middleware@1.2.0
npm ERR! node_modules/express-prometheus-middleware
npm ERR!   express-prometheus-middleware@"^1.2.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: prom-client@13.2.0
npm ERR! node_modules/prom-client
npm ERR!   peer prom-client@">= 10.x <= 13.x" from express-prometheus-middleware@1.2.0
npm ERR!   node_modules/express-prometheus-middleware
npm ERR!     express-prometheus-middleware@"^1.2.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /tmp/renovate-cache/others/npm/_logs/2023-05-28T07_00_08_355Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/renovate-cache/others/npm/_logs/2023-05-28T07_00_08_355Z-debug-0.log

@instapr
Copy link

instapr bot commented May 28, 2023

Thanks for the pull request. I have reviewed the updates, and everything looks good. The updated version of prom-client has some nice new features, including support for gzipped pushgateway requests and improved performance for gauge.inc() and gauge.dec(). Please go ahead and merge this pull request once you are satisfied with the changes.

@renovate renovate bot force-pushed the renovate/prom-client-14.x branch 4 times, most recently from d72f37f to c0da084 Compare May 28, 2023 06:56
@ammar-ahmed-butt ammar-ahmed-butt self-requested a review May 28, 2023 06:59
@renovate renovate bot force-pushed the renovate/prom-client-14.x branch from c0da084 to 102158f Compare May 28, 2023 07:00
@ammar-ahmed-butt ammar-ahmed-butt merged commit e4d2200 into master May 28, 2023
@renovate renovate bot deleted the renovate/prom-client-14.x branch May 28, 2023 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants