Skip to content

Commit 9bf7e46

Browse files
billyevans88manpreet
authored andcommitted
Use for join-time-max and sync-time-max metrics Max() measure function (dpkp#1146)
1 parent 6493153 commit 9bf7e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kafka/coordinator/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def __init__(self, heartbeat, metrics, prefix, tags=None):
719719
self.join_latency.add(metrics.metric_name(
720720
'join-time-max', self.metric_group_name,
721721
'The max time taken for a group rejoin',
722-
tags), Avg())
722+
tags), Max())
723723
self.join_latency.add(metrics.metric_name(
724724
'join-rate', self.metric_group_name,
725725
'The number of group joins per second',
@@ -733,7 +733,7 @@ def __init__(self, heartbeat, metrics, prefix, tags=None):
733733
self.sync_latency.add(metrics.metric_name(
734734
'sync-time-max', self.metric_group_name,
735735
'The max time taken for a group sync',
736-
tags), Avg())
736+
tags), Max())
737737
self.sync_latency.add(metrics.metric_name(
738738
'sync-rate', self.metric_group_name,
739739
'The number of group syncs per second',

0 commit comments

Comments
 (0)