0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-02 20:48:06 +00:00

fix: use NETDATA_LISTENER_PORT in docker healtcheck ()

This commit is contained in:
Ilya Mashchenko 2022-04-19 11:30:43 +03:00 committed by GitHub
parent 0fe9363785
commit 9d13da121c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,8 @@
if [ -z "${NETDATA_HEALTHCHECK_TARGET}" ] ; then
# If users didn't request something else, query `/api/v1/info`.
NETDATA_HEALTHCHECK_TARGET="http://localhost:19999/api/v1/info"
PORT=${NETDATA_LISTENER_PORT:-19999}
NETDATA_HEALTHCHECK_TARGET="http://localhost:${PORT}/api/v1/info"
fi
case "${NETDATA_HEALTHCHECK_TARGET}" in