Add healthcheck script for Aodh API

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

Change-Id: I2e55b99a3971acf3df722415a50a4f8966e2cd25
This commit is contained in:
Martin Mágr 2018-02-09 15:26:20 +01:00
parent 1550e16d6e
commit 8ea2da3716
1 changed files with 6 additions and 0 deletions

6
healthcheck/aodh-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-aodh_wsgi.conf)
healthcheck_curl ${check_url}