move most of the logic of IOSocketController into a dedicated class

This commit is contained in:
arp 2020-10-15 17:25:16 +02:00
parent 1abae077a3
commit e6bd655527
7 changed files with 713 additions and 735 deletions

View file

@ -5,7 +5,7 @@ const register = require('prom-client').register;
const collectDefaultMetrics = require('prom-client').collectDefaultMetrics;
export class PrometheusController {
constructor(private App: App, private ioSocketController: IoSocketController) {
constructor(private App: App) {
collectDefaultMetrics({
timeout: 10000,
gcDurationBuckets: [0.001, 0.01, 0.1, 1, 2, 5], // These are the default buckets.