From 9e46aeba6e816044e4272fa4b91715f650ceabac Mon Sep 17 00:00:00 2001 From: Stan Drozd Date: Thu, 5 Jan 2023 15:30:24 +0100 Subject: [PATCH 1/2] pyth-wormhole-attester: v1.3.1, use different manual buckets --- wormhole-attester/client/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wormhole-attester/client/src/main.rs b/wormhole-attester/client/src/main.rs index 57ccab304c..d0f70fe0f7 100644 --- a/wormhole-attester/client/src/main.rs +++ b/wormhole-attester/client/src/main.rs @@ -105,8 +105,7 @@ lazy_static! { static ref SOL_RPC_TX_PROCESSING_HIST: Histogram = register_histogram!( "sol_rpc_tx_processing", "How long in milliseconds it takes to send a transaction to the Solana RPC", - prometheus::exponential_buckets(0.016, 2.0, 13) // 0.016s, 0.032s, 0.064s, [...], 65.536s - .expect("FATAL: Could not instantiate buckets for SOL_RPC_TX_PROCESSING_HIST") + vec![0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 5.0, 10.0, 20.0, 30.0, 60.0] // Buckets, 1.0 = 1 second ) .expect("FATAL: Could not instantiate SOL_RPC_TX_PROCESSING_HIST"); } From 386b9b1b82a339aac997ccc48d2213460ab1dce9 Mon Sep 17 00:00:00 2001 From: Stan Drozd Date: Wed, 4 Jan 2023 14:28:56 +0100 Subject: [PATCH 2/2] Update description in metric registration --- wormhole-attester/client/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wormhole-attester/client/src/main.rs b/wormhole-attester/client/src/main.rs index d0f70fe0f7..f1b7374591 100644 --- a/wormhole-attester/client/src/main.rs +++ b/wormhole-attester/client/src/main.rs @@ -104,7 +104,7 @@ lazy_static! { .expect("FATAL: Could not instantiate LAST_SEQNO_GAUGE"); static ref SOL_RPC_TX_PROCESSING_HIST: Histogram = register_histogram!( "sol_rpc_tx_processing", - "How long in milliseconds it takes to send a transaction to the Solana RPC", + "How long in seconds it takes to send a transaction to the Solana RPC", vec![0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 5.0, 10.0, 20.0, 30.0, 60.0] // Buckets, 1.0 = 1 second ) .expect("FATAL: Could not instantiate SOL_RPC_TX_PROCESSING_HIST");