11use once_cell:: sync:: Lazy ;
2- use prometheus:: { GaugeVec , HistogramVec , IntCounter , IntCounterVec , IntGaugeVec } ;
2+ use prometheus:: { GaugeVec , HistogramVec , IntCounter , IntGaugeVec } ;
33use spacetimedb_datastore:: {
44 db_metrics:: DB_METRICS , execution_context:: WorkloadType , locking_tx_datastore:: datastore:: MetricsRecorder ,
55} ;
@@ -8,11 +8,6 @@ use spacetimedb_metrics::metrics_group;
88
99metrics_group ! (
1010 pub struct EngineMetrics {
11- #[ name = spacetime_num_bytes_sent_to_clients_total]
12- #[ help = "The cumulative number of bytes sent to clients" ]
13- #[ labels( txn_type: WorkloadType , db: Identity ) ]
14- pub bytes_sent_to_clients: IntCounterVec ,
15-
1611 #[ name = spacetime_replay_total_time_seconds]
1712 #[ help = "Total time spent replaying a database upon restart, including snapshot read, snapshot restore and commitlog replay" ]
1813 #[ labels( db: Identity ) ]
@@ -121,7 +116,6 @@ pub struct ExecutionCounters {
121116 rdb_num_rows_scanned : IntCounter ,
122117 rdb_num_bytes_scanned : IntCounter ,
123118 rdb_num_bytes_written : IntCounter ,
124- bytes_sent_to_clients : IntCounter ,
125119 delta_queries_matched : IntCounter ,
126120 delta_queries_evaluated : IntCounter ,
127121 duplicate_rows_evaluated : IntCounter ,
@@ -135,7 +129,6 @@ impl ExecutionCounters {
135129 rdb_num_rows_scanned : DB_METRICS . rdb_num_rows_scanned . with_label_values ( workload, db) ,
136130 rdb_num_bytes_scanned : DB_METRICS . rdb_num_bytes_scanned . with_label_values ( workload, db) ,
137131 rdb_num_bytes_written : DB_METRICS . rdb_num_bytes_written . with_label_values ( workload, db) ,
138- bytes_sent_to_clients : ENGINE_METRICS . bytes_sent_to_clients . with_label_values ( workload, db) ,
139132 delta_queries_matched : DB_METRICS . delta_queries_matched . with_label_values ( db) ,
140133 delta_queries_evaluated : DB_METRICS . delta_queries_evaluated . with_label_values ( db) ,
141134 duplicate_rows_evaluated : DB_METRICS . duplicate_rows_evaluated . with_label_values ( db) ,
@@ -156,9 +149,6 @@ impl ExecutionCounters {
156149 if metrics. bytes_written > 0 {
157150 self . rdb_num_bytes_written . inc_by ( metrics. bytes_written as u64 ) ;
158151 }
159- if metrics. bytes_sent_to_clients > 0 {
160- self . bytes_sent_to_clients . inc_by ( metrics. bytes_sent_to_clients as u64 ) ;
161- }
162152 if metrics. delta_queries_matched > 0 {
163153 self . delta_queries_matched . inc_by ( metrics. delta_queries_matched ) ;
164154 }
0 commit comments