From be1cf765c2ef2e11eef2c0aaaf71f0f324f45709 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Thu, 23 Nov 2023 11:09:35 +0100 Subject: [PATCH] fix: remove unused gossip block metrics from network core (#6120) --- .../beacon-node/src/network/core/metrics.ts | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/packages/beacon-node/src/network/core/metrics.ts b/packages/beacon-node/src/network/core/metrics.ts index e5ce0bede447..4f416ad4fba2 100644 --- a/packages/beacon-node/src/network/core/metrics.ts +++ b/packages/beacon-node/src/network/core/metrics.ts @@ -291,45 +291,6 @@ export function createNetworkCoreMetrics(register: RegistryMetricCreator) { labelNames: ["subnet"], }), }, - - // Gossip block - gossipBlock: { - elapsedTimeTillReceived: register.histogram({ - name: "lodestar_gossip_block_elapsed_time_till_received", - help: "Time elapsed between block slot time and the time block received via gossip", - buckets: [0.5, 1, 2, 4, 6, 12], - }), - elapsedTimeTillProcessed: register.histogram({ - name: "lodestar_gossip_block_elapsed_time_till_processed", - help: "Time elapsed between block slot time and the time block processed", - buckets: [0.5, 1, 2, 4, 6, 12], - }), - receivedToGossipValidate: register.histogram({ - name: "lodestar_gossip_block_received_to_gossip_validate", - help: "Time elapsed between block received and block validated", - buckets: [0.05, 0.1, 0.2, 0.5, 1, 1.5, 2, 4], - }), - receivedToStateTransition: register.histogram({ - name: "lodestar_gossip_block_received_to_state_transition", - help: "Time elapsed between block received and block state transition", - buckets: [0.05, 0.1, 0.2, 0.5, 1, 1.5, 2, 4], - }), - receivedToSignaturesVerification: register.histogram({ - name: "lodestar_gossip_block_received_to_signatures_verification", - help: "Time elapsed between block received and block signatures verification", - buckets: [0.05, 0.1, 0.2, 0.5, 1, 1.5, 2, 4], - }), - receivedToExecutionPayloadVerification: register.histogram({ - name: "lodestar_gossip_block_received_to_execution_payload_verification", - help: "Time elapsed between block received and execution payload verification", - buckets: [0.05, 0.1, 0.2, 0.5, 1, 1.5, 2, 4], - }), - receivedToBlockImport: register.histogram({ - name: "lodestar_gossip_block_received_to_block_import", - help: "Time elapsed between block received and block import", - buckets: [0.05, 0.1, 0.2, 0.5, 1, 1.5, 2, 4], - }), - }, }; }