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

express-prometheus-middleware

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-prometheus-middleware - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

4

CHANGELOG.md

@@ -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;

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