mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add in metrics
This commit is contained in:
parent
fa049ff4eb
commit
aed4a7ce18
2 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue