Skip to content

Commit ac8dec4

Browse files
committed
metrics: update some metrics buckets info
1 parent 1d25006 commit ac8dec4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

metrics/metrics.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) {
172172
Subsystem: subsystem,
173173
Name: "request_seconds",
174174
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
176176
ConstLabels: constLabels,
177177
}, []string{LblType, LblStore, LblStaleRead, LblScope})
178178

@@ -191,7 +191,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) {
191191
Subsystem: subsystem,
192192
Name: "rpc_net_latency_seconds",
193193
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
195195
ConstLabels: constLabels,
196196
}, []string{LblStore, LblScope})
197197

@@ -201,7 +201,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) {
201201
Subsystem: subsystem,
202202
Name: "cop_duration_seconds",
203203
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
205205
ConstLabels: constLabels,
206206
}, []string{LblStore, LblStaleRead, LblScope})
207207

0 commit comments

Comments
 (0)