jitsi / docker-jitsi-meet

Jitsi Meet on Docker
https://hub.docker.com/u/jitsi/
Apache License 2.0
3.04k stars 1.35k forks source link

Empty statistics #1285

Open ykorzikowski opened 2 years ago

ykorzikowski commented 2 years ago

After enabeling statistics in .env

COLIBRI_REST_ENABLED=1

in sip-communicator.properties

echo "org.jitsi.videobridge.ENABLE_STATISTICS=true" >> .jitsi-meet-cfg/jigasi/sip-communicator.properties
echo "org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri" >> .jitsi-meet-cfg/jigasi/sip-communicator.properties
echo "org.jitsi.videobridge.STATISTICS_INTERVAL=5000" >> .jitsi-meet-cfg/jigasi/sip-communicator.properties
cp .jitsi-meet-cfg/jigasi/sip-communicator.properties .jitsi-meet-cfg/jvb/sip-communicator.properties

BUT

root@jitsi:jitsi # curl http://10.10.10.106:8080/colibri/stats
{"inactive_endpoints":0,"inactive_conferences":0,"total_ice_succeeded_relayed":0,"colibri2":true,"total_loss_degraded_participant_seconds":0,"bit_rate_download":0.0,"local_active_endpoints":0,"muc_clients_connected":1,"total_participants":0,"total_packets_received":0,"rtt_aggregate":0.0,"packet_rate_upload":0,"p2p_conferences":0,"total_aimd_bwe_expirations":0,"total_loss_limited_participant_seconds":0,"preemptive_kfr_suppressed":0,"local_endpoints":0,"octo_send_bitrate":0.0,"total_dominant_speaker_changes":0,"endpoints_with_spurious_remb":0,"receive_only_endpoints":0,"total_colibri_web_socket_messages_received":0,"octo_receive_bitrate":0.0,"version":"2.1.681-g3544ed05","total_ice_succeeded":0,"total_colibri_web_socket_messages_sent":0,"total_bytes_sent_octo":0,"total_data_channel_messages_received":0,"total_conference_seconds":0,"num_eps_oversending":0,"bit_rate_upload":0.0,"total_conferences_completed":0,"octo_conferences":0,"num_eps_no_msg_transport_after_delay":0,"endpoints_sending_video":0,"packet_rate_download":0,"muc_clients_configured":1,"outgoing_loss":0.0,"overall_loss":0.0,"conference_sizes":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"total_packets_sent_octo":0,"total_layering_changes_received":0,"total_relays":0,"conferences_by_video_senders":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"endpoints_with_high_outgoing_loss":0,"stress_level":0.0,"jitter_aggregate":0.0,"drain":false,"total_video_stream_milliseconds_received":0,"total_ice_succeeded_tcp":0,"octo_endpoints":0,"current_timestamp":"2022-05-16 08:16:04.776","total_packets_dropped_octo":0,"num_relays_no_msg_transport_after_delay":0,"conferences":0,"participants":0,"total_keyframes_received":0,"average_participant_stress":0.01,"largest_conference":0,"total_packets_sent":0,"endpoints":0,"total_data_channel_messages_sent":0,"incoming_loss":0.0,"total_bytes_received_octo":0,"octo_send_packet_rate":0,"conferences_by_audio_senders":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"total_conferences_created":0,"total_ice_failed":0,"preemptive_kfr_sent":0,"threads":36,"videochannels":0,"total_packets_received_octo":0,"graceful_shutdown":false,"octo_receive_packet_rate":0,"total_bytes_received":0,"total_loss_controlled_participant_seconds":0,"total_partially_failed_conferences":0,"endpoints_sending_audio":0,"dtls_failed_endpoints":0,"healthy":true,"total_bytes_sent":0,"mucs_configured":1,"total_failed_conferences":0,"mucs_joined":1}

The statistics is always null value (except threads).

saghul commented 2 years ago

echo "org.jitsi.videobridge.ENABLE_STATISTICS=true" >> .jitsi-meet-cfg/jigasi/sip-communicator.properties echo "org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri" >> .jitsi-meet-cfg/jigasi/sip-communicator.properties echo "org.jitsi.videobridge.STATISTICS_INTERVAL=5000" >> .jitsi-meet-cfg/jigasi/sip-communicator.properties cp .jitsi-meet-cfg/jigasi/sip-communicator.properties .jitsi-meet-cfg/jvb/sip-communicator.properties

I don't think this will work because we re-genrate config files on start.

ykorzikowski commented 2 years ago

Is there another posibility to add custom properties which are not available as ENV?

saghul commented 2 years ago

Yep: https://github.com/jitsi/docker-jitsi-meet/blob/5ff2735f18fbe0d57a0949624f50ec68e91ecfde/jvb/rootfs/etc/cont-init.d/10-config#L24

ykorzikowski commented 2 years ago

I changed my config like this, but its still zero-values in statistics

saghul commented 2 years ago

Ping @bgrozev any ideas?