0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

📎 Add bigger window for quantiles on metrics.

This commit is contained in:
Andrey Antukh 2021-02-14 18:01:04 +01:00
parent a81d20a2d1
commit f8ccd0b120

View file

@ -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)