Pārlūkot izejas kodu

etcdserver/api/rafthttp: increase bucket upperbound up-to 3-sec

From 0.8 sec to 3.2 sec for more detailed latency analysis

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 gadi atpakaļ
vecāks
revīzija
5a9e48be30
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      etcdserver/api/rafthttp/metrics.go

+ 4 - 1
etcdserver/api/rafthttp/metrics.go

@@ -58,7 +58,10 @@ var (
 		Subsystem: "network",
 		Name:      "peer_round_trip_time_seconds",
 		Help:      "Round-Trip-Time histogram between peers.",
-		Buckets:   prometheus.ExponentialBuckets(0.0001, 2, 14),
+
+		// lowest bucket start of upper bound 0.0001 sec (0.1 ms) with factor 2
+		// highest bucket start of 0.0001 sec * 2^15 == 3.2768 sec
+		Buckets: prometheus.ExponentialBuckets(0.0001, 2, 16),
 	},
 		[]string{"To"},
 	)