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

Change-Id: I5f8f687eecead27accb4401f9aa00aaca63ff6df
2018-02-19 13:33:08 +00:00

15 lines
326 B
Bash

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='gnocchi-statsd'
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