Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit c6d02f8

Browse files
author
Chris Wiechmann
committed
[skip ci] Using different Kibana default host
1 parent 48aa795 commit c6d02f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

env-sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ ELASTIC_VERSION=7.10.0
408408
# parameter: KIBANA_HOST. For authentication Metricbeat uses the user:
409409
# METRICBEAT_USERNAME & METRICBEAT_PASSWORD.
410410
# Used-By: Metricbeat
411-
# Defaults to first Elasticsearch host
411+
# Defaults to https://kibana:5601
412412
#KIBANA_HOST=https://my.kibanahost.net:5601
413413

414414
################################################################################################

metricbeat/scripts/metricbeat-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ if [ -z "${ELASTICSEARCH_HOSTS}" ];then
8686
fi
8787

8888
if [ -z "${KIBANA_HOST}" ];then
89-
echo "Parameter KIBANA_HOST not given, using first Elasticsearch host";
90-
kibanaHost=`echo ${ELASTICSEARCH_HOSTS} | awk '{split($0, va, /,/); first=va[1]; split(first, parts, /:/); printf("'https:%s:5601'", parts[2]) }'`
89+
echo "Parameter KIBANA_HOST not given, using https://kibana:5601 as default";
90+
kibanaHost="https://kibana:5601" # This is the default as given by Docker-Compose
9191
export KIBANA_HOST=$kibanaHost
9292
echo "KIBANA_HOST set to $kibanaHost"
9393
fi

0 commit comments

Comments
 (0)