Initialise metrics at begining of app

This commit is contained in:
Christopher Hoskin 2018-12-13 14:24:44 +00:00
parent 533ec9128e
commit f9b0ac0e80

View file

@ -1,3 +1,8 @@
Metrics = require "metrics-sharelatex"
Metrics.initialize("clsi")
Metrics.open_sockets.monitor(logger)
Metrics.memory.monitor(logger)
CompileController = require "./app/js/CompileController"
Settings = require "settings-sharelatex"
logger = require "logger-sharelatex"
@ -12,11 +17,6 @@ Errors = require './app/js/Errors'
Path = require "path"
fs = require "fs"
Metrics = require "metrics-sharelatex"
Metrics.initialize("clsi")
Metrics.open_sockets.monitor(logger)
Metrics.memory.monitor(logger)
ProjectPersistenceManager = require "./app/js/ProjectPersistenceManager"
OutputCacheManager = require "./app/js/OutputCacheManager"