Skip to content

Commit

Permalink
feat: Add the application version to metrics. (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored May 18, 2023
1 parent 67617e3 commit 2bb0b07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jicofo/src/main/kotlin/org/jitsi/jicofo/JicofoServices.kt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class JicofoServices {
put("jigasi", xmppServices.jigasiStats)
put("threads", GlobalMetrics.threadsMetrics.get())
put("jingle", JingleStats.toJson())
put("version", CurrentVersionImpl.VERSION.toString())
healthChecker?.let {
val result = it.result
put("slow_health_check", it.totalSlowHealthChecks)
Expand Down Expand Up @@ -253,5 +254,10 @@ class JicofoServices {

@JvmStatic
var jicofoServicesSingleton: JicofoServices? by SynchronizedDelegate(null, jicofoServicesSingletonSyncRoot)

@JvmField
val versionMetric = JicofoMetricsContainer.instance.registerInfo(
"version", "Application version", CurrentVersionImpl.VERSION.toString()
)
}
}

0 comments on commit 2bb0b07

Please sign in to comment.