prom-client
Advanced tools
Comparing version 5.0.4 to 6.0.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
var NODEJS_EVENTLOOP_LAG = 'nodejs_eventloop_lag_milliseconds'; | ||
var NODEJS_EVENTLOOP_LAG = 'nodejs_eventloop_lag_seconds'; | ||
@@ -11,9 +11,9 @@ function reportEventloopLag(start, gauge) { | ||
var nanosec = delta[0] * 1e9 + delta[1]; | ||
var ms = nanosec / 1e6; | ||
var seconds = nanosec / 1e9; | ||
gauge.set(Math.round(ms)); | ||
gauge.set(seconds); | ||
} | ||
module.exports = function() { | ||
var gauge = new Gauge(NODEJS_EVENTLOOP_LAG, 'Lag of event loop in milliseconds.'); | ||
var gauge = new Gauge(NODEJS_EVENTLOOP_LAG, 'Lag of event loop in seconds.'); | ||
@@ -20,0 +20,0 @@ return function() { |
{ | ||
"name": "prom-client", | ||
"version": "5.0.4", | ||
"version": "6.0.0", | ||
"description": "Client for prometheus", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
55492