Skip to content

Commit e348614

Browse files
authored
Merge pull request #22 from Biolevate/main
feat: add metrics configuration to soak-test deployment
2 parents bf39c20 + 14ac3df commit e348614

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

charts/benchmark-workers/templates/deployment-soak-test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
- name: benchmark-soak-test
2828
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
2929
imagePullPolicy: {{ .Values.image.pullPolicy }}
30+
ports:
31+
- name: metrics
32+
containerPort: {{ .Values.metrics.port }}
33+
protocol: TCP
3034
env:
3135
- name: TEMPORAL_GRPC_ENDPOINT
3236
value: {{ .Values.temporal.grpcEndpoint | quote }}
@@ -36,6 +40,10 @@ spec:
3640
value: {{ .Values.temporal.taskQueue | quote }}
3741
- name: CONCURRENT_WORKFLOWS
3842
value: {{ .Values.soakTest.concurrentWorkflows | quote }}
43+
{{- if .Values.metrics.enabled }}
44+
- name: PROMETHEUS_ENDPOINT
45+
value: {{ .Values.metrics.prometheusEndpoint | quote }}
46+
{{- end }}
3947
{{- if .Values.temporal.tls.enabled }}
4048
{{- if and .Values.temporal.tls.key .Values.temporal.tls.cert }}
4149
- name: TEMPORAL_TLS_KEY
@@ -96,4 +104,4 @@ spec:
96104
{{- toYaml . | nindent 8 }}
97105
{{- end }}
98106
restartPolicy: Always
99-
{{- end }}
107+
{{- end }}

0 commit comments

Comments
 (0)