Source: immutable lab5 snapshot f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071; forward the allowed diff from 64d5c67. Carry SQLAlchemy, Alembic, reliability fixes, versioned jobs, infrastructure and student tests without changing protected coursework files.
Validation: make check, validate, lint; 515 student tests passed with one Linux-only skip; public smoke with telemetry enabled and repeat migration passed. Stop the owned stack and retain volumes. Preserve the existing OTel work in progress; grade implementation remains a separate phase.
12 lines
343 B
Bash
Executable File
12 lines
343 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
out=${1:?usage: lb-stats.sh <csv>}
|
|
cd "$(dirname "$0")/.."
|
|
url=${LB_STATS_URL:-http://$(docker compose port lb 8404)/stats;csv}
|
|
curl -fsS "$url" | sed -n '1s/^# /ts,/p' > "$out"
|
|
while :; do
|
|
ts=$(date +%s)
|
|
curl -fsS "$url" | grep -E '^(public|api),' | sed "s/^/$ts,/" >> "$out" || true
|
|
sleep "${INTERVAL:-1}"
|
|
done
|