Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
adding exporter dir and volume mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
salaboy committed Mar 9, 2020
1 parent 7ec0fc7 commit e5475d7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 38 deletions.
41 changes: 3 additions & 38 deletions zeebe-cluster/templates/configmap.yaml
Expand Up @@ -22,43 +22,8 @@ data:
ZEEBE_CONTACT_POINTS="${ZEEBE_CONTACT_POINTS},${HOSTNAME::-1}$i.$(hostname -d):26502"
done
export ZEEBE_CONTACT_POINTS="${ZEEBE_CONTACT_POINTS}"
ls -al /exporters/
cp -a /exporters/*.jar /usr/local/zeebe/lib/
exec /usr/local/zeebe/bin/broker
zeebe.cfg.toml: |
{{ .Values.zeebeCfg }}
# For more information about this configuration visit: https://docs.zeebe.io/operations/the-zeebecfgtoml-file.html
[threads]
cpuThreadCount = {{ .Values.cpuThreadCount | quote }}
ioThreadCount = {{ .Values.ioThreadCount | quote }}
[gateway.monitoring]
enabled = {{ .Values.gatewayMetrics | default false }}
[[exporters]]
id = "elasticsearch"
className = "io.zeebe.exporter.ElasticsearchExporter"
[exporters.args]
url = "http://{{ .Values.global.elasticsearch.host }}:{{ .Values.global.elasticsearch.port }}"
[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
zeebe.cfg.toml: {{ toYaml .Values.zeebeCfg | indent 4 }}
4 changes: 4 additions & 0 deletions zeebe-cluster/templates/statefulset.yaml
Expand Up @@ -80,11 +80,15 @@ spec:
subPath: startup.sh
- name: data
mountPath: /usr/local/zeebe/data
- name: exporters
mountPath: /exporters/
volumes:
- name: config
configMap:
name: {{ tpl .Values.global.zeebe . | quote }}
defaultMode: 0744
- name: exporters
emptyDir: {}
securityContext:
{{ toYaml .Values.podSecurityContext | indent 8 }}
{{- with .Values.nodeSelector }}
Expand Down
32 changes: 32 additions & 0 deletions zeebe-cluster/values.yaml
Expand Up @@ -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

0 comments on commit e5475d7

Please sign in to comment.