-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
call the sce phone number at 1 (866) 975-0444 and the menu should mention option 3 for leaderboard information.
to get the audio to play, the phone system talks to the below endpoint
Line 136 in 5063915
| @app.get("/phone") |
generating the script takes some time, and right now we dont have a way to see how much time it takes.
game plan, adding metric
- follow along, learn python prometheus metrics https://www.youtube.com/watch?v=x3bSuGH8R28
- update the below class to include a new metric like
wav_file_generation_seconds
Line 4 in 5063915
class Metrics(enum.Enum): - inside the phone endpoint, when we have to generate a wav file, view the below documentation on how to time the function
https://prometheus.github.io/client_python/
game plan, testing metric
- add said metric, visit http://localhost:8000/phone , does anything load?
- if the above is true, does http://localhost:8000/metrics show
wav_file_generation_seconds? use ctrl/cmd + f to find it - open a pr to add this new metric with a screenshot of the above step, showing the metric
game plan, monitoring
- learn grafanalib, should be easy https://www.youtube.com/watch?v=Nry9-ltE87o
- clone https://github.com/SCE-Development/monitoring , lets add a new panel in sign2 to track this, with unit
SECONDS - open a pr for this change
Metadata
Metadata
Assignees
Labels
No labels