Configure stats with Grafana

Configuration in grafana:

Configuration in /etc/telegraf/telegraf.d/jitsi.conf

[[inputs.http]]
name_override = “jitsi_stats”
urls = [
http://localhost:8080/colibri/stats
]

data_format = “json”

CURL to localhost:8080/colibri/stats

~# curl localhost:8080/colibri/stats
{“inactive_endpoints”:0,“inactive_conferences”:0,“total_ice_succeeded_relayed”:0,“total_loss_degraded_participant_seconds”:53,“bit_rate_download”:0,“muc_clients_connected”:1,“total_participants”:14,“total_packets_received”:1127281,“rtt_aggregate”:0.0,“packet_rate_upload”:0,“p2p_conferences”:0,“total_loss_limited_participant_seconds”:151,“octo_send_bitrate”:0,“total_dominant_speaker_changes”:82,“receive_only_endpoints”:0,“total_colibri_web_socket_messages_received”:0,“octo_receive_bitrate”:0,“loss_rate_upload”:0.0,“version”:“2.1.273-g072dd44b”,“total_ice_succeeded”:14,“total_colibri_web_socket_messages_sent”:0,“total_bytes_sent_octo”:0,“total_data_channel_messages_received”:6389,“loss_rate_download”:0.0,“total_conference_seconds”:1801,“bit_rate_upload”:0,“total_conferences_completed”:3,“octo_conferences”:0,“num_eps_no_msg_transport_after_delay”:2,“endpoints_sending_video”:0,“packet_rate_download”:0,“muc_clients_configured”:1,“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,“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],“videostreams”:0,“jitter_aggregate”:0.0,“total_ice_succeeded_tcp”:0,“octo_endpoints”:0,“current_timestamp”:“2020-08-19 16:33:14.544”,“total_packets_dropped_octo”:0,“conferences”:0,“participants”:0,“largest_conference”:0,“total_packets_sent”:1467528,“total_data_channel_messages_sent”:7981,“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”:3,“total_ice_failed”:0,“threads”:40,“videochannels”:0,“total_packets_received_octo”:0,“graceful_shutdown”:false,“octo_receive_packet_rate”:0,“total_bytes_received”:495644224,“rtp_loss”:0.0,“total_loss_controlled_participant_seconds”:7227,“total_partially_failed_conferences”:0,“endpoints_sending_audio”:0,“dtls_failed_endpoints”:0,“total_bytes_sent”:648779020,“mucs_configured”:1,“total_failed_conferences”:0,“mucs_joined”:1}

Plugin: https://grafana.com/grafana/dashboards/11969

And the problem in grafana :frowning_face:

What can I have wrongly configured?

Is that your full telegraf conf file? If so you are missing the output section which should be pointed to your to your influxdb, similar to below.
[[outputs.influxdb]]
urls = [“http://influxdbhost:8086”]
database = “jitsi”
timeout = “0s”

1 Like

I update de the file

/etc/telegraf/telegraf.d/jitsi.conf

to

[[inputs.http]]
name_override = “jitsi_stats”
urls = [
http://localhost:8080/colibri/stats
]

data_format = “json”

[[outputs.influxdb]]
urls = [“http://localhost:8086”]
database = “jitsi”
timeout = “0s”

And update the database in Datasource>InfluxDB to jitsi

Now work fine!