Merge pull request #1437 from brknkfr/jitsi_channel_fix

[jitsi_videobridge] Fix deprecated videochannels and audiochannels
This commit is contained in:
Kenyon Ralph 2024-05-11 13:41:32 -07:00 committed by GitHub
commit 63129fe4ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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