0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

⬇️ Downgrade prometheus client to 0.9.0.

Because it introduces some breaking changes.
This commit is contained in:
Andrey Antukh 2021-03-17 10:29:51 +01:00 committed by Andrés Moya
parent 1e25e543b3
commit 142086b2c3
5 changed files with 12 additions and 9 deletions

View file

@ -24,12 +24,15 @@
com.taoensso/nippy {:mvn/version "3.1.1"} com.taoensso/nippy {:mvn/version "3.1.1"}
com.github.luben/zstd-jni {:mvn/version "1.4.9-1"} com.github.luben/zstd-jni {:mvn/version "1.4.9-1"}
io.prometheus/simpleclient {:mvn/version "0.10.0"} ;; NOTE: don't upgrade to latest version, breaking change is
io.prometheus/simpleclient_hotspot {:mvn/version "0.10.0"} ;; introduced on 0.10.0 that suffixes counters with _total if they
io.prometheus/simpleclient_jetty {:mvn/version "0.10.0" ;; are not already has this suffix.
io.prometheus/simpleclient {:mvn/version "0.9.0"}
io.prometheus/simpleclient_hotspot {:mvn/version "0.9.0"}
io.prometheus/simpleclient_jetty {:mvn/version "0.9.0"
:exclusions [org.eclipse.jetty/jetty-server :exclusions [org.eclipse.jetty/jetty-server
org.eclipse.jetty/jetty-servlet]} org.eclipse.jetty/jetty-servlet]}
io.prometheus/simpleclient_httpserver {:mvn/version "0.10.0"} io.prometheus/simpleclient_httpserver {:mvn/version "0.9.0"}
selmer/selmer {:mvn/version "1.12.33"} selmer/selmer {:mvn/version "1.12.33"}
expound/expound {:mvn/version "0.8.9"} expound/expound {:mvn/version "0.8.9"}

View file

@ -80,7 +80,7 @@
#'next.jdbc/execute!] #'next.jdbc/execute!]
{:registry registry {:registry registry
:type :counter :type :counter
:name "database_query_count" :name "database_query_total"
:help "An absolute counter of database queries."})) :help "An absolute counter of database queries."}))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View file

@ -137,7 +137,7 @@
(str (:max-batch-size cfg))) (str (:max-batch-size cfg)))
(let [input (batch-events cfg (::events-ch session)) (let [input (batch-events cfg (::events-ch session))
mcnt (mtx/create mcnt (mtx/create
{:name "http_session_updater_count" {:name "http_session_update_total"
:help "A counter of session update batch events." :help "A counter of session update batch events."
:registry (:registry metrics) :registry (:registry metrics)
:type :counter})] :type :counter})]

View file

@ -55,7 +55,7 @@
mtx-messages mtx-messages
(mtx/create (mtx/create
{:name "websocket_message_count" {:name "websocket_message_total"
:registry (:registry metrics) :registry (:registry metrics)
:labels ["op"] :labels ["op"]
:type :counter :type :counter

View file

@ -54,8 +54,8 @@
{:registry registry {:registry registry
:type :counter :type :counter
:labels ["name"] :labels ["name"]
:name "tasks_submit_counter" :name "tasks_submit_total"
:help "An absolute counter of task submissions." :help "A counter of task submissions."
:wrap (fn [rootf mobj] :wrap (fn [rootf mobj]
(let [mdata (meta rootf) (let [mdata (meta rootf)
origf (::original mdata rootf)] origf (::original mdata rootf)]