Jicofo no longer logs "conference count"

Hello,
I have noticed that since jicofo no longer connects to prosody as a component, I no longer see logs like:

Jicofo 2021-07-14 13:55:47.221 INFO: [28] org.jitsi.jicofo.FocusManager.log() Disposed conference for room: 907c5477@conference.jitsi.host conference count: 94

I find that “conference count: 94” is great to extract to a metric, as it shows the number of active conferences over time.

Is there a way to get that log back, or another way to log or query the count of active conferences?

@Boris_Grozev wdyt?

@cwarren you better use the REST Api to extract stats and push them to some backend for stats every minute or so …
That API will not change where logs can change every now and then

2 Likes

Look for Stopped.

apt-get install curl jq

curl -s http://127.0.0.1:8888/stats | jq '.conferences'

Thanks everyone :slightly_smiling_face: