From 7da69142a37eae51baa71bc92d571ad26491f690 Mon Sep 17 00:00:00 2001 From: mayankg2703 Date: Fri, 2 Feb 2018 06:46:34 +0000 Subject: [PATCH] health check of log elastic search Change-Id: Ia2876a084a7350a91b2b0fc268fa29038d906e70 Issue-ID: OOM-648 Signed-off-by: mayankg2703 --- .../consul-agent-config/log-elastic-search.json | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 kubernetes/config/docker/init/src/config/consul/consul-agent-config/log-elastic-search.json diff --git a/kubernetes/config/docker/init/src/config/consul/consul-agent-config/log-elastic-search.json b/kubernetes/config/docker/init/src/config/consul/consul-agent-config/log-elastic-search.json new file mode 100644 index 0000000000..7785502018 --- /dev/null +++ b/kubernetes/config/docker/init/src/config/consul/consul-agent-config/log-elastic-search.json @@ -0,0 +1,23 @@ +{ + "service": { + "name": "Health Check: Log - Elastic Search", + "checks": [ + { + "id": "log-elasticsearch-server", + "name": "Log Elastic Search Health Check", + "http": "http://elasticsearch.onap-log:9200/_cluster/health?pretty", + "method": "GET", + "tls_skip_verify": true, + "interval": "15s", + "timeout": "1s" + }, + { + "id": "log-elasticsearch-tcp", + "name": "Log Elastic Search TCP Health Check", + "tcp": "elasticsearchtcp.onap-log:9300", + "interval": "15s", + "timeout": "1s" + } + ] + } +} -- 2.16.6