diff --git a/src/metrics.rs b/src/metrics.rs index dc942c7..b7778c0 100644 --- a/src/metrics.rs +++ b/src/metrics.rs @@ -16,8 +16,6 @@ pub type Metrics = HashMap>; // The number of Nanos in the node reward wallet. pub const METRIC_KEY_BALANCE: &str = "ant_node_current_reward_wallet_balance"; -// The store cost of the node. -pub const METRIC_KEY_STORE_COST: &str = "ant_networking_store_cost"; // Memory used by the process in MegaBytes. pub const METRIC_KEY_MEM_USED_MB: &str = "ant_networking_process_memory_used_mb"; // The percentage of CPU used by the process. Value is from 0-100. diff --git a/src/metrics_client.rs b/src/metrics_client.rs index 615200c..69d26ab 100644 --- a/src/metrics_client.rs +++ b/src/metrics_client.rs @@ -14,9 +14,8 @@ use thiserror::Error; const DEFAULT_NODES_METRICS_HOST: &str = "127.0.0.1"; // Predefined set of metrics to monitor and collect. -const NODE_METRICS_TO_COLLECT: [&str; 10] = [ +const NODE_METRICS_TO_COLLECT: [&str; 9] = [ METRIC_KEY_BALANCE, - METRIC_KEY_STORE_COST, METRIC_KEY_MEM_USED_MB, METRIC_KEY_CPU_USEAGE, METRIC_KEY_RECORDS, @@ -142,10 +141,6 @@ impl NodesMetrics { info.rewards = U256::from_str(&metric.value).ok(); } - if let Some(metric) = metrics.get(METRIC_KEY_STORE_COST) { - info.store_cost = metric.value.parse::().ok(); - } - if let Some(metric) = metrics.get(METRIC_KEY_MEM_USED_MB) { info.mem_used = metric.value.parse::().ok(); } diff --git a/src/node_instance.rs b/src/node_instance.rs index c016df3..604296e 100644 --- a/src/node_instance.rs +++ b/src/node_instance.rs @@ -99,7 +99,6 @@ pub struct NodeInstanceInfo { pub rewards: Option, pub records: Option, pub relevant_records: Option, - pub store_cost: Option, pub mem_used: Option, pub cpu_usage: Option, pub connected_peers: Option, diff --git a/src/nodes_list_view.rs b/src/nodes_list_view.rs index cdd1a5f..40bc340 100644 --- a/src/nodes_list_view.rs +++ b/src/nodes_list_view.rs @@ -367,12 +367,6 @@ fn NodeInstanceView(

-

- "Store cost: " - {move || { - info.read().store_cost.map_or(" -".to_string(), |v| v.to_string()) - }} -