Skip to content

Commit 278e294

Browse files
committed
Add server version to metrics
1 parent 9d6eda5 commit 278e294

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/eca/metrics.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
(:require
33
[clojure.string :as string]
44
[eca.logger :as logger]
5-
[eca.shared :as shared]))
5+
[eca.shared :as shared]
6+
[eca.config :as config]))
67

78
(defprotocol IMetrics
89
(start! [this])
@@ -17,6 +18,7 @@
1718
{:hostname (shared/hostname)
1819
:client-name (:name (:client-info @db*))
1920
:client-version (:version (:client-info @db*))
21+
:server-version (config/eca-version)
2022
:os-name (System/getProperty "os.name")
2123
:os-version (System/getProperty "os.version")
2224
:os-arch (System/getProperty "os.arch")

0 commit comments

Comments
 (0)