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
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
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 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)
Bumps prom-client from 14.1.1 to 14.2.0.
Release notes
Sourced from prom-client's releases.
Changelog
Sourced from prom-client's changelog.
Commits
e4c0a54
14.2.0734bf26
chore: update changelog for releaseeee3485
'pruneAgedBuckets' config option for summary (#540)cf5173c
feat: improve performance of getMetricAsPrometheusString (#542)081d8a0
fix: add get method to type definitions of metric classes (#531)8d6456c
Update the sample output in example/default-metrics.js (#491)991ee0a
chore: update changelogDependabot 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 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)