Init metrics at top of app.coffee

This commit is contained in:
Christopher Hoskin 2019-01-11 10:19:47 +00:00
parent 6e3fd0effb
commit fe60edca56

View file

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