From 23bffd9cf34dd8a3f82aa88502b151512aeb7c61 Mon Sep 17 00:00:00 2001 From: Moji Date: Thu, 14 Nov 2024 15:55:16 +0330 Subject: [PATCH] fix: obsy prometheus exporter (#579) --- pkg/sidecars/observability/otel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }