express-prom-bundle
Advanced tools
Comparing version 3.0.0 to 3.1.0
{ | ||
"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 @@ } |
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
14536
199
152
+ Addedprom-client@10.2.3(transitive)
- Removedprom-client@9.1.1(transitive)
- Removedutil-extend@1.0.3(transitive)
Updatedprom-client@^10.0.2