diff --git a/pkg/sidecars/observability/otel.go b/pkg/sidecars/observability/otel.go index 7e572e8..4490d5d 100644 --- a/pkg/sidecars/observability/otel.go +++ b/pkg/sidecars/observability/otel.go @@ -343,7 +343,7 @@ func (o *Obsy) createExporters() Exporters { exporters.Jaeger = o.createJaegerExporter() } - if o.obsyConfig.prometheusEndpointPort != 0 { + if o.obsyConfig.prometheusExporterEndpoint != "" { exporters.Prometheus = o.createPrometheusExporter() }