 cookieParser = CookieParser(Settings.security.sessionSecret)
 
 sessionSockets = new SessionSockets(io, sessionStore, cookieParser, Settings.cookieName)
+
+Metrics.injectMetricsRoute(app)
+app.use(Metrics.http.monitor(logger))
 
 io.configure ->
 	io.enable('browser client minification')

		else
			res.sendStatus 200

Metrics.injectMetricsRoute(app)

Router = require "./app/js/Router"
Router.configure(app, io, sessionSockets)


rclient = require("redis-sharelatex").createClient(Settings.redis.realtime)

healthCheck = (req, res, next)->
	rclient.healthCheck (error) ->
		if error?
			logger.err {err: error}, "failed redis health check"
