Collecting webrtc stats

I want to collect webrtc stats after every 10 sec.Could you please suggest me how to go through this challenge.

I haven’t tried it, but it looks like it is possible to enable integration with rtcstats:

I’m assuming this will enabled the rtcstats client, and you will have to host your own rtcstats server to gather the stats.