The data is written with tag event set to statsrun. For each application + stream we write
nclients: number of active clients (excludes publishers)
publishers: number of publishers connected
bytes_out: bytes sent by the stream
bytes_in: bytes received by the stream
dropped_frames: the total number of dropped frames reported by players
Although not relevant for my usage, it's worth noting that there is currently some minor potential for mischief here.
Because idle_streams is on, the system allows players to connect to non-existent streams. This is enabled so that players tolerate the publisher disconnecting and reconnecting during episode switch-over.
But, it also means that malicious players can connect to a number of streams, causing associated stats to be written into InfluxDB, increasing cardinality in the process.
Activity
05-Aug-24 20:51
assigned to @btasker
06-Aug-24 18:00
mentioned in commit github-mirror/Home-TV-Station@4f02962e3cb29affd1d2539d1298275a08e97b1b
Message
feat: add periodic stats collection (project-management-only/home-tv-station#15)
07-Aug-24 07:16
This is done.
The data is written with tag
event
set tostatsrun
. For each application + stream we writeAlthough not relevant for my usage, it's worth noting that there is currently some minor potential for mischief here.
Because
idle_streams
ison
, the system allows players to connect to non-existent streams. This is enabled so that players tolerate the publisher disconnecting and reconnecting during episode switch-over.But, it also means that malicious players can connect to a number of streams, causing associated stats to be written into InfluxDB, increasing cardinality in the process.