jitsi-videobridge: videostreams aren't anymore

This commit is contained in:
Sebastian L 2021-03-26 11:03:34 +01:00 committed by Lars Kruse
parent 50cb1d8997
commit 8334867a72
1 changed files with 6 additions and 14 deletions

View File

@ -17,10 +17,14 @@ Jitsi-Videobridge instances
Requires enabled colibri statistics on jitsi-videobridge and an
installed jq, a command-line json processor.
You may specify the URL where to get the statistics
You may specify the URL where to get the statistics.
sites - URL of colibri stats
max_time - Timeout curl - defaults to 3 seconds
[jitsi_videobridge]
env.url http://127.0.0.1:8080/colibri/stats
env.max_time 3
... and you may disable the audiochannel when you don't use an
audio gateway.
@ -49,7 +53,7 @@ case $1 in
autoconf)
if [ -x /usr/bin/curl ]; then
if [ -x /usr/bin/jq ]; then
curl -s -f -m 2 -I "$COLIBRI_URL" | grep -iq "Content-Type: application/json" && echo "yes" && exit 0 || echo "no (invalid or empty response from colibri API ($COLIBRI_URL))" && exit 0
curl -s -f -m "${max_time:-3}" -I "$COLIBRI_URL" | grep -iq "Content-Type: application/json" && echo "yes" && exit 0 || echo "no (invalid or empty response from colibri API ($COLIBRI_URL))" && exit 0
else
echo "no (jq not found)" && exit 0
fi
@ -80,14 +84,6 @@ case $1 in
echo "jitsi_participants.info current number of participants"
echo "jitsi_participants.min 0"
echo "jitsi_participants.draw LINE2"
echo "multigraph jitsi_videobridge_streams"
echo "graph_title Current jitsi-videobridge videostreams"
echo "graph_info Current jitsi-videobridge videostreams"
echo "graph_vlabel current videostreams"
echo "graph_args --base 1000 -l 0"
echo "jitsi_videostreams.label videostreams"
echo "jitsi_videostreams.info current number of videostreams"
echo "jitsi_videostreams.min 0"
echo "multigraph jitsi_videobridge_conferences"
echo "graph_title Total of jitsi-videobridge conferences"
echo "graph_info Total of jitsi-videobridge conferences"
@ -123,10 +119,6 @@ for KEY in videochannels audiochannels conferences participants; do
echo "jitsi_${KEY}.value $VALUE"
done
echo "multigraph jitsi_videobridge_streams"
VALUE=$(echo "$JSONSTATS" | jq -r ".videostreams // \"U\"")
echo "jitsi_videostreams.value $VALUE"
echo "multigraph jitsi_videobridge_conferences"
for KEY in total_conferences_created total_failed_conferences total_partially_failed_conferences total_conferences_completed; do
VALUE=$(echo "$JSONSTATS" | jq -r ".$KEY // \"U\"")