Skip to content

Commit 2ffa507

Browse files
authored
remove duplicate 'raft' in metric names (#8223)
1 parent 9548848 commit 2ffa507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/metrics/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ var (
23742374
RaftRangeLockDurationMsec = promauto.NewHistogramVec(prometheus.HistogramOpts{
23752375
Namespace: bbNamespace,
23762376
Subsystem: "raft",
2377-
Name: "raft_range_lock_duration_msec",
2377+
Name: "range_lock_duration_msec",
23782378
Buckets: durationMsecBuckets(1*time.Millisecond, 15*time.Second, 2),
23792379
Help: "The duration of the range lock in a client session",
23802380
}, []string{
@@ -2385,7 +2385,7 @@ var (
23852385
RaftNodeHostMethodDurationUsec = promauto.NewHistogramVec(prometheus.HistogramOpts{
23862386
Namespace: bbNamespace,
23872387
Subsystem: "raft",
2388-
Name: "raft_nodehost_method_usec",
2388+
Name: "nodehost_method_usec",
23892389
Buckets: coarseMicrosecondToHour,
23902390
Help: "The duration of a nodehost method",
23912391
}, []string{

0 commit comments

Comments
 (0)