diff --git a/zeebe-cluster/templates/configmap.yaml b/zeebe-cluster/templates/configmap.yaml index 2b0108c..8ef5d80 100644 --- a/zeebe-cluster/templates/configmap.yaml +++ b/zeebe-cluster/templates/configmap.yaml @@ -28,6 +28,9 @@ data: export ZEEBE_CONTACT_POINTS="${contactPoints}" fi + ls -al /exporters/ + cp -a /exporters/*.jar /usr/local/zeebe/lib/ + exec /usr/local/zeebe/bin/broker zeebe.cfg.toml: | {{ .Values.zeebeCfg }} diff --git a/zeebe-cluster/templates/statefulset.yaml b/zeebe-cluster/templates/statefulset.yaml index 0044ab6..242bde0 100644 --- a/zeebe-cluster/templates/statefulset.yaml +++ b/zeebe-cluster/templates/statefulset.yaml @@ -85,13 +85,19 @@ spec: subPath: startup.sh - name: data mountPath: /usr/local/zeebe/data + - name: exporters + mountPath: /exporters/ securityContext: - {{ toYaml .Values.podSecurityContext | indent 12 | trim }} + {{ toYaml .Values.podSecurityContext | indent 12 | trim }} volumes: - name: config configMap: name: {{ tpl .Values.global.zeebe . | quote }} defaultMode: 0744 + - name: exporters + emptyDir: {} + securityContext: +{{ toYaml .Values.podSecurityContext | indent 8 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/zeebe-cluster/values.yaml b/zeebe-cluster/values.yaml index 783b220..72c1436 100644 --- a/zeebe-cluster/values.yaml +++ b/zeebe-cluster/values.yaml @@ -77,3 +77,35 @@ nodeSelector: {} tolerations: [] affinity: {} + +zeebeCfg: |- + [[exporters]] + id = "elasticsearch" + className = "io.zeebe.exporter.ElasticsearchExporter" + [exporters.args] + url = "http://elasticsearch-master:9200" + + [exporters.args.bulk] + delay = 5 + size = 1_000 + + #[exporters.args.authentication] + #username = elastic + #password = changeme + + [exporters.args.index] + prefix = "zeebe-record" + createTemplate = true + + command = false + event = true + rejection = false + + deployment = true + incident = true + job = true + message = false + messageSubscription = false + raft = false + workflowInstance = true + workflowInstanceSubscription = false \ No newline at end of file