Add healthcheck script for Gnocchi API

This patch adds script for docker health check of Gnocchi API service.
The script checks API service using curl.

Change-Id: I010e3e4cc7eca59c5c5b8739e2ce145d4dc8a3f1
This commit is contained in:
Martin Mágr 2018-01-26 15:18:29 +01:00
parent 1550e16d6e
commit 57747becde
1 changed files with 6 additions and 0 deletions

6
healthcheck/gnocchi-api Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-gnocchi_wsgi.conf)
healthcheck_curl ${check_url}