enhancement(metrics): allow disabling via config option
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Tilman Vatteroth
parent
a349ddde56
commit
143864b8d9
6
app.js
6
app.js
@@ -75,8 +75,10 @@ app.use(morgan('combined', {
|
||||
}))
|
||||
|
||||
// Register prometheus metrics endpoint
|
||||
app.use(apiMetrics())
|
||||
metrics.setupCustomPrometheusMetrics()
|
||||
if (config.enableStatsApi) {
|
||||
app.use(apiMetrics())
|
||||
metrics.setupCustomPrometheusMetrics()
|
||||
}
|
||||
|
||||
// socket io
|
||||
const io = require('socket.io')(server, { cookie: false })
|
||||
|
||||
Reference in New Issue
Block a user