mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
install metrics route and bump metrics version
This commit is contained in:
parent
a11d6dcc48
commit
5f046ed329
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
Metrics = require "metrics-sharelatex"
|
||||||
|
Metrics.initialize("doc-updater")
|
||||||
|
|
||||||
express = require('express')
|
express = require('express')
|
||||||
http = require("http")
|
http = require("http")
|
||||||
Settings = require('settings-sharelatex')
|
Settings = require('settings-sharelatex')
|
||||||
|
@ -14,8 +17,7 @@ Errors = require "./app/js/Errors"
|
||||||
HttpController = require "./app/js/HttpController"
|
HttpController = require "./app/js/HttpController"
|
||||||
|
|
||||||
Path = require "path"
|
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.mongodb.monitor(Path.resolve(__dirname + "/node_modules/mongojs/node_modules/mongodb"), logger)
|
||||||
Metrics.event_loop.monitor(logger, 100)
|
Metrics.event_loop.monitor(logger, 100)
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
"express": "3.3.4",
|
"express": "3.3.4",
|
||||||
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.5.6",
|
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.5.6",
|
||||||
"lynx": "0.0.11",
|
"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",
|
"redis-sharelatex": "git+https://github.com/sharelatex/redis-sharelatex.git#v1.0.4",
|
||||||
"request": "2.25.0",
|
"request": "2.25.0",
|
||||||
"requestretry": "^1.12.0",
|
"requestretry": "^1.12.0",
|
||||||
|
|
Loading…
Reference in a new issue