From 1f45347eaf8b0b04fb581a9c41927a5c97457d7a Mon Sep 17 00:00:00 2001 From: Marco LOPES Date: Mon, 6 Sep 2021 16:11:51 +0200 Subject: [PATCH] add total participants metrics --- main.go | 3 +++ main_test.go | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/main.go b/main.go index a3a90bc..07f9324 100644 --- a/main.go +++ b/main.go @@ -104,6 +104,9 @@ jitsi_p2p_conferences {{.P2PConferences}} # HELP jitsi_participants The current number of participants. # TYPE jitsi_participants gauge jitsi_participants {{.Participants}} +# HELP jitsi_total_participants Total participants since running. +# TYPE jitsi_total_participants gauge +jitsi_total_participants {{.TotalParticipants}} # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. # TYPE jitsi_videostreams gauge jitsi_videostreams {{.Videostreams}} diff --git a/main_test.go b/main_test.go index 0199b9e..6935293 100644 --- a/main_test.go +++ b/main_test.go @@ -68,6 +68,9 @@ jitsi_p2p_conferences 1 # HELP jitsi_participants The current number of participants. # TYPE jitsi_participants gauge jitsi_participants 4 +# HELP jitsi_total_participants Total participants since running. +# TYPE jitsi_total_participants gauge +jitsi_total_participants 18 # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. # TYPE jitsi_videostreams gauge jitsi_videostreams 0 @@ -279,6 +282,9 @@ jitsi_p2p_conferences 0 # HELP jitsi_participants The current number of participants. # TYPE jitsi_participants gauge jitsi_participants 0 +# HELP jitsi_total_participants Total participants since running. +# TYPE jitsi_total_participants gauge +jitsi_total_participants 2 # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. # TYPE jitsi_videostreams gauge jitsi_videostreams 0