From d77b45d4acc02f46618a9b72a3c9b874ce90df9c Mon Sep 17 00:00:00 2001 From: ycz008 Date: Thu, 29 Feb 2024 14:33:59 +0800 Subject: [PATCH] add logstash alert field [stack_trace] --- dev-upgrade/elastic/logstash-alert.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-upgrade/elastic/logstash-alert.yaml b/dev-upgrade/elastic/logstash-alert.yaml index 249b0ee..326a0e3 100644 --- a/dev-upgrade/elastic/logstash-alert.yaml +++ b/dev-upgrade/elastic/logstash-alert.yaml @@ -79,6 +79,9 @@ data: } } } + logstash.yml: |- + http.host: "0.0.0.0" + xpack.monitoring.elasticsearch.hosts: [ "http://elastic:9200" ] --- apiVersion: apps/v1 @@ -117,6 +120,10 @@ spec: mountPath: /usr/share/logstash/pipeline/logstash.conf subPath: logstash.conf readOnly: true + - name: config + mountPath: /usr/share/logstash/config/logstash.yml + subPath: logstash.yml + readOnly: true volumes: - name: config configMap: @@ -124,6 +131,8 @@ spec: items: - key: logstash.conf path: logstash.conf + - key: logstash.yml + path: logstash.yml --- apiVersion: v1