Skip to content

Commit fc7abaa

Browse files
committed
refactor: update metrics port to use conventional prom port
1 parent 6cd08e7 commit fc7abaa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cmd/kar-controllers/app/options/options.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import (
2121
"os"
2222
"strconv"
2323
"strings"
24-
25-
klog "k8s.io/klog/v2"
2624
)
2725

2826
// ServerOption is the main context object for the controller manager.
@@ -40,9 +38,9 @@ type ServerOption struct {
4038
HeadOfLineHoldingTime int
4139
QuotaEnabled bool // Controller is to evaluate quota per request
4240
QuotaRestURL string
43-
HealthProbeListenPort int
41+
HealthProbeListenPort int
4442
DispatchResourceReservationTimeout int64
45-
MetricsListenPort int
43+
MetricsListenPort int
4644
}
4745

4846
// NewServerOption creates a new CMServer with a default config.
@@ -68,8 +66,8 @@ func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
6866
fs.StringVar(&s.QuotaRestURL, "quotaURL", s.QuotaRestURL, "URL for ReST quota management. Default is none.")
6967
fs.IntVar(&s.SecurePort, "secure-port", 6443, "The port on which to serve secured, authenticated access for metrics.")
7068
fs.IntVar(&s.HealthProbeListenPort, "healthProbeListenPort", 8081, "Listen port for health probes. Defaults to ':8081'")
71-
// using port 8083 for metrics as 8082 is used by `custom-metrics-apiserver`
72-
fs.IntVar(&s.MetricsListenPort, "metricsListenPort", 8083, "Listen port for metrics. Defaults to ':8083'")
69+
// using port 9090 for metrics as 8082 is used by `custom-metrics-apiserver`
70+
fs.IntVar(&s.MetricsListenPort, "metricsListenPort", 9090, "Listen port for metrics. Defaults to ':9090'")
7371
fs.Int64Var(&s.DispatchResourceReservationTimeout, "dispatchResourceReservationTimeout", s.DispatchResourceReservationTimeout, "Resource reservation timeout for pods to be created once AppWrapper is dispatched, in millisecond. Defaults to '300000', 5 minutes")
7472
}
7573

0 commit comments

Comments
 (0)