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.9.0 to 0.9.1

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [0.9.1](https://github.com/joao-fontenele/express-prometheus-middleware/compare/v0.9.0...v0.9.1) (2020-05-06)
## [0.9.0](https://github.com/joao-fontenele/express-prometheus-middleware/compare/v0.8.5...v0.9.0) (2020-05-06)

@@ -7,0 +9,0 @@

2

package.json
{
"name": "express-prometheus-middleware",
"version": "0.9.0",
"version": "0.9.1",
"description": "RED/USE metrics for express applications",

@@ -5,0 +5,0 @@ "keywords": [

@@ -28,3 +28,3 @@ # Express Prometheus Middleware

| metricsPath | Url route that will expose the metrics for scraping. | `/metrics` |
| metricsApp | Express app that will expose metrics endpoint | `same app as the middleware` |
| metricsApp | Express app that will expose metrics endpoint, if an app is provided, use it, instead of instantiating a new one | `null` |
| collectDefaultMetrics | Whether or not to collect `prom-client` default metrics. These metrics are usefull for collecting saturation metrics, for example. | `true` |

@@ -34,3 +34,3 @@ | requestDurationBuckets | Buckets for the request duration metrics (in milliseconds) histogram | Uses `prom-client` utility: `Prometheus.exponentialBuckets(0.05, 1.75, 8)` |

| authenticate | Optional authentication callback, the function should receive as argument, the `req` object and return truthy for sucessfull authentication, or falsy, otherwise. This option supports Promise results. | `null` |
| prefix | Optional prefix for the metrics name | no prefix added | |
| prefix | Optional prefix for the metrics name | no prefix added |

@@ -62,2 +62,7 @@ ### Example

// extraMasks: [/..:..:..:..:..:../],
/**
* The prefix option will cause all metrics to have the given prefix.
* E.g.: `app_prefix_http_requests_total`
*/
// prefix: 'app_prefix_',
}));

@@ -89,3 +94,3 @@

In the examples below, Suppose you tagged your application as "myapp".
In the examples below, Suppose you tagged your application as "myapp", in the prometheus scrapping config.

@@ -92,0 +97,0 @@ #### Running instances

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