🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

prom-client

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prom-client - npm Package Compare versions

Comparing version

to
6.0.0

8

lib/metrics/eventLoopLag.js

@@ -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",