express-prometheus-middleware
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -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 @@ |
{ | ||
"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 |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
146
18404
10
170