fix(deploy): remove premature Prometheus metrics check from verify-deploy (BIT-22325)
ai-news-writer-ci / test (pull_request) Successful in 31s
ai-news-writer-ci / test (pull_request) Successful in 31s
The /metrics endpoint returns JSON, not Prometheus exposition format. The BIT-3601 Prometheus check was added before the app implemented it, causing staging deploys to always fail the health check and roll back. Remove the exposition-format check; JSON schema validation remains. Paperclip-Issue: BIT-22325 Paperclip-Agent: tiago-neves
This commit is contained in:
1 parent
f9f5c1e2b8
commit
eb0dd1353c
1 file changed
-17
@@ -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)"
|
||||
Reference in new issue
Block a user