Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-prom-bundle

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-prom-bundle - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

4

package.json
{
"name": "express-prom-bundle",
"version": "3.0.0",
"version": "3.1.0",
"description": "express middleware with popular prometheus metrics in one bundle",

@@ -20,3 +20,3 @@ "main": "src/index.js",

"on-finished": "^2.3.0",
"prom-client": "^9.0.0",
"prom-client": "^10.0.2",
"url-value-parser": "^1.0.0"

@@ -23,0 +23,0 @@ },

@@ -170,2 +170,4 @@ [![build status](https://travis-ci.org/jochen-schweizer/express-prom-bundle.png)](https://travis-ci.org/jochen-schweizer/express-prom-bundle) [![Coverage Status](https://coveralls.io/repos/github/jochen-schweizer/express-prom-bundle/badge.svg?branch=master)](https://coveralls.io/github/jochen-schweizer/express-prom-bundle?branch=master) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://www.tldrlegal.com/l/mit) [![NPM version](https://badge.fury.io/js/express-prom-bundle.png)](http://badge.fury.io/js/express-prom-bundle)

* **3.1.0**
* upgrade **prom-client** to 10.0.0
* **3.0.0**

@@ -172,0 +174,0 @@ * upgrade dependencies, most notably **prom-client** to 9.0.0

@@ -72,6 +72,6 @@ 'use strict';

const metricTemplates = {
'up': () => new promClient.Gauge(
'up',
'1 = up, 0 = not up'
),
'up': () => new promClient.Gauge({
name: 'up',
help: '1 = up, 0 = not up'
}),
'http_request_duration_seconds': () => {

@@ -85,10 +85,8 @@ const labels = ['status_code'];

}
const metric = new promClient.Histogram(
httpMtricName,
'duration histogram of http responses labeled with: ' + labels.join(', '),
labels,
{
buckets: opts.buckets || [0.003, 0.03, 0.1, 0.3, 1.5, 10]
}
);
const metric = new promClient.Histogram({
name: httpMtricName,
help: 'duration histogram of http responses labeled with: ' + labels.join(', '),
labelNames: labels,
buckets: opts.buckets || [0.003, 0.03, 0.1, 0.3, 1.5, 10]
});
return metric;

@@ -95,0 +93,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc