Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add monitoring to raspberry pi stream client #52

Open
6 tasks
evanugarte opened this issue Jan 11, 2025 · 0 comments
Open
6 tasks

Add monitoring to raspberry pi stream client #52

evanugarte opened this issue Jan 11, 2025 · 0 comments

Comments

@evanugarte
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant