install metrics route and bump metrics version

This commit is contained in:
Henry Oswald 2018-11-27 13:41:10 +00:00
parent a11d6dcc48
commit 5f046ed329
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,6 @@
Metrics = require "metrics-sharelatex"
Metrics.initialize("doc-updater")
express = require('express')
http = require("http")
Settings = require('settings-sharelatex')
@ -14,8 +17,7 @@ Errors = require "./app/js/Errors"
HttpController = require "./app/js/HttpController"
Path = require "path"
Metrics = require "metrics-sharelatex"
Metrics.initialize("doc-updater")
Metrics.mongodb.monitor(Path.resolve(__dirname + "/node_modules/mongojs/node_modules/mongodb"), logger)
Metrics.event_loop.monitor(logger, 100)

View file

@ -25,7 +25,7 @@
"express": "3.3.4",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.5.6",
"lynx": "0.0.11",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.5.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v2.0.7",
"redis-sharelatex": "git+https://github.com/sharelatex/redis-sharelatex.git#v1.0.4",
"request": "2.25.0",
"requestretry": "^1.12.0",