Skip to content

Commit

Permalink
[testnet] Manually adjust proxy/server buckets for latencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-ds committed Feb 24, 2025
1 parent d021729 commit 7663036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions linera-rpc/src/grpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static SERVER_REQUEST_LATENCY: LazyLock<HistogramVec> = LazyLock::new(|| {
"server_request_latency",
"Server request latency",
&[],
Some(vec![0.5, 1.0, 2.5, 5.0, 10.0, 25.0, 50.0]),
Some(vec![1.0, 2.5, 5.0, 10.0, 25.0, 50.0, 100.0, 150.0, 200.0]),
)
.expect("Counter creation should not fail")
});
Expand Down Expand Up @@ -96,7 +96,7 @@ static SERVER_REQUEST_LATENCY_PER_REQUEST_TYPE: LazyLock<HistogramVec> = LazyLoc
"server_request_latency_per_request_type",
"Server request latency per request type",
&["method_name"],
Some(vec![0.5, 1.0, 2.5, 5.0, 10.0, 25.0, 50.0]),
Some(vec![1.0, 2.5, 5.0, 10.0, 25.0, 50.0, 100.0, 150.0, 200.0]),
)
.expect("Counter creation should not fail")
});
Expand Down
4 changes: 2 additions & 2 deletions linera-service/src/proxy/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ static PROXY_REQUEST_LATENCY: LazyLock<HistogramVec> = LazyLock::new(|| {
"Proxy request latency",
&[],
Some(vec![
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,
50.0, 100.0, 200.0, 300.0, 400.0,
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,
450.0, 500.0,
]),
)
.expect("Counter creation should not fail")
Expand Down

0 comments on commit 7663036

Please sign in to comment.