Skip to content

Commit

Permalink
Correct other counters that were created as gauges (#7908)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
  • Loading branch information
fab-10 and macfarla authored Nov 24, 2024
1 parent 4a629da commit 6a2f4c9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,37 +91,37 @@ public SnapSyncMetricsManager(final MetricsSystem metricsSystem, final EthContex
nbFlatAccountsHealed = new AtomicLong(0);
nbFlatSlotsHealed = new AtomicLong(0);
nbTrieNodesHealed = new AtomicLong(0);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_generated_nodes_total",
"Total number of data nodes generated as part of snap sync world state download",
nbTrieNodesGenerated::get);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_healed_nodes_total",
"Total number of data nodes healed as part of snap sync world state heal process",
nbTrieNodesHealed::get);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_accounts_total",
"Total number of accounts downloaded as part of snap sync world state",
nbAccountsDownloaded::get);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_slots_total",
"Total number of slots downloaded as part of snap sync world state",
nbSlotsDownloaded::get);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_flat_accounts_healed_total",
"Total number of accounts healed in the flat database as part of snap sync world state",
nbFlatAccountsHealed::get);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_flat_slots_healed_total",
"Total number of slots healed in the flat database as part of snap sync world state",
nbFlatSlotsHealed::get);
metricsSystem.createLongGauge(
metricsSystem.createCounter(
BesuMetricCategory.SYNCHRONIZER,
"snap_world_state_codes_total",
"Total number of codes downloaded as part of snap sync world state",
Expand Down

0 comments on commit 6a2f4c9

Please sign in to comment.