Cleanup metrics (#4230)
This commit is contained in:
@ -8,7 +8,7 @@ use crate::message_processor::has_duplicates;
|
||||
use bincode::serialize;
|
||||
use hashbrown::{HashMap, HashSet};
|
||||
use log::*;
|
||||
use solana_metrics::counter::Counter;
|
||||
use solana_metrics::inc_new_counter_info;
|
||||
use solana_sdk::account::Account;
|
||||
use solana_sdk::fee_calculator::FeeCalculator;
|
||||
use solana_sdk::hash::{Hash, Hasher};
|
||||
|
@ -13,8 +13,7 @@ use crate::status_cache::StatusCache;
|
||||
use bincode::serialize;
|
||||
use hashbrown::HashMap;
|
||||
use log::*;
|
||||
use solana_metrics::counter::Counter;
|
||||
use solana_metrics::influxdb;
|
||||
use solana_metrics::{datapoint, inc_new_counter_info};
|
||||
use solana_sdk::account::Account;
|
||||
use solana_sdk::fee_calculator::FeeCalculator;
|
||||
use solana_sdk::genesis_block::GenesisBlock;
|
||||
@ -245,14 +244,11 @@ impl Bank {
|
||||
|
||||
bank.slot = slot;
|
||||
bank.max_tick_height = (bank.slot + 1) * bank.ticks_per_slot - 1;
|
||||
solana_metrics::submit(
|
||||
influxdb::Point::new("bank-new_from_parent-heights")
|
||||
.add_field("slot_height", influxdb::Value::Integer(slot as i64))
|
||||
.add_field(
|
||||
"bank_height",
|
||||
influxdb::Value::Integer(bank.bank_height as i64),
|
||||
)
|
||||
.to_owned(),
|
||||
|
||||
datapoint!(
|
||||
"bank-new_from_parent-heights",
|
||||
("slot_height", slot, i64),
|
||||
("bank_height", bank.bank_height, i64)
|
||||
);
|
||||
|
||||
bank.parent = RwLock::new(Some(parent.clone()));
|
||||
@ -330,17 +326,10 @@ impl Bank {
|
||||
.for_each(|p| self.status_cache.write().unwrap().add_root(p.slot()));
|
||||
let squash_cache_ms = duration_as_ms(&squash_cache_start.elapsed());
|
||||
|
||||
solana_metrics::submit(
|
||||
influxdb::Point::new("counter-locktower-observed")
|
||||
.add_field(
|
||||
"squash_accounts_ms",
|
||||
influxdb::Value::Integer(squash_accounts_ms as i64),
|
||||
)
|
||||
.add_field(
|
||||
"squash_cache_ms",
|
||||
influxdb::Value::Integer(squash_cache_ms as i64),
|
||||
)
|
||||
.to_owned(),
|
||||
datapoint!(
|
||||
"locktower-observed",
|
||||
("squash_accounts_ms", squash_accounts_ms, i64),
|
||||
("squash_cache_ms", squash_cache_ms, i64)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user