Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

chore(deps): bump prom-client from 14.2.0 to 15.1.0 #1272

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2024

Bumps prom-client from 14.2.0 to 15.1.0.

Release notes

Sourced from prom-client's releases.

v15.1.0

Changed

  • remove unnecessary loop from osMemoryHeapLinux
  • Improve performance of hashObject by using pre-sorted array of label names
  • Fix type of collectDefaultMetrics.metricsList

Added

  • Allow Pushgateway to now require job names for compatibility with Gravel Gateway.
  • Allow histogram.startTime() to be used with exemplars.

New Contributors

Full Changelog: siimon/prom-client@v15.0.0...v15.1.0

v15.0.0

Added

  • Support for OpenMetrics and Exemplars

Breaking

  • drop support for Node.js versions 10, 12, 14, 17 and 19

Changed

  • Refactor histogram internals and provide a fast path for rendering metrics to Prometheus strings when there are many labels shared across different values.
  • Disable custom content encoding for pushgateway delete requests in order to avoid failures from the server when using Content-Encoding: gzip header.
  • Refactor escapeString helper in lib/registry.js to improve performance and avoid an unnecessarily complex regex.
  • Cleanup code and refactor to be more efficient
  • Correct TS types for working with OpenMetrics
  • Updated Typescript and Readme docs for setToCurrentTime() to reflect units as seconds.
  • Do not ignore error if request to pushgateway fails
  • Make sure to reject the request to pushgateway if it times out

New Contributors

... (truncated)

Changelog

Sourced from prom-client's changelog.

[15.1.0] - 2023-12-15

Changed

  • remove unnecessary loop from osMemoryHeapLinux
  • Improve performance of hashObject by using pre-sorted array of label names
  • Fix type of collectDefaultMetrics.metricsList

Added

  • Allow Pushgateway to now require job names for compatibility with Gravel Gateway.
  • Allow histogram.startTime() to be used with exemplars.

[15.0.0] - 2023-10-09

Breaking

  • drop support for Node.js versions 10, 12, 14, 17 and 19

Changed

  • Refactor histogram internals and provide a fast path for rendering metrics to Prometheus strings when there are many labels shared across different values.
  • Disable custom content encoding for pushgateway delete requests in order to avoid failures from the server when using Content-Encoding: gzip header.
  • Refactor escapeString helper in lib/registry.js to improve performance and avoid an unnecessarily complex regex.
  • Cleanup code and refactor to be more efficient
  • Correct TS types for working with OpenMetrics
  • Updated Typescript and Readme docs for setToCurrentTime() to reflect units as seconds.
  • Do not ignore error if request to pushgateway fails
  • Make sure to reject the request to pushgateway if it times out

Added

  • Support for OpenMetrics and Exemplars
Commits
  • 5adf350 15.1.0
  • 16b0292 chore: update changelog for release
  • 17f49db chore: run CI on Node 21 (#602)
  • 50d49a6 chore: upgrade prettier to v3 (#601)
  • 1bc99bd feat: update type declarations
  • 0a77ca1 feat: implement startTimerWithExemplar
  • 15767e3 test: add failing test case
  • c171309 src: fix type of collectDefaultMetrics.metricsList
  • 2ffd316 pushgateway: adds configuration for omitting job name (for gravel gateway com...
  • efdb283 Improve performance of hashObject (#594)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner February 1, 2024 21:52
@dependabot dependabot bot added the dependabot dependabot label Feb 1, 2024
@dependabot dependabot bot requested a review from a team as a code owner February 1, 2024 21:52
@dependabot dependabot bot added dependencies Pull requests that update a dependency file npm npm one app labels Feb 1, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/main/prom-client-15.1.0 branch 4 times, most recently from 070efd2 to ca5eda8 Compare February 2, 2024 18:26
Bumps [prom-client](https://github.com/siimon/prom-client) from 14.2.0 to 15.1.0.
- [Release notes](https://github.com/siimon/prom-client/releases)
- [Changelog](https://github.com/siimon/prom-client/blob/master/CHANGELOG.md)
- [Commits](siimon/prom-client@v14.2.0...v15.1.0)

---
updated-dependencies:
- dependency-name: prom-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/main/prom-client-15.1.0 branch from ca5eda8 to 1afd9d1 Compare February 5, 2024 15:06
if (!gauges[name]) {
throw new Error(`unable to find gauge ${name}, please create it first`);
}
gauges[name].reset(...args);
gauges[name].reset();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function doesn't take any arguments, and didn't in v14 either

Copy link
Contributor

github-actions bot commented Feb 5, 2024

Size Change: 0 B

Total Size: 718 kB

ℹ️ View Unchanged
Filename Size
./build/app/app.js 170 kB
./build/app/app~vendors.js 411 kB
./build/app/runtime.js 7.07 kB
./build/app/service-worker-client.js 7.25 kB
./build/app/vendors.js 123 kB

compressed-size-action


function load() {
jest.resetModules();

jest.mock('prom-client');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An internal, non-breaking change to prom-client broke this mock.

createGauge({ name: 'yup', help: 'yup_help', labelNames: ['foo'] });
const gauge = register._metrics.yup;
expect(gauge.hashMap).toEqual({});
incrementGauge('yup', { foo: 'bar' }, 2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An object of labels (defined at metric creation) is the only other valid argument

Matthew-Mallimo
Matthew-Mallimo previously approved these changes Feb 5, 2024
JAdshead
JAdshead previously approved these changes Feb 5, 2024
@@ -58,6 +59,7 @@ async function appPlugin(fastify) {
fastify.register(fastifyMetrics, {
defaultMetrics: { enabled: false },
endpoint: null,
promClient: client,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fastify-metrics has prom-client@14 as a dependency, so it was charing the same installed version before. With the prom-client update fastify-metrics was using its own instance of prom-client, so the metrics would not come through. This change allows us to get around that by providing our prom-client instance to fastify-metrics

@10xLaCroixDrinker 10xLaCroixDrinker merged commit 1fc247f into main Feb 5, 2024
9 checks passed
@10xLaCroixDrinker 10xLaCroixDrinker deleted the dependabot/npm_and_yarn/main/prom-client-15.1.0 branch February 5, 2024 22:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependabot dependabot dependencies Pull requests that update a dependency file npm npm one app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants