Skip to content

Commit 01d121d

Browse files
authored
[testnet] Manually adjust proxy/server buckets for latencies (#3406)
## Motivation A lot of changes happened in this prometheus code that we didn't backport (mainly [#2878](#2878)). Backporting it would be a huge pain, so I'm just gonna change the buckets manually for now, and when we cut a new testnet we'll have the proper stuff in ## Proposal Manually adjust buckets ## Test Plan CI
1 parent d021729 commit 01d121d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

linera-rpc/src/grpc/server.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static SERVER_REQUEST_LATENCY: LazyLock<HistogramVec> = LazyLock::new(|| {
5959
"server_request_latency",
6060
"Server request latency",
6161
&[],
62-
Some(vec![0.5, 1.0, 2.5, 5.0, 10.0, 25.0, 50.0]),
62+
Some(vec![1.0, 2.5, 5.0, 10.0, 25.0, 50.0, 100.0, 150.0, 200.0]),
6363
)
6464
.expect("Counter creation should not fail")
6565
});
@@ -96,7 +96,7 @@ static SERVER_REQUEST_LATENCY_PER_REQUEST_TYPE: LazyLock<HistogramVec> = LazyLoc
9696
"server_request_latency_per_request_type",
9797
"Server request latency per request type",
9898
&["method_name"],
99-
Some(vec![0.5, 1.0, 2.5, 5.0, 10.0, 25.0, 50.0]),
99+
Some(vec![1.0, 2.5, 5.0, 10.0, 25.0, 50.0, 100.0, 150.0, 200.0]),
100100
)
101101
.expect("Counter creation should not fail")
102102
});

linera-service/src/proxy/grpc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ static PROXY_REQUEST_LATENCY: LazyLock<HistogramVec> = LazyLock::new(|| {
6969
"Proxy request latency",
7070
&[],
7171
Some(vec![
72-
0.001, 0.002_5, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0, 25.0,
73-
50.0, 100.0, 200.0, 300.0, 400.0,
72+
1.0, 2.5, 5.0, 10.0, 25.0, 50.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0,
73+
450.0, 500.0,
7474
]),
7575
)
7676
.expect("Counter creation should not fail")

0 commit comments

Comments
 (0)