Kafka plugin not tracking consumer lag
A recent change caused our kafka consumer offset to get stuck at 0. This resulted in our kafka.consumer_lag measurement not properly tracking the consumer offset. Change-Id: I76f5ac912a0b27818b2311d5d9eaf0119a2019d2 Closes-Bug:#1567057
This commit is contained in:
parent
6f59dd31d6
commit
5e71ddaf54
|
@ -76,6 +76,7 @@ class KafkaCheck(checks.AgentCheck):
|
|||
consumer_group,
|
||||
topic,
|
||||
auto_commit=False)
|
||||
kafka_consumer.fetch_last_known_offsets()
|
||||
|
||||
partitions = kafka_consumer.offsets.keys()
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in New Issue