tripleo-common/healthcheck/gnocchi-metricd
Martin Mágr 56e05efc56 Add healthcheck script for gnocchi-metricd
This patch adds script for docker health check of gnocchi-metricd service.
The script checks existance of service with opened connections to Redis.

Change-Id: Icbf450a797f95fb5966005295bd33975077e4aa5
2018-02-19 13:32:56 +00:00

15 lines
327 B
Bash

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='gnocchi-metricd'
args="${@:-6379}"
if healthcheck_port $process $args; then
exit 0
else
ports=${args// /,}
echo "There is no $process process with opened Redis ports ($ports) running in the container"
exit 1
fi