diff --git a/kustomize/base/files/exporter.cfg b/kustomize/base/files/exporter.cfg index 9c138e4..a75121b 100644 --- a/kustomize/base/files/exporter.cfg +++ b/kustomize/base/files/exporter.cfg @@ -1,3 +1,6 @@ +[DEFAULT] +QueryIndices = "" + [query_authlog_root_login] # The DEFAULT settings can be overridden. QueryIntervalSecs = 60 diff --git a/kustomize/base/resources/deployment.yaml b/kustomize/base/resources/deployment.yaml index 70636a4..bdeafcc 100644 --- a/kustomize/base/resources/deployment.yaml +++ b/kustomize/base/resources/deployment.yaml @@ -18,11 +18,19 @@ spec: spec: containers: - args: - - --es-cluster=https://dev-elastic-stack-elastic-01:9200,https://dev-elastic-stack-elastic-02:9200,https://dev-elastic-stack-elastic-03:9200 - --port=9206 - --config-file=/mnt/config/exporter.cfg - --ca-certs=/mnt/certs/es_ca.crt + - --cluster-health-disable + - --nodes-stats-disable + - --indices-stats-disable + - --log-level=DEBUG env: + - name: ES_EXPORTER_ES_CLUSTER + valueFrom: + configMapKeyRef: + name: prometheus-es-exporter-escluster + key: es_cluster - name: ES_EXPORTER_BASIC_USER valueFrom: secretKeyRef: diff --git a/kustomize/dev/kustomization.yaml b/kustomize/dev/kustomization.yaml index dd02973..14c966b 100644 --- a/kustomize/dev/kustomization.yaml +++ b/kustomize/dev/kustomization.yaml @@ -11,6 +11,6 @@ configMapGenerator: - name: prometheus-es-exporter-cacert files: - files/es_ca.crt - -patchesStrategicMerge: -- patches.yaml +- name: prometheus-es-exporter-escluster + literals: + - es_cluster=https://dev-elastic-stack-elastic-01:9200,https://dev-elastic-stack-elastic-02:9200,https://dev-elastic-stack-elastic-03:9200 diff --git a/kustomize/prodnso/kustomization.yaml b/kustomize/prodnso/kustomization.yaml index dd02973..a9f303b 100644 --- a/kustomize/prodnso/kustomization.yaml +++ b/kustomize/prodnso/kustomization.yaml @@ -11,6 +11,6 @@ configMapGenerator: - name: prometheus-es-exporter-cacert files: - files/es_ca.crt - -patchesStrategicMerge: -- patches.yaml +- name: prometheus-es-exporter-escluster + literals: + - es_cluster=https://prodnso-elastic-stack-elastic-01:9200,https://prodnso-elastic-stack-elastic-02:9200,https://prodnso-elastic-stack-elastic-03:9200 diff --git a/kustomize/prodwork01/kustomization.yaml b/kustomize/prodwork01/kustomization.yaml index dd02973..a9f303b 100644 --- a/kustomize/prodwork01/kustomization.yaml +++ b/kustomize/prodwork01/kustomization.yaml @@ -11,6 +11,6 @@ configMapGenerator: - name: prometheus-es-exporter-cacert files: - files/es_ca.crt - -patchesStrategicMerge: -- patches.yaml +- name: prometheus-es-exporter-escluster + literals: + - es_cluster=https://prodnso-elastic-stack-elastic-01:9200,https://prodnso-elastic-stack-elastic-02:9200,https://prodnso-elastic-stack-elastic-03:9200 diff --git a/kustomize/qa/kustomization.yaml b/kustomize/qa/kustomization.yaml index dd02973..6cdc85d 100644 --- a/kustomize/qa/kustomization.yaml +++ b/kustomize/qa/kustomization.yaml @@ -11,6 +11,6 @@ configMapGenerator: - name: prometheus-es-exporter-cacert files: - files/es_ca.crt - -patchesStrategicMerge: -- patches.yaml +- name: prometheus-es-exporter-escluster + literals: + - es_cluster=https://qa-elastic-stack-elastic-01:9200,https://qa-elastic-stack-elastic-02:9200,https://qa-elastic-stack-elastic-03:9200