Skip to content

Commit a212196

Browse files
committed
chore(orchestrator): CON-1231 Remove unused metrics
1 parent a88096e commit a212196

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

rs/orchestrator/src/firewall.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,12 @@ impl Firewall {
468468
"Checking for firewall config registry version: {}", registry_version
469469
);
470470

471-
match self.check_for_firewall_config(registry_version).await {
472-
Ok(()) => self
473-
.metrics
474-
.datacenter_registry_version
475-
.set(registry_version.get() as i64),
476-
Err(e) => info!(
471+
if let Err(e) = self.check_for_firewall_config(registry_version).await {
472+
info!(
477473
self.logger,
478474
"Failed to check for firewall config at version {}: {}", registry_version, e
479-
),
480-
};
475+
)
476+
}
481477
}
482478

483479
pub fn get_last_applied_version(&self) -> Arc<RwLock<RegistryVersion>> {

rs/orchestrator/src/metrics.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ pub const PROMETHEUS_HTTP_PORT: u16 = 9091;
66

77
#[derive(Clone)]
88
pub struct OrchestratorMetrics {
9-
pub heart_beat_count: IntCounter,
10-
pub resident_mem_used: IntGauge,
11-
/// Registry version last used to successfully fetch datacenter information
12-
pub datacenter_registry_version: IntGauge,
139
pub ssh_access_registry_version: IntGauge,
1410
pub firewall_registry_version: IntGauge,
1511
pub reboot_duration: IntGauge,
@@ -45,18 +41,6 @@ impl KeyRotationStatus {
4541
impl OrchestratorMetrics {
4642
pub fn new(metrics_registry: &ic_metrics::MetricsRegistry) -> Self {
4743
Self {
48-
heart_beat_count: metrics_registry.int_counter(
49-
"replica_heart_beat_count",
50-
"Number of times a process heart beat has been observed for the Subnet Replica",
51-
),
52-
resident_mem_used: metrics_registry.int_gauge(
53-
"replica_resident_memory_used",
54-
"Resident memory allocated by the Subnet Replica in bytes",
55-
),
56-
datacenter_registry_version: metrics_registry.int_gauge(
57-
"datacenter_registry_version",
58-
"Registry version last used to successfully fetch datacenter information",
59-
),
6044
ssh_access_registry_version: metrics_registry.int_gauge(
6145
"ssh_access_registry_version",
6246
"Registry version last used to update the SSH public keys",

0 commit comments

Comments
 (0)