mirror of https://github.com/calzoneman/sync.git
Add back socket.io:count metric that was accidentally removed
This commit is contained in:
parent
d61005e419
commit
58a193b63b
|
@ -29,3 +29,6 @@ function getConnectedSockets() {
|
|||
const reporter = new JSONFileMetricsReporter('counters.log');
|
||||
Metrics.setReporter(reporter);
|
||||
Metrics.setReportInterval(60000);
|
||||
Metrics.addReportHook((metrics) => {
|
||||
metrics.incCounter('socket.io:count', getConnectedSockets());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue