http-metrics-middleware
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -30,2 +30,4 @@ const accepts = require('accepts'); | ||
* @property {number[]} quantileBuckets - the quantiles to assign to duration summary (0.0 - 1.0) | ||
* @property {number} quantileMaxAge configures sliding time window for summary (in seconds) | ||
* @property {number} quantileAgeBuckets configures number of sliding time window buckets for summary | ||
* @property {string[]} paramIgnores - array of params _not_ to replace | ||
@@ -51,2 +53,4 @@ * @property {boolean} includeError - whether or not to include presence of an unhandled error as a label - defaults to false | ||
formatStatusCode: this.normalizeStatusCode.bind(this), | ||
quantileMaxAge: 600, | ||
quantileAgeBuckets: 5, | ||
}); | ||
@@ -110,2 +114,4 @@ this.options = options; | ||
percentiles: this.options.quantileBuckets, | ||
maxAgeSeconds: this.options.quantileMaxAge, | ||
ageBuckets: this.options.quantileAgeBuckets, | ||
})); | ||
@@ -112,0 +118,0 @@ } |
{ | ||
"name": "http-metrics-middleware", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Express middleware for adding common prometheus metrics", | ||
@@ -34,3 +34,3 @@ "author": "QlikTech International AB", | ||
"performance-now": "2.1.0", | ||
"prom-client": "11.1.3", | ||
"prom-client": "11.2.0", | ||
"url-value-parser": "2.0.0" | ||
@@ -37,0 +37,0 @@ }, |
@@ -47,2 +47,4 @@ [![Build Status][circleci-image]][circleci-url] | ||
| `quantileBuckets` | `[ 0.1, 0.5, 0.95, 0.99 ]` | the quantiles to assign to duration summary (0.0 - 1.0) | | ||
| `quantileMaxAge` | `600` | configures sliding time window for summary (in seconds) | | ||
| `quantileAgeBuckets` | `5` | configures number of sliding time window buckets for summary | | ||
| `includeError` | `false` | whether or not to include presence of an unhandled error as a label | | ||
@@ -49,0 +51,0 @@ | `includePath` | `true` | whether or not to include normalized URL path as a metric label - see [about `includePath`](#about-includepath) below | |
18841
243
152
+ Addedprom-client@11.2.0(transitive)
- Removedprom-client@11.1.3(transitive)
Updatedprom-client@11.2.0