Преглед на файлове

Merge pull request #25 from overleaf/bg-reduce-step-effects

avoid step effects in summary metrics
Brian Gough преди 6 години
родител
ревизия
372485653e
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      libraries/metrics/package.json
  2. 1 1
      libraries/metrics/prom_wrapper.coffee

+ 1 - 1
libraries/metrics/package.json

@@ -1,6 +1,6 @@
 {
   "name": "metrics-sharelatex",
-  "version": "2.5.0",
+  "version": "2.5.1",
   "description": "A drop-in metrics and monitoring module for node.js apps",
   "repository": {
     "type": "git",

+ 1 - 1
libraries/metrics/prom_wrapper.coffee

@@ -55,7 +55,7 @@ class MetricWrapper
 				new prom.Summary({
 					name: name,
 					help: name,
-					maxAgeSeconds: 600,
+					maxAgeSeconds: 60,
 					ageBuckets: 10,
 					labelNames: ['app', 'host', 'path', 'status_code', 'method', 'collection', 'query']
 				})