Skip to content

Commit 3c4e460

Browse files
cleaning up
Signed-off-by: Elena Kolevska <[email protected]>
1 parent 1f65007 commit 3c4e460

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

metrics.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,6 @@ def update_calculated_metrics(self):
323323
return
324324

325325
with self._lock:
326-
base_labels = {
327-
'app_name': self.app_name,
328-
'service_name': self.service_name,
329-
'instance_id': self.instance_id
330-
}
331-
332326
# Calculate overall throughput and error rate
333327
total_ops = sum(m.total_count for m in self._metrics.values())
334328
total_errors = sum(m.error_count for m in self._metrics.values())

test_runner.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ def _worker_thread(self, pool: RedisClientPool, thread_id: int):
111111
ops_executed = workload.execute_operation()
112112
end_op_time = time.time()
113113

114-
# Record metrics for each operation executed
115-
if ops_executed > 0:
116-
operation_duration = (end_op_time - start_op_time) / ops_executed
117-
for _ in range(ops_executed):
118-
self.metrics.record_operation("BATCH", operation_duration, True)
119-
operation_count += ops_executed
120-
else:
121-
# Record failed operation
122-
operation_duration = end_op_time - start_op_time
123-
self.metrics.record_operation("BATCH", operation_duration, False, "Operation failed")
114+
# # Record metrics for each operation executed
115+
# if ops_executed > 0:
116+
# operation_duration = (end_op_time - start_op_time) / ops_executed
117+
# for _ in range(ops_executed):
118+
# self.metrics.record_operation("BATCH", operation_duration, True)
119+
# operation_count += ops_executed
120+
# else:
121+
# # Record failed operation
122+
# operation_duration = end_op_time - start_op_time
123+
# self.metrics.record_operation("BATCH", operation_duration, False, "Operation failed")
124124

125125
# Rate limiting
126126
if thread_target_ops:

0 commit comments

Comments
 (0)