diff options
author | Zack Dever <zdever@pandora.com> | 2016-04-07 17:50:37 -0700 |
---|---|---|
committer | Zack Dever <zdever@pandora.com> | 2016-04-13 17:26:39 -0700 |
commit | 00d1a8b5f9fb593055cfabd5f53efb1b0dcc248c (patch) | |
tree | 8acbcfb32ac2a69ddad87635d1d495f29405c40c /kafka/coordinator/base.py | |
parent | e010669b602ffdfddde6fa2a381dad6c3be1f05d (diff) | |
download | kafka-python-00d1a8b5f9fb593055cfabd5f53efb1b0dcc248c.tar.gz |
Changing some commented out metrics to avoid future gotchas.
Diffstat (limited to 'kafka/coordinator/base.py')
-rw-r--r-- | kafka/coordinator/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py index c75eb7c..a4c25a3 100644 --- a/kafka/coordinator/base.py +++ b/kafka/coordinator/base.py @@ -658,7 +658,7 @@ class GroupCoordinatorMetrics(object): self.heartbeat_latency.add(metrics.metricName( "heartbeat-rate", self.group_name, "The average number of heartbeats per second", - tags), metrics.Rate(metrics.Count())) + tags), metrics.Rate(sampled_stat=metrics.Count())) self.join_latency = metrics.sensor("join-latency") self.join_latency.add(metrics.metricName( @@ -672,7 +672,7 @@ class GroupCoordinatorMetrics(object): self.join_latency.add(metrics.metricName( "join-rate", self.group_name, "The number of group joins per second", - tags), metrics.Rate(metrics.Count())) + tags), metrics.Rate(sampled_stat=metrics.Count())) self.sync_latency = metrics.sensor("sync-latency") self.sync_latency.add(metrics.metricName( @@ -686,7 +686,7 @@ class GroupCoordinatorMetrics(object): self.sync_latency.add(metrics.metricName( "sync-rate", self.group_name, "The number of group syncs per second", - tags), metrics.Rate(metrics.Count())) + tags), metrics.Rate(sampled_stat=metrics.Count())) """ lastHeartbeat = Measurable( |