Skip to content

Commit

Permalink
Update kafka_consumer/datadog_checks/kafka_consumer/kafka_consumer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Zhang <andrew.zhang@datadoghq.com>
  • Loading branch information
FlorentClarret and yzhan289 authored Mar 15, 2023
1 parent 5674f27 commit 025c343
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def check(self, _):
highwater_offsets = {}
try:
if len(consumer_offsets) < self._context_limit:
# Fetch highwater offsets
# Expected format: {(topic, partition): offset}
highwater_offsets = self.client.get_highwater_offsets(consumer_offsets)
else:
self.warning("Context limit reached. Skipping highwater offset collection.")
Expand Down

0 comments on commit 025c343

Please sign in to comment.