yugabyte-db
yugabyte-db copied to clipboard
[dst] Improve metrics collection related-to pessimistic locking
Jira Link: DB-3160 Some examples:
- latency of deadlock detection (min, max, avg)
- avg cycle length in deadlock detection
- deadlocks detected per second
- wait time in wait queue
- number of blockers for a waiter (min, max, avg)
- number of waiters for a blocker (min, max, avg)
More TBD
Ensure also that memory usage of deadlock_detector and wait_queue are captured by mem tracker