-
- Downloads
Metrics with Prometheus (#2069)
* Basic process metrics * Enable Prometheus by an environment variable * Code formatting * Documentation for Prometheus metrics * Link from README to documentation of Prometheus * Link from README to documentation of Prometheus * Link from README to documentation of Prometheus * Separate module for metrics + tests * Metrics limited by IP * Metrics are forbidded for all requets by default * Code refactoring * allowedIps passed as a string to PrometheusMetrics * Handle missing config * METRICS_PROMETHEUS_ALLOWED_IPS added to documentation * Log info about enabled metrics * Unused code removed * package-lock.json updated * prom-client updated to 11.1.2 * Code refactoring * Do not read IP address from X-Forwarder-For header
Showing
- README.md 4 additions, 2 deletionsREADME.md
- doc/self-hosting.md 8 additions, 0 deletionsdoc/self-hosting.md
- lib/server-config.js 6 additions, 0 deletionslib/server-config.js
- lib/sys/prometheus-metrics.js 43 additions, 0 deletionslib/sys/prometheus-metrics.js
- lib/sys/prometheus-metrics.spec.js 93 additions, 0 deletionslib/sys/prometheus-metrics.spec.js
- package-lock.json 22 additions, 1 deletionpackage-lock.json
- package.json 1 addition, 0 deletionspackage.json
- server.js 3 additions, 0 deletionsserver.js
Loading
Please register or sign in to comment