Launch offer — 40% off every tier for a limited time. Prices shown are already reduced.
Stacks / Code / Quarry / verify.sh
verify.sh 28 lines · 775 B · bash
#!/usr/bin/env bash
set -uo pipefail
pass=0; fail=0

check() {
  local n="$1" u="$2" c
  c=$(curl -s -o /dev/null -w '%{http_code}' --max-time 8 "$u" || echo 000)
  if [ "$c" != "000" ] && [ "$c" -lt 500 ]; then
    printf '  %-12s OK   (%s)\n' "$n" "$c"; pass=$((pass+1))
  else
    printf '  %-12s FAIL (%s)\n' "$n" "$c"; fail=$((fail+1))
  fi
}

echo 'Checking services...'
check airflow      "http://localhost:8080/"
check dagster      "http://localhost:3000/"
check prefect      "http://localhost:4200/"
check kafka        "http://localhost:9092/"
check debezium     "http://localhost:8083/"
check clickhouse   "http://localhost:8123/"
check trino        "http://localhost:8081/"
check superset     "http://localhost:8088/"

echo
echo "passed=$pass failed=$fail"
exit 0