Skip to content

Releases: siimon/prom-client

10.2.1

27 Oct 06:21
5e5c8cf
Compare
Choose a tag to compare

Changed

  • Only resolve/reject clusterMetrics promise if no callback is provided

10.2.0

15 Oct 22:45
72308fe
Compare
Choose a tag to compare

Changed

  • Don't add event listeners if cluster module is not used.
  • Fixed issue with counters having extra records when using empty labels

Added

  • Added reset to Counter and Gauge
  • Added resetMetrics to register to calling reset of all metric instances

10.1.1

26 Sep 06:24
426941f
Compare
Choose a tag to compare

Changed

  • Update TypeScript definitions and JSDoc comments to match JavaScript sources
  • Fix lexical scope of arguments in cluster code

10.1.0

04 Sep 06:07
Compare
Choose a tag to compare

Added

  • Support aggregating metrics across workers in a Node.js cluster.

10.0.4

22 Aug 10:28
bb4586d
Compare
Choose a tag to compare

Changed

  • Include invalid values in the error messages

10.0.3

07 Aug 08:04
9815ae2
Compare
Choose a tag to compare

Added

  • Added registerMetric to definitions file

Changed

  • Fixed typing of DefaultMetricsCollectorConfiguration in definitions file
  • Don't pass timestamps through to pushgateway by default

10.0.2

07 Jul 14:14
0718733
Compare
Choose a tag to compare

Changed

  • Don't poll default metrics every single tick

10.0.1

06 Jul 06:51
Compare
Choose a tag to compare

Added

  • Metrics should be initialized to 0 when there are no labels

10.0.0

04 Jul 08:25
2a9b90c
Compare
Choose a tag to compare

Breaking

  • Print deprecation warning when metrics are constructed using non-objects
  • Print deprecation warning when collectDefaultMetrics is called with a number

Added

  • Ability to set default labels by registry
  • Allow passing in registry as second argument to collectDefaultMetrics to
    use that instead of the default registry

Changed

  • Convert code base to ES2015 code (node 4)
    • add engines field to package.json
    • Use object shorthand
    • Remove util-extend in favor of Object.assign
    • Arrow functions over binding or putting this in a variable
    • Use template strings
    • prototype -> class

9.1.1

17 Jun 11:21
ec74d5f
Compare
Choose a tag to compare

Changed

  • Don't set timestamps for metrics that are never updated