File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,26 @@ spec:
185
185
{{ toYaml .Values.monitoringConfig | indent 8 }}
186
186
{{- end }}
187
187
{{- end }}
188
+ {{- if .Values.instrumentation }}
189
+ instrumentation :
190
+ config :
191
+ {{- if .Values.instrumentationConfig }}
192
+ {{ toYaml .Values.instrumentationConfig | indent 6 }}
193
+ {{- end }}
194
+ image : {{ default "" .Values.instrumentationImage | quote }}
195
+ logs :
196
+ {{- if .Values.instrumentationLogs }}
197
+ {{ toYaml .Values.instrumentationLogs | indent 6 }}
198
+ {{- end }}
199
+ metrics :
200
+ {{- if .Values.instrumentationMetrics }}
201
+ {{ toYaml .Values.instrumentationMetrics | indent 6 }}
202
+ {{- end }}
203
+ resources :
204
+ {{- if .Values.instrumentationResources }}
205
+ {{ toYaml .Values.instrumentationResources | indent 6 }}
206
+ {{- end }}
207
+ {{- end }}
188
208
{{- if .Values.shutdown }}
189
209
shutdown : true
190
210
{{- end }}
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ postgresVersion: 17
39
39
# below.
40
40
# monitoring: false
41
41
42
+ # instrumentation enables the ability to monitor the Postgres cluster through an
43
+ # OpenTelemetry collector. This defaults to the value below.
44
+ # This feature is currently behind the feature gates OpenTelemetryLogs and
45
+ # OpenTelemetryMetrics; at least one of these feature gates must be turned
46
+ # on for `instrumentation` to be turned on.
47
+ # instrumentation: false
48
+
42
49
# ##################
43
50
# Image Overrides #
44
51
# ##################
@@ -278,6 +285,16 @@ postgresVersion: 17
278
285
# "monitoring" setting.
279
286
# monitoringConfig: {}
280
287
288
+ # The following "instrumentation_" fields will set the specified parts of the instrumentation
289
+ # spec. To enable instrumentation, you need to set the "instrumentation" setting to "true".
290
+ # This feature is currently behind the feature gates OpenTelemetryMetrics and OpenTelemetryLogs.
291
+
292
+ # instrumentationConfig: {}
293
+ # instrumentationImage: ""
294
+ # instrumentationLogs: {}
295
+ # instrumentationMetrics: {}
296
+ # instrumentationResources: {}
297
+
281
298
# ######################
282
299
# Kubernetes Settings #
283
300
# ######################
You can’t perform that action at this time.
0 commit comments