You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you trying to get lag inline as you consume, or from a sidechannel?
If the latter, I just put up some code for doing that based on the KafkaAdminClient here: DataDog/integrations-core#2730
The methods should be able to be pulled out and re-used pretty easily for any monitoring system, not just DataDog.
And I do recommend fetching this data from a side channel, because if you fetch from the Consumer and for some reason it can't talk to the cluster or is deadlocked, it may not realize it's falling behind.
Dear kafka-python team,
Im trying to get lag from topics. I read and try the following issues:
#509
#1643
based on comment:
I tried the following code (based an some others post from stackoverflow and issues)
I get always highwater None.
What would be the correct way to get lag?
Thanks,
Pablo.
The text was updated successfully, but these errors were encountered: