@@ -44,7 +44,7 @@ type NodeProblemDetectorOptions struct {
44
44
// ServerAddress is the address to bind the node problem detector server.
45
45
ServerAddress string
46
46
// QPS is the maximum QPS to the master from client.
47
- QPS float64
47
+ QPS float32
48
48
// Burst is the maximum burst for throttle.
49
49
Burst int
50
50
@@ -129,8 +129,8 @@ func (npdo *NodeProblemDetectorOptions) AddFlags(fs *pflag.FlagSet) {
129
129
20257 , "The port to bind the Prometheus scrape endpoint. Prometheus exporter is enabled by default at port 20257. Use 0 to disable." )
130
130
fs .StringVar (& npdo .PrometheusServerAddress , "prometheus-address" ,
131
131
"127.0.0.1" , "The address to bind the Prometheus scrape endpoint." )
132
- flag . Float64Var (& npdo .QPS , "kube-api-qps" , 500 , "Maximum QPS to use while talking with Kubernetes API" )
133
- flag .IntVar (& npdo .Burst , "kube-api-burst" , 500 , "Maximum burst for throttle while talking with Kubernetes API" )
132
+ fs . Float32Var (& npdo .QPS , "kube-api-qps" , 500 , "Maximum QPS to use while talking with Kubernetes API" )
133
+ fs .IntVar (& npdo .Burst , "kube-api-burst" , 500 , "Maximum burst for throttle while talking with Kubernetes API" )
134
134
for _ , exporterName := range exporters .GetExporterNames () {
135
135
exporterHandler := exporters .GetExporterHandlerOrDie (exporterName )
136
136
exporterHandler .Options .SetFlags (fs )
0 commit comments