Skip to content

Commit 3082ac0

Browse files
authored
Centralized metrics helper (#368)
1 parent 56e5c7c commit 3082ac0

File tree

5 files changed

+1332
-0
lines changed

5 files changed

+1332
-0
lines changed

.github/workflows/tests-full.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,3 +320,24 @@ jobs:
320320
echo "Waiting for llm_proxy.py to finish..."
321321
sleep 5
322322
done
323+
324+
- name: MultiMetrics backend example
325+
run: |
326+
set -euo pipefail
327+
source .venv/bin/activate
328+
cd examples/minimal
329+
python write_metrics.py --duration 8 --prom-port 9105 --prom-host 0.0.0.0 2>&1 | tee metrics.log &
330+
pid=$!
331+
332+
for attempt in $(seq 1 20); do
333+
if curl -sSf http://localhost:9105/metrics | grep -q minimal_requests_total; then
334+
echo "Metrics endpoint responding"
335+
wait $pid
336+
cat metrics.log
337+
exit 0
338+
fi
339+
sleep 1
340+
done
341+
342+
echo "Metrics endpoint did not respond"
343+
exit 1

0 commit comments

Comments
 (0)