Skip to content

Add Prometheus TTS latency metrics#123

Merged
openminddev merged 3 commits into
mainfrom
add-prometheus
May 13, 2026
Merged

Add Prometheus TTS latency metrics#123
openminddev merged 3 commits into
mainfrom
add-prometheus

Conversation

@openminddev
Copy link
Copy Markdown
Contributor

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.

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.
@openminddev openminddev merged commit d88b68b into main May 13, 2026
7 checks passed
@openminddev openminddev deleted the add-prometheus branch May 13, 2026 18:01
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

Successfully merging this pull request may close these issues.

1 participant