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:
185185{{ toYaml .Values.monitoringConfig | indent 8 }}
186186 {{- end }}
187187 {{- 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 }}
188208 {{- if .Values.shutdown }}
189209 shutdown : true
190210 {{- end }}
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ postgresVersion: 17
3939# below.
4040# monitoring: false
4141
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+
4249# ##################
4350# Image Overrides #
4451# ##################
@@ -278,6 +285,16 @@ postgresVersion: 17
278285# "monitoring" setting.
279286# monitoringConfig: {}
280287
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+
281298# ######################
282299# Kubernetes Settings #
283300# ######################
You can’t perform that action at this time.
0 commit comments