You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// MetricsBindAddress is the TCP address that the server should bind to
81
+
// for serving prometheus metrics.
82
+
// It can be set to "0" to disable the metrics serving.
83
+
// Defaults to ":8080".
84
+
MetricsBindAddressstring
85
+
46
86
KubeConfigstring
47
87
// ClusterAPIQPS is the QPS to use while talking with cluster kube-apiserver.
48
88
ClusterAPIQPSfloat32
@@ -73,6 +113,7 @@ func (o *Options) Complete() error {
73
113
func (o*Options) AddFlags(fs*pflag.FlagSet) {
74
114
o.CustomMetricsAdapterServerOptions.AddFlags(fs)
75
115
o.ProfileOpts.AddFlags(fs)
116
+
fs.StringVar(&o.MetricsBindAddress, "metrics-bind-address", ":8080", "The TCP address that the server should bind to for serving prometheus metrics(e.g. 127.0.0.1:8080, :8080). It can be set to \"0\" to disable the metrics serving. Defaults to 0.0.0.0:8080.")
76
117
fs.Float32Var(&o.ClusterAPIQPS, "cluster-api-qps", 40.0, "QPS to use while talking with cluster kube-apiserver.")
77
118
fs.IntVar(&o.ClusterAPIBurst, "cluster-api-burst", 60, "Burst to use while talking with cluster kube-apiserver.")
78
119
fs.Float32Var(&o.KubeAPIQPS, "kube-api-qps", 40.0, "QPS to use while talking with karmada-apiserver.")
0 commit comments