8a58a48c8a
This patch add health check script for fluentd. Service health is checked using curl on monitoring REST API of the service. Change-Id: I9d72704a7b7dbcbe40289007d78cc29f814fd88c Depends-On: Ifd31f7a636d91040d2b12314091c834dbec6b2a2
8 lines
354 B
Bash
Executable File
8 lines
354 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
bind_host=$(cat /etc/fluentd/config.d/110-monitoring-agent.conf | grep bind | awk '{print $2}')
|
|
bind_port=$(cat /etc/fluentd/config.d/110-monitoring-agent.conf | grep port | awk '{print $2}')
|
|
healthcheck_curl http://${bind_host}:${bind_port}/api/config.json
|