@@ -172,7 +172,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) {
172
172
Subsystem : subsystem ,
173
173
Name : "request_seconds" ,
174
174
Help : "Bucketed histogram of sending request duration." ,
175
- Buckets : prometheus .ExponentialBuckets (0.0005 , 2 , 29 ), // 0.5ms ~ 1.5days
175
+ Buckets : prometheus .ExponentialBuckets (0.0005 , 2 , 24 ), // 0.5ms ~ 1.2h
176
176
ConstLabels : constLabels ,
177
177
}, []string {LblType , LblStore , LblStaleRead , LblScope })
178
178
@@ -191,7 +191,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) {
191
191
Subsystem : subsystem ,
192
192
Name : "rpc_net_latency_seconds" ,
193
193
Help : "Bucketed histogram of time difference between TiDB and TiKV." ,
194
- Buckets : prometheus .ExponentialBuckets (5e-5 , 2 , 22 ), // 50us ~ 105s
194
+ Buckets : prometheus .ExponentialBuckets (0.0001 , 2 , 20 ), // 0.1ms ~ 52s
195
195
ConstLabels : constLabels ,
196
196
}, []string {LblStore , LblScope })
197
197
@@ -201,7 +201,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) {
201
201
Subsystem : subsystem ,
202
202
Name : "cop_duration_seconds" ,
203
203
Help : "Run duration of a single coprocessor task, includes backoff time." ,
204
- Buckets : prometheus .ExponentialBuckets (0.0005 , 2 , 29 ), // 0.5ms ~ 1.5days
204
+ Buckets : prometheus .ExponentialBuckets (0.0005 , 2 , 24 ), // 0.5ms ~ 1.2h
205
205
ConstLabels : constLabels ,
206
206
}, []string {LblStore , LblStaleRead , LblScope })
207
207
0 commit comments