Replies: 1 comment
-
Hello David, this is an interesting question. I'm guessing what you want is a way to know how many listener are currently listening the HLS stream. To achieve this in HLS you can process nginx logs files in real time and aggregate them into prometheus metrics. This can be done either by
Vector pseudo-code
In this example you could use the metric Another approach would be to code this into nginx with lua or C code. Or use another reverse proxy that can expose native prometheus metrics like this. Keep in mind, theses stats will always be a estimate as different HLS client can have different behaviour (burst or linear download for example). Maxime |
Beta Was this translation helpful? Give feedback.
-
Hello,
Very nice docker combo indeed! :)
One question:
Is there a way to also see user connection statistics in Grafana dashboards?
I see the logs from Nginx are already there...
Like - number of concurent users, maybe even seperated for each hls quality + all combined?
Thanks & br, David
Beta Was this translation helpful? Give feedback.
All reactions