Skip to content

Commit b5a7244

Browse files
authored
Use collector.OpenTelemetryMetricsEnabled when config'ing exporter setup (#4148)
1 parent 427faa0 commit b5a7244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/postgrescluster/pgmonitor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (r *Reconciler) reconcilePGMonitorExporter(ctx context.Context,
6969
return err
7070
}
7171

72-
if feature.Enabled(ctx, feature.OpenTelemetryMetrics) {
72+
if collector.OpenTelemetryMetricsEnabled(ctx, cluster) {
7373
setup = metricsSetupForOTelCollector
7474
} else {
7575
// TODO: Revisit how pgbackrest_info.sh is used with pgMonitor.

0 commit comments

Comments
 (0)