Generating real-time WebRTC stats

754 views
Skip to first unread message

Bimalkant Lauhny

unread,
Mar 31, 2017, 4:01:53 PM3/31/17
to meetecho-janus
Hi,
I wanted to generate WebRTC stats for an application that uses Janus-gateway. How to make Janus-gateway generate these stats?

Lorenzo Miniero

unread,
Mar 31, 2017, 4:23:09 PM3/31/17
to meetecho-janus

Bimalkant Lauhny

unread,
Apr 1, 2017, 12:15:35 AM4/1/17
to meetecho-janus


Thanks.

Bimalkant Lauhny

unread,
Apr 1, 2017, 12:36:58 AM4/1/17
to meetecho-janus

Is it possible to generate these bridge metrics?

Lorenzo Miniero

unread,
Apr 2, 2017, 5:54:58 AM4/2/17
to meetecho-janus
Janus is not a conference bridge: that's what some plugins implement on top of it. You'll have to aggregate and correlate events from core and plugins to obtain something like that. I'm sure there's more info we need to generate (e.g., cpu/ram/threads), but those will come with time. As usual, pull requests are more than welcome.

L.

Bimalkant Lauhny

unread,
Jul 4, 2017, 8:52:57 AM7/4/17
to meetecho-janus
Hi Lorenzo.

Finally, I guess I have to start working on generating bridge metrics. Janus is quite a big project. Therefore, can you please point out where I should start in this regard??

Lorenzo Miniero

unread,
Jul 4, 2017, 12:07:17 PM7/4/17
to meetecho-janus
As I already told you in my previous response, Janus is NOT a conference bridge. While some plugins implement that behaviour, that's plugin specific, and you may even have two completely different conferencing plugins doing the same thing. So "bridge metrics" means absolutely nothing without context.

The best suggestion I can give right now is: play with the event handlers, and study the events you see generated at the moment, both by the core and by the plugins you're interested in; see if there's any correlation you can do to extract the "bridge metrics" you need; if you find anything missing, make proposals. The links I gave in my original response (especially slides and presentation video) are still relevant, if you didn't go through those already.

Lorenzo

Bimalkant Lauhny

unread,
Jul 6, 2017, 5:21:55 AM7/6/17
to meetecho-janus

Thanks for replying Lorenzo.

I did go through the links you provided. I'm writing my own event handler. In fact, I've created a simple event handler plugin. I created a file similar to janus_sampleevh.c
Let's call my file as *temp_evh.c".
Now I don't know how to make it work. I mean I cannot generate files like janus.eventhandler.sampleevh.cfg for temp_evh.c. Which configuration files do I need to change to use my event handler temp_evh.c ??

Lorenzo Miniero

unread,
Jul 6, 2017, 12:23:39 PM7/6/17
to meetecho-janus
Not sure what you're asking. If you're trying to implement a new event handler plugin, you should create a new project for that, with your own configuration file, that you install to an existing Janus instance your own way. Since it will be a shared object, you can just install it to the event handler lib folder, where the other plugin already is.

L.
Reply all
Reply to author
Forward
0 new messages