[jitsi_videobridge] Fix deprecated videochannels and audiochannels

This commit is contained in:
Sebastian L. 2024-05-11 13:03:58 +02:00
parent e9f84a12e1
commit f4c27a61c3
1 changed files with 3 additions and 1 deletions

View File

@ -115,7 +115,9 @@ esac
JSONSTATS=$(curl -s -f -m "$max_time" "$COLIBRI_URL")
echo "multigraph jitsi_videobridge_sessions"
for KEY in videochannels audiochannels conferences participants; do
echo "jitsi_videochannels.value $(echo "$JSONSTATS" | jq -r ".endpoints_sending_video // \"U\"")"
echo "jitsi_audiochannels.value $(echo "$JSONSTATS" | jq -r ".endpoints_sending_audio // \"U\"")"
for KEY in conferences participants; do
VALUE=$(echo "$JSONSTATS" | jq -r ".$KEY // \"U\"")
echo "jitsi_${KEY}.value $VALUE"
done