Skip to content

Commit d71afac

Browse files
author
tony-landreth
committed
Prometheus exporter port should match postgres-exporter
1 parent 90ae163 commit d71afac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/collector/patroni.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func EnablePatroniMetrics(ctx context.Context,
133133
if feature.Enabled(ctx, feature.OpenTelemetryMetrics) {
134134
// Add Prometheus exporter
135135
outConfig.Exporters[Prometheus] = map[string]any{
136-
"endpoint": "0.0.0.0:8889",
136+
"endpoint": "0.0.0.0:9187",
137137
}
138138

139139
// Add Prometheus Receiver

internal/collector/pgbouncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func EnablePgBouncerMetrics(ctx context.Context, config *Config, sqlQueryUsernam
172172
if feature.Enabled(ctx, feature.OpenTelemetryMetrics) {
173173
// Add Prometheus exporter
174174
config.Exporters[Prometheus] = map[string]any{
175-
"endpoint": "0.0.0.0:8889",
175+
"endpoint": "0.0.0.0:9187",
176176
}
177177

178178
// Add SqlQuery Receiver

internal/collector/postgres_metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func EnablePostgresMetrics(ctx context.Context, inCluster *v1beta1.PostgresClust
5151
}
5252
// Add Prometheus exporter
5353
config.Exporters[Prometheus] = map[string]any{
54-
"endpoint": "0.0.0.0:8889",
54+
"endpoint": "0.0.0.0:9187",
5555
}
5656

5757
config.Receivers[FiveSecondSqlQuery] = map[string]any{

0 commit comments

Comments
 (0)