diff --git a/backend/deps.edn b/backend/deps.edn index 0e153675d..522a0d22b 100644 --- a/backend/deps.edn +++ b/backend/deps.edn @@ -24,12 +24,15 @@ com.taoensso/nippy {:mvn/version "3.1.1"} com.github.luben/zstd-jni {:mvn/version "1.4.9-1"} - io.prometheus/simpleclient {:mvn/version "0.10.0"} - io.prometheus/simpleclient_hotspot {:mvn/version "0.10.0"} - io.prometheus/simpleclient_jetty {:mvn/version "0.10.0" + ;; NOTE: don't upgrade to latest version, breaking change is + ;; introduced on 0.10.0 that suffixes counters with _total if they + ;; 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 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"} expound/expound {:mvn/version "0.8.9"} diff --git a/backend/src/app/db.clj b/backend/src/app/db.clj index ad86fc737..7791190c2 100644 --- a/backend/src/app/db.clj +++ b/backend/src/app/db.clj @@ -80,7 +80,7 @@ #'next.jdbc/execute!] {:registry registry :type :counter - :name "database_query_count" + :name "database_query_total" :help "An absolute counter of database queries."})) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/backend/src/app/http/session.clj b/backend/src/app/http/session.clj index bb5afecc5..316558257 100644 --- a/backend/src/app/http/session.clj +++ b/backend/src/app/http/session.clj @@ -137,7 +137,7 @@ (str (:max-batch-size cfg))) (let [input (batch-events cfg (::events-ch session)) mcnt (mtx/create - {:name "http_session_updater_count" + {:name "http_session_update_total" :help "A counter of session update batch events." :registry (:registry metrics) :type :counter})] diff --git a/backend/src/app/notifications.clj b/backend/src/app/notifications.clj index 82ccd23d1..94667c698 100644 --- a/backend/src/app/notifications.clj +++ b/backend/src/app/notifications.clj @@ -55,7 +55,7 @@ mtx-messages (mtx/create - {:name "websocket_message_count" + {:name "websocket_message_total" :registry (:registry metrics) :labels ["op"] :type :counter diff --git a/backend/src/app/tasks.clj b/backend/src/app/tasks.clj index 9ac9a3a8b..5ef8f0d4f 100644 --- a/backend/src/app/tasks.clj +++ b/backend/src/app/tasks.clj @@ -54,8 +54,8 @@ {:registry registry :type :counter :labels ["name"] - :name "tasks_submit_counter" - :help "An absolute counter of task submissions." + :name "tasks_submit_total" + :help "A counter of task submissions." :wrap (fn [rootf mobj] (let [mdata (meta rootf) origf (::original mdata rootf)]