From cd503a210ee4994e57bc16542fc145cc2e94aab6 Mon Sep 17 00:00:00 2001 From: Imbris Date: Thu, 16 Jun 2022 22:08:12 -0400 Subject: [PATCH] Remove tick_count since we can already get a count of ticks via `tick_time_hist_count`. --- server/src/lib.rs | 1 - server/src/metrics.rs | 7 ------- 2 files changed, 8 deletions(-) diff --git a/server/src/lib.rs b/server/src/lib.rs index 8f7ea9990a..39adc8fa4b 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -1023,7 +1023,6 @@ impl Server { .duration_since(before_state_tick) .as_secs_f64(), ); - tick_metrics.tick_count.inc(); } // 9) Finish the tick, pass control back to the frontend. diff --git a/server/src/metrics.rs b/server/src/metrics.rs index c49b116148..ac4a2e9d5d 100644 --- a/server/src/metrics.rs +++ b/server/src/metrics.rs @@ -62,7 +62,6 @@ pub struct TickMetrics { pub start_time: IntGauge, pub time_of_day: Gauge, pub light_count: IntGauge, - pub tick_count: IntCounter, } pub struct ServerEventMetrics { @@ -372,10 +371,6 @@ impl TickMetrics { ) .buckets(bucket), )?; - let tick_count = IntCounter::with_opts(Opts::new( - "tick_count", - "counts the number of ticks that have been processed", - ))?; let since_the_epoch = SystemTime::now() .duration_since(UNIX_EPOCH) @@ -392,7 +387,6 @@ impl TickMetrics { registry.register(Box::new(light_count.clone()))?; registry.register(Box::new(tick_time.clone()))?; registry.register(Box::new(tick_time_hist.clone()))?; - registry.register(Box::new(tick_count.clone()))?; Ok(Self { chonks_count, @@ -405,7 +399,6 @@ impl TickMetrics { start_time, time_of_day, light_count, - tick_count, }) } }