From f321341227d5a2847ed91e9d50998af88c505604 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 20 Nov 2018 14:58:19 +0000 Subject: [PATCH] bump metrics to work with promethious --- services/docstore/app.coffee | 2 ++ services/docstore/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/services/docstore/app.coffee b/services/docstore/app.coffee index eb74016ff3..bd12e11282 100644 --- a/services/docstore/app.coffee +++ b/services/docstore/app.coffee @@ -27,6 +27,8 @@ app.param 'doc_id', (req, res, next, doc_id) -> else next new Error("invalid doc id") +Metrics.injectMetricsRoute(app) + app.get '/project/:project_id/doc', HttpController.getAllDocs app.get '/project/:project_id/ranges', HttpController.getAllRanges app.get '/project/:project_id/doc/:doc_id', HttpController.getDoc diff --git a/services/docstore/package.json b/services/docstore/package.json index 8250d09606..2d114f2b21 100644 --- a/services/docstore/package.json +++ b/services/docstore/package.json @@ -26,7 +26,7 @@ "coffee-script": "^1.7.1", "express": "~4.1.1", "logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.4.0", - "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.7.1", + "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.9.0", "mongojs": "2.4.0", "settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0", "underscore": "~1.6.0"