@@ -82,10 +82,14 @@ spec:
82
82
env :
83
83
{{- if not .Values.global.logging.customConfigFile.enabled }}
84
84
- name : DITTO_LOGGING_DISABLE_SYSOUT_LOG
85
- value : " {{ if .Values.global.logging.sysout.enabled }}false{{ else }}true{{ end }}"
85
+ value : " {{ printf " %t" .Values.global.logging.sysout.enabled }}"
86
86
- name : DITTO_LOGGING_FILE_APPENDER
87
- value : " {{ if .Values.global.logging.logFiles.enabled }}true{{ else }}false{{ end }}"
87
+ value : " {{ printf " %t" .Values.global.logging.logFiles.enabled }}"
88
88
{{- end }}
89
+ - name : DITTO_METRICS_METRIC_PREFIX
90
+ value : " {{ .Values.global.metrics.metricsPrefix }}"
91
+ - name : SYSTEM_METRICS_ENABLED
92
+ value : " {{ .Values.global.metrics.systemMetrics.enabled }}"
89
93
- name : DITTO_TRACING_ENABLED
90
94
value : " {{ .Values.global.tracing.enabled }}"
91
95
- name : DITTO_TRACING_OTEL_TRACE_REPORTER_ENABLED
@@ -132,9 +136,20 @@ spec:
132
136
{{- if .Values.global.logging.customConfigFile.enabled }}
133
137
-Dlogback.configurationFile=/opt/ditto/{{ .Values.global.logging.customConfigFile.fileName }}
134
138
{{- end }}
139
+ {{- range $key, $value := .Values.thingsSearch.config.operatorMetrics.customMetrics }}
140
+ "{{ printf "%s%s%s=%t" "-Dditto.search.operator-metrics.custom-metrics." $key ".enabled" $value.enabled }}"
141
+ "{{ printf "%s%s%s=%s" "-Dditto.search.operator-metrics.custom-metrics." $key ".scrape-interval" $value.scrapeInterval }}"
142
+ {{- range $index, $namespace := $value.namespaces }}
143
+ "{{ printf "%s%s%s%d=%s" "-Dditto.search.operator-metrics.custom-metrics." $key ".namespaces." $index $namespace }}"
144
+ {{- end }}
145
+ "{{ printf "%s%s%s=%s" "-Dditto.search.operator-metrics.custom-metrics." $key ".filter" $value.filter }}"
146
+ {{- range $tagKey, $tagValue := $value.tags }}
147
+ "{{ printf "%s%s%s%s=%s" "-Dditto.search.operator-metrics.custom-metrics." $key ".tags." $tagKey $tagValue }}"
148
+ {{- end }}
149
+ {{- end }}
135
150
{{ join " " .Values.thingsSearch.systemProps }}
136
151
- name : MONGO_DB_SSL_ENABLED
137
- value : " {{ if .Values.dbconfig.thingsSearch.ssl }}true{{ else }}false{{ end }}"
152
+ value : " {{ printf " %t" .Values.dbconfig.thingsSearch.ssl }}"
138
153
- name : MONGO_DB_URI
139
154
valueFrom :
140
155
secretKeyRef :
@@ -204,6 +219,10 @@ spec:
204
219
value : " {{ .Values.thingsSearch.config.updater.stream.retrievalParallelism }}"
205
220
- name : THINGS_SEARCH_UPDATER_STREAM_PERSISTENCE_PARALLELISM
206
221
value : " {{ .Values.thingsSearch.config.updater.stream.persistence.parallelism }}"
222
+ - name : THINGS_SEARCH_OPERATOR_METRICS_ENABLED
223
+ value : " {{ .Values.thingsSearch.config.operatorMetrics.enabled }}"
224
+ - name : THINGS_SEARCH_OPERATOR_METRICS_SCRAPE_INTERVAL
225
+ value : " {{ .Values.thingsSearch.config.operatorMetrics.scrapeInterval }}"
207
226
- name : ACTIVITY_CHECK_INTERVAL
208
227
value : " {{ .Values.thingsSearch.config.updater.activityCheckInterval }}"
209
228
- name : BACKGROUND_SYNC_ENABLED
0 commit comments