Skip to content

Commit 5e79cd4

Browse files
committed
Initialize error counters to zero
1 parent 7750587 commit 5e79cd4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/soak/soakclient.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ def filter_config(conf, filter_out, strip_prefix):
448448
self.logger.info("consumer: using group.id {}".format(cconf['group.id']))
449449
self.consumer = Consumer(cconf)
450450

451+
# Initialize some counters to zero to make them appear in the metrics
452+
self.incr_counter("consumer.error", 0)
453+
self.incr_counter("consumer.msgdup", 0)
454+
self.incr_counter("producer.errorcb", 0)
455+
451456
# Create and start producer thread
452457
self.producer_thread = threading.Thread(target=self.producer_thread_main)
453458
self.producer_thread.start()

0 commit comments

Comments
 (0)