Skip to content

Commit ad48579

Browse files
committed
fix send/receive buckets
1 parent 9781600 commit ad48579

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

metrics/metrics.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ var (
108108
Name: "tcpinfo_send_rate_histogram",
109109
Help: "send rate histogram",
110110
Buckets: []float64{
111-
0, // We don't really care about small rates, so we use course measurement below 10Kbps.
112-
1, 10, 100, 1000,
113-
10000, 12600, 15800, 20000, 25100, 31600, 39800, 50100, 63100, 79400,
111+
0, // We don't really care about small rates, so we use course measurement below 100Kbps.
112+
1, 10, 100, 1000, 10000,
114113
100000, 126000, 158000, 200000, 251000, 316000, 398000, 501000, 631000, 794000,
115114
1000000, 1260000, 1580000, 2000000, 2510000, 3160000, 3980000, 5010000, 6310000, 7940000,
116-
10000000, math.Inf(+1),
115+
10000000, 12600000, 15800000, 20000000, 25100000, 31600000, 39800000, 50100000, 63100000, 79400000,
116+
100000000, 126000000, 158000000, 200000000, 251000000, 316000000, 398000000, 501000000, 631000000, 794000000,
117+
1000000000, 1260000000, 1580000000, 2000000000, 2510000000, 3160000000, 3980000000, 5010000000, 6310000000, 7940000000,
118+
10000000000, math.Inf(+1),
117119
},
118120
})
119121
// ReceiveRateHistogram tracks the 1 second average TCP send rate from a namespace.
@@ -126,12 +128,14 @@ var (
126128
Name: "tcpinfo_receive_rate_histogram",
127129
Help: "receive rate histogram",
128130
Buckets: []float64{
129-
0, // We don't really care about small rates, so we use course measurement below 10Kbps.
130-
1, 10, 100, 1000,
131-
10000, 12600, 15800, 20000, 25100, 31600, 39800, 50100, 63100, 79400,
131+
0, // We don't really care about small rates, so we use course measurement below 100Kbps.
132+
1, 10, 100, 1000, 10000,
132133
100000, 126000, 158000, 200000, 251000, 316000, 398000, 501000, 631000, 794000,
133134
1000000, 1260000, 1580000, 2000000, 2510000, 3160000, 3980000, 5010000, 6310000, 7940000,
134-
10000000, math.Inf(+1),
135+
10000000, 12600000, 15800000, 20000000, 25100000, 31600000, 39800000, 50100000, 63100000, 79400000,
136+
100000000, 126000000, 158000000, 200000000, 251000000, 316000000, 398000000, 501000000, 631000000, 794000000,
137+
1000000000, 1260000000, 1580000000, 2000000000, 2510000000, 3160000000, 3980000000, 5010000000, 6310000000, 7940000000,
138+
10000000000, math.Inf(+1),
135139
},
136140
})
137141

0 commit comments

Comments
 (0)