An error occurred while fetching the assigned iteration of the selected issue.
Add alert for abnormal increase of exclusive locks
When we see this:
I would like to get some form of alert so we are aware, because in the middle of the noise it's hard to tell that we are actually orders of magnitude over the standard exclusive locks rate.
This is one the main symptoms of people not being able to comment on issues - we were deleting a user that was too ingrained in the system because he was marked as spam, and it was failing (luckily) because it took too much time to complete the transaction.
ALERT ...
IF pg_locks_count{...} / avg_over_time(pg_locks_count{...}[1h]) > 5
FOR 5m
...
and
ALERT PostgresTooManyRowExclusiveLocks
IF pg_locks_count{mode="rowexclusivelock"} > 100
FOR 5m
...