Add Prometheus TTS latency metrics#123
Merged
Merged
Conversation
Introduce Prometheus metrics for TTS latency and record them in the TTS code paths. Adds a new src/prometheus/__init__.py exporting a Histogram (om1_tts_latency) and Gauge (om1_tts_latency_last), instruments both audio_output_stream.py and audio_output_live_stream.py to measure request duration and update the metrics, and adds prometheus-client to pyproject.toml (lockfile updated). This provides visibility into TTS processing latency for monitoring.
Regenerated Poetry lockfile, updating the content-hash. No other dependency or source changes were made; this reflects a lockfile refresh (e.g., after running `poetry lock`).
Add urllib3 2.7.0 to pyproject.toml and update poetry.lock to reflect the upgrade. The lockfile bumps urllib3 from 2.6.3 to 2.7.0, updates its python-versions requirement to >=3.10, and refreshes package file hashes and the lockfile content-hash.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce Prometheus metrics for TTS latency and record them in the TTS code paths. Adds a new src/prometheus/init.py exporting a Histogram (om1_tts_latency) and Gauge (om1_tts_latency_last), instruments both audio_output_stream.py and audio_output_live_stream.py to measure request duration and update the metrics, and adds prometheus-client to pyproject.toml (lockfile updated). This provides visibility into TTS processing latency for monitoring.