A deadlock is a situation when two or more programs, processes, or other components are mutually waiting for the other in order to access a resource, which prevents all of them from proceeding.
We use deadlock creation rate in order to monitor and track deadlock. For more information on monitoring PostgreSQL clusters, see How to Monitor PostgreSQL Database Performance.