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

Commit d3f983b

Browse files
author
Chris Wiechmann
committed
[skip ci] Handling Self-Monitoring default
1 parent 5962d29 commit d3f983b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

filebeat/filebeat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ output.logstash:
8282
loadbalance: true
8383

8484
monitoring:
85-
enabled: ${SELF_MONITORING_ENABLED:true}
85+
enabled: ${SELF_MONITORING_ENABLED}
8686
# Get the Cluster-ID (cluster_uuid) with this simple query: https://elasticsearch1:9200/
8787
# This links this filebeat instance to the Cluster with the given ID to enable monitoring
8888
# It's also required to setup the beats_system user

filebeat/scripts/filebeat-custom-entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ echo "Adjusted given Logstash hosts: ${hostsForFilebeat} for Filebeat"
1919

2020
export LOGSTASH_HOSTS=$hostsForFilebeat
2121

22+
if [ -z "${SELF_MONITORING_ENABLED}" ];then
23+
echo "Parameter: SELF_MONITORING_ENABLED not set, default to true.";
24+
export MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED=true
25+
fi
26+
2227
# Finally call the original Docker-Entrypoint
2328
/usr/local/bin/docker-entrypoint "$@"

0 commit comments

Comments
 (0)