express-prometheus-middleware
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -1,5 +0,7 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
### [0.8.3](https://github.com/joao-fontenele/express-prometheus-middleware/compare/v0.8.2...v0.8.3) (2019-11-10) | ||
<a name="0.8.2"></a> | ||
@@ -6,0 +8,0 @@ ## [0.8.2](https://github.com/joao-fontenele/express-prometheus-middleware/compare/v0.8.1...v0.8.2) (2019-11-10) |
{ | ||
"name": "express-prometheus-middleware", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "RED/USE metrics for express applications", | ||
@@ -21,6 +21,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "^5.3.0", | ||
"eslint-config-airbnb-base": "^13.0.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"standard-version": "^4.4.0" | ||
"standard-version": "^7.0.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": { |
@@ -7,2 +7,3 @@ /* eslint-disable no-console */ | ||
const app = express(); | ||
const app2 = express(); | ||
@@ -12,6 +13,7 @@ const PORT = 9091; | ||
metricsPath: '/metrics', | ||
collectDefaultMetrics: true, | ||
collectDefaultMetrics: false, | ||
// to access /metrics you could do curl -X GET user:password@localhost:9091/metrics | ||
// authenticate: req => req.headers.authorization === 'Basic dXNlcjpwYXNzd29yZA==', | ||
requestDurationBuckets: [0.1, 0.5, 1, 1.5], | ||
metricsApp: app2, | ||
})); | ||
@@ -29,1 +31,6 @@ | ||
}); | ||
app2.listen(PORT + 1, () => { | ||
console.log(`Example api2 is listening on http://localhost:${PORT + 1}`); | ||
}); |
@@ -26,3 +26,3 @@ const express = require('express'); | ||
module.exports = (userOptions = {}) => { | ||
const options = Object.assign({}, defaultOptions, userOptions); | ||
const options = { ...defaultOptions, ...userOptions }; | ||
@@ -29,0 +29,0 @@ const { metricsPath, metricsApp } = options; |
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
16830
184