From f8ccd0b120f2b860416b42dc431ec66872a2270d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 14 Feb 2021 18:01:04 +0100 Subject: [PATCH] :paperclip: Add bigger window for quantiles on metrics. --- backend/src/app/metrics.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/metrics.clj b/backend/src/app/metrics.clj index 9c20d6db6..a7e866068 100644 --- a/backend/src/app/metrics.clj +++ b/backend/src/app/metrics.clj @@ -155,11 +155,12 @@ :dec (.. ^Gauge instance (labels labels) (dec))))))) (defn make-summary - [{:keys [name help registry reg labels] :as props}] + [{:keys [name help registry reg labels max-age] :or {max-age 3600} :as props}] (let [registry (or registry reg) instance (doto (Summary/build) (.name name) (.help help) + (.maxAgeSeconds max-age) (.quantile 0.75 0.02) (.quantile 0.99 0.001)) _ (when (seq labels)