File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ func (r *AutoscalingReconciler) reconcileNormal(
408408 instance .Status .PrometheusHost = instance .Spec .PrometheusHost
409409 }
410410 if instance .Spec .PrometheusPort == 0 {
411- instance .Status .PrometheusPort = 9090
411+ instance .Status .PrometheusPort = metricstorage . DefaultPrometheusPort
412412 } else {
413413 instance .Status .PrometheusPort = instance .Spec .PrometheusPort
414414 }
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ const (
2222 DefaultServiceName = "metric-storage"
2323 // DefaultPvcStorageRequest -
2424 DefaultPvcStorageRequest = "20G"
25+ // DefaultPrometheusPort -
26+ DefaultPrometheusPort = 9090
2527 // DefaultNodeExporterPort -
2628 DefaultNodeExporterPort = 9100
2729 // DefaultScrapeInterval -
You can’t perform that action at this time.
0 commit comments