fix(deploy): remove premature Prometheus check from verify-deploy (BIT-22325) #24

Merged
spark merged 1 commits from task/BIT-21924-staging-smoke-seed into main 2026-05-14 19:41:43 +01:00
-17
View File
@@ -122,20 +122,3 @@ if (typeof d.gauges !== 'object' || d.gauges === null) {
}
console.log('OK metrics JSON timestamp=' + d.timestamp);
"
echo ""
echo "=== verify-deploy: /metrics (Prometheus exposition, BIT-3601) ==="
METRICS_URL="${BASE}/metrics"
_METRICS="$(curl -sfS --max-time 15 "${METRICS_URL}")" || {
echo "error: GET ${METRICS_URL} failed (same host:PORT as /health)" >&2
exit 1
}
if ! printf '%s\n' "${_METRICS}" | grep -qF '# HELP engagement_collector_runs_total'; then
echo "error: /metrics missing HELP engagement_collector_runs_total" >&2
exit 1
fi
if ! printf '%s\n' "${_METRICS}" | grep -qE '^engagement_collector_runs_total[[:space:]]+[0-9]+'; then
echo "error: /metrics missing engagement_collector_runs_total counter line" >&2
exit 1
fi
echo "OK /metrics (collector counters present)"