Merge pull request 'fix(deploy): remove premature Prometheus check from verify-deploy (BIT-22325)' (#24) from task/BIT-21924-staging-smoke-seed into main
ai-news-writer-ci / test (push) Successful in 30s

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

Paperclip-Issue: BIT-22325
Paperclip-Agent: tiago-neves
This commit was merged in pull request #24.
This commit is contained in:
spark committed 2026-05-14 19:41:43 +01:00
commit 4e6875639b
1 file changed
-17
-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)"