summaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-main/src/main/scripts/healthcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sources/hv-collector-main/src/main/scripts/healthcheck.sh')
-rwxr-xr-xsources/hv-collector-main/src/main/scripts/healthcheck.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/hv-collector-main/src/main/scripts/healthcheck.sh b/sources/hv-collector-main/src/main/scripts/healthcheck.sh
new file mode 100755
index 00000000..db62eece
--- /dev/null
+++ b/sources/hv-collector-main/src/main/scripts/healthcheck.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+curl -f http://localhost:${VESHV_HEALTH_CHECK_API_PORT:-6060}/health/ready || exit 1
+nc -vz localhost ${VESHV_LISTEN_PORT:-6061} || exit 2