mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
install metrics route and bump metrics version
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user