Search code examples
javascriptjitsijitsi-meet

Gathering stats from Jitsi


I have set up a jitsi server from packages and now I'm trying to log some connection stats to a database. For example, PUT some little blobs of data about significant bitrate changes.

I feel familiar with JavaScript and somewhat familiar with WebRTC, but I don't understand the jitsi codebase that well. And it seems that the quick installation only gave me the minimized JavaScript files.

Where could I get the WebRTC stats of a jitsi call and where am I supposed to hook up my logging calls? What files and how should I edit?

For future readers: I have described how I accomplished this on the jitsi forums: https://community.jitsi.org/t/how-to-add-a-listener-for-conference-joined/42241/2


Solution

  • I'm not sure if you're talking about client-side stats or server-side stats, but we have some support for collecting both.

    On the client side, we have some logic for gathering stats but it's for an integration with a service called Callstats.io. You could look at this file and the code which uses it to see if you could adapt something to your use case.

    On the bridge we also gather a bunch of stats. It's available via REST, at serverIp:8080/colibri/debug (though the 8080 is configurable). You could poke around that a bit by looking at this file.