我对WebRTC世界还有点陌生,并试图找到我的出路。我成功地设置了CoTURN,并且能够使用CoTURN路由防火墙后面的调用。现在,我想知道是否有可能以某种方式检查和可视化CoTURN的使用统计数据?我想知道在任何时候有多少用户在使用服务器,带宽和CPU使用率等等?我看到了关于如何在官方文档中优化带宽和CPU使用的细节,但是我还没有找到任何关于实际监控使用的信息。任何帮助都将不胜感激。
发布于 2021-03-10 17:14:08
如果您想要监视标准的使用统计数据,如CPU使用情况、负载、带宽等,那么您可以将重点放在您的基础设施可用的数据上。例如,在AWS中,您可以使用CloudWatch,或者在一般的Linux部署中,用Prometheus导出使用状态,并将它们与Grafana一起显示。
对于co转折/转向特定的统计数据,co转折允许在Redis中存储一些度量;它在https://github.com/coturn/coturn/blob/master/turndb/schema.stats.redis中描述。
Total traffic information is also reported when the allocation is deleted. The keys are
"turn/user/<username>/allocation/<id>/total_traffic" or "turn/user/<username>/allocation/<id>/total_traffic/peer".
Applications interested in the total amount of traffic per allocation can subscribe to these events as:
psubscribe turn/realm/*/user/*/allocation/*/total_traffic
psubscribe turn/realm/*/user/*/allocation/*/total_traffic/peerhttps://stackoverflow.com/questions/63701821
复制相似问题