File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
internal/controller/postgrescluster Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,10 @@ func (r *Reconciler) reconcileMonitoringSecret(
157157 return nil , err
158158 }
159159
160- // Checking if the exporter is enabled to determine when monitoring
161- // secret should be created.
160+ // Checking if the exporter is enabled or OpenTelemetryMetrics feature
161+ // is enabled to determine when monitoring secret should be created,
162+ // since our implementation of the SqlQuery receiver in the OTel Collector
163+ // uses the monitoring user as well.
162164 if ! pgmonitor .ExporterEnabled (ctx , cluster ) && ! feature .Enabled (ctx , feature .OpenTelemetryMetrics ) {
163165 if err == nil {
164166 err = errors .WithStack (r .deleteControlled (ctx , cluster , existing ))
You can’t perform that action at this time.
0 commit comments