-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
We have monitoring for the streaming server, but we don't have any insight on if the consumer of the stream is actually receiving any data.
It would be great to know if the tv in the room is receiving a video, without having to physically be in the room to look.
game plan
- follow along https://www.youtube.com/watch?v=blcYHauzyVA
- make sure you can consume the stream with a raspberry pi, or your computer that runs the python script, around 7:54 in the video
- once step 2 works, lets change the script to include a thread that runs in parallel with the original code. for now, run the thread in a infinite while loop, that prints
"hello!"every 5 seconds - we then need to look around in https://github.com/oaubert/python-vlc/blob/master/generated/2.2, for a way to know when vlc is receiving a stream. maybe there is a class variable or method we can call on and print within our for loop?
- follow along https://www.youtube.com/watch?v=x3bSuGH8R28
- work with evan, add prometheus to the script, emit a metric of 1 when a stream is received, or 0 when there is no data.
Metadata
Metadata
Assignees
Labels
No labels