Add in metrics

This commit is contained in:
James Allen 2014-05-06 16:52:58 +01:00
parent fa049ff4eb
commit aed4a7ce18
2 changed files with 5 additions and 0 deletions

View file

@ -4,8 +4,12 @@ express = require "express"
bodyParser = require "body-parser"
Errors = require "./app/js/Errors"
HttpController = require "./app/js/HttpController"
Metrics = require "metrics-sharelatex"
Path = require "path"
Metrics.initialize("docstore")
logger.initialize("docstore")
Metrics.mongodb.monitor(Path.resolve(__dirname + "/node_modules/mongojs/node_modules/mongodb"), logger)
app = express()

View file

@ -6,6 +6,7 @@
"dependencies": {
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#master",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#master",
"mongojs": "0.9.11",
"express": "~4.1.1",
"underscore": "~1.6.0",