express-prom-bundle
Advanced tools
Comparing version 3.2.1 to 3.3.0
{ | ||
"name": "express-prom-bundle", | ||
"version": "3.2.1", | ||
"version": "3.3.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": "^10.1.0", | ||
"prom-client": "~10.2.2", | ||
"url-value-parser": "^1.0.0" | ||
@@ -23,0 +23,0 @@ }, |
@@ -63,2 +63,5 @@ [![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) | ||
* **autoregister**: if `/metrics` endpoint should be registered. (Default: **true**) | ||
* **promClient**: options for promClient startup, e.g. **collectDefaultMetrics**. This option was added | ||
to keep `express-prom-bundle` runnable using confit (e.g. with kraken.js) without writing any JS code, | ||
see [advanced example](https://github.com/jochen-schweizer/express-prom-bundle/blob/master/advanced-example.js) | ||
@@ -175,7 +178,16 @@ Deprecated: | ||
* **3.3.0** | ||
* added option **promClient** to be able to call collectDefaultMetrics | ||
* upgrade **prom-client** to ~10.2.2 (switch to semver "approximately") | ||
* **3.2.0** | ||
* added options **customLabels**, **transformLabels** | ||
* upgrade **prom-client** to 10.1.0 | ||
* **3.1.0** | ||
* upgrade **prom-client** to 10.0.0 | ||
* **3.0.0** | ||
@@ -187,4 +199,8 @@ * upgrade dependencies, most notably **prom-client** to 9.0.0 | ||
* options added: includeStatusCode, formatStatusCode | ||
* **2.1.0** | ||
* deprecate **excludeRoutes**, use **req.originalUrl** instead of **req.path** | ||
* **2.0.0** | ||
@@ -191,0 +207,0 @@ * the reason for the version lift were: |
@@ -47,3 +47,4 @@ 'use strict'; | ||
normalizePath: main.normalizePath, | ||
formatStatusCode: main.normalizeStatusCode | ||
formatStatusCode: main.normalizeStatusCode, | ||
promClient: {} | ||
}, | ||
@@ -70,2 +71,6 @@ opts | ||
if (opts.promClient.collectDefaultMetrics) { | ||
promClient.collectDefaultMetrics(opts.promClient.collectDefaultMetrics); | ||
} | ||
const httpMetricName = opts.httpDurationMetricName || 'http_request_duration_seconds'; | ||
@@ -72,0 +77,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
15965
165
222
Updatedprom-client@~10.2.2