Browse Source

Separate port for prometheus metrics

Add Prometheus metrics [Feat]: Simple Stats API #1285
pull/1299/head
Vadim Babadzhanyan 8 months ago
parent
commit
58f5b6806e
  1. 5
      src/lib/Server.js

5
src/lib/Server.js

@ -388,11 +388,6 @@ module.exports = class Server {
if (ENABLE_PROMETHEUS_METRICS === 'true') {
const appMetrics = createApp();
this.app_metrics = appMetrics;
appMetrics.use(fromNodeMiddleware(expressSession({
secret: crypto.randomBytes(256).toString('hex'),
resave: true,
saveUninitialized: true,
})));
const metricsRouter = createRouter();
appMetrics.use(metricsRouter);
metricsRouter

Loading…
Cancel
Save