prom-client
Advanced tools
Comparing version 14.1.0 to 14.1.1
@@ -20,3 +20,4 @@ /** | ||
exports.linearBuckets = require('./lib/bucketGenerators').linearBuckets; | ||
exports.exponentialBuckets = require('./lib/bucketGenerators').exponentialBuckets; | ||
exports.exponentialBuckets = | ||
require('./lib/bucketGenerators').exponentialBuckets; | ||
@@ -23,0 +24,0 @@ exports.collectDefaultMetrics = require('./lib/defaultMetrics'); |
@@ -17,7 +17,10 @@ 'use strict'; | ||
const kinds = []; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_MAJOR] = 'major'; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_MINOR] = 'minor'; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_INCREMENTAL] = 'incremental'; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB] = 'weakcb'; | ||
if (perf_hooks && perf_hooks.constants) { | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_MAJOR] = 'major'; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_MINOR] = 'minor'; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_INCREMENTAL] = 'incremental'; | ||
kinds[perf_hooks.constants.NODE_PERFORMANCE_GC_WEAKCB] = 'weakcb'; | ||
} | ||
module.exports = (registry, config = {}) => { | ||
@@ -36,4 +39,3 @@ if (!perf_hooks) { | ||
name: namePrefix + NODEJS_GC_DURATION_SECONDS, | ||
help: | ||
'Garbage collection duration by kind, one of major, minor, incremental or weakcb.', | ||
help: 'Garbage collection duration by kind, one of major, minor, incremental or weakcb.', | ||
labelNames: ['kind', ...labelNames], | ||
@@ -40,0 +42,0 @@ buckets, |
@@ -23,4 +23,3 @@ 'use strict'; | ||
name: namePrefix + NODEJS_ACTIVE_HANDLES, | ||
help: | ||
'Number of active libuv handles grouped by handle type. Every handle type is C++ class name.', | ||
help: 'Number of active libuv handles grouped by handle type. Every handle type is C++ class name.', | ||
labelNames: ['type', ...labelNames], | ||
@@ -27,0 +26,0 @@ registers, |
@@ -21,4 +21,3 @@ 'use strict'; | ||
name: namePrefix + NODEJS_ACTIVE_REQUESTS, | ||
help: | ||
'Number of active libuv requests grouped by request type. Every request type is C++ class name.', | ||
help: 'Number of active libuv requests grouped by request type. Every request type is C++ class name.', | ||
labelNames: ['type', ...labelNames], | ||
@@ -25,0 +24,0 @@ registers: registry ? [registry] : undefined, |
@@ -20,4 +20,3 @@ 'use strict'; | ||
name: namePrefix + NODEJS_ACTIVE_RESOURCES, | ||
help: | ||
'Number of active resources that are currently keeping the event loop alive, grouped by async resource type.', | ||
help: 'Number of active resources that are currently keeping the event loop alive, grouped by async resource type.', | ||
labelNames: ['type', ...labelNames], | ||
@@ -24,0 +23,0 @@ registers: registry ? [registry] : undefined, |
{ | ||
"name": "prom-client", | ||
"version": "14.1.0", | ||
"version": "14.1.1", | ||
"description": "Client for prometheus", | ||
@@ -16,5 +16,7 @@ "main": "index.js", | ||
"benchmarks": "node ./benchmarks/index.js", | ||
"test": "npm run lint && npm run compile-typescript && npm run test-unit", | ||
"test": "npm run lint && npm run check-prettier && npm run compile-typescript && npm run test-unit", | ||
"lint": "eslint .", | ||
"test-unit": "jest", | ||
"run-prettier": "prettier . .eslintrc", | ||
"check-prettier": "npm run run-prettier -- --check", | ||
"compile-typescript": "tsc --project ." | ||
@@ -45,3 +47,3 @@ }, | ||
"nock": "^13.0.5", | ||
"prettier": "2.0.5", | ||
"prettier": "2.7.1", | ||
"typescript": "^4.0.2" | ||
@@ -67,2 +69,3 @@ }, | ||
"trailingComma": "all", | ||
"endOfLine": "auto", | ||
"overrides": [ | ||
@@ -69,0 +72,0 @@ { |
@@ -494,3 +494,3 @@ # Prometheus client for node.js [![Actions Status](https://github.com/siimon/prom-client/workflows/Node.js%20CI/badge.svg?branch=master)](https://github.com/siimon/prom-client/actions) | ||
gateway.pushAdd({ jobName: 'test' }) | ||
.then({resp, body} => { | ||
.then(({resp, body}) => { | ||
/* ... */ | ||
@@ -502,3 +502,3 @@ }) | ||
gateway.push({ jobName: 'test' }) | ||
.then({resp, body} => { | ||
.then(({resp, body}) => { | ||
/* ... */ | ||
@@ -510,3 +510,3 @@ }) | ||
gateway.delete({ jobName: 'test' }) | ||
.then({resp, body} => { | ||
.then(({resp, body}) => { | ||
/* ... */ | ||
@@ -520,3 +520,3 @@ }) | ||
gateway.pushAdd({ jobName: 'test', groupings: { key: 'value' } }) | ||
.then({resp, body} => { | ||
.then(({resp, body}) => { | ||
/* ... */ | ||
@@ -523,0 +523,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108677
2670