[release-23.0] Add ZooKeeper connection metrics to zk2topo (#19757)#19792
Conversation
|
Hello @MargaretMorehead, there are conflicts in this backport. Please address them in order to merge this Pull Request. You can execute the snippet below to reset your branch and resolve the conflict manually. Make sure you replace |
Signed-off-by: Mohamed Hamza <mhamza@fastmail.com>
Signed-off-by: Mohamed Hamza <mhamza@fastmail.com>
There was a problem hiding this comment.
Pull request overview
Backport that adds ZooKeeper connection observability metrics to the zk2topo connection wrapper to help debug ZooKeeper connectivity/concurrency issues.
Changes:
- Adds three new exported stats variables: lock/semaphore acquisition latency, retry attempts, and connection state transitions.
- Instruments
withRetryto record semaphore wait time and retry count. - Instruments session event handling to count ZooKeeper connection state transitions.
|
Promptless prepared a documentation update related to this change. Triggered by this PR Added documentation for the three new ZooKeeper connection metrics ( Review at https://app.gopromptless.ai/suggestions/296beb0a-ffd9-4ee7-8f33-b65b03bc52ad |
Description
This is a backport of #19757