Skip to content

Commit

Permalink
Detect SIReadLock locks in the pg_locks metric (#421)
Browse files Browse the repository at this point in the history
Co-authored-by: Will Rouesnel <wrouesnel@wrouesnel.com>
  • Loading branch information
ocharles and wrouesnel committed Jan 31, 2021
1 parent 1ba1100 commit 301976c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/postgres_exporter/postgres_exporter.go
Expand Up @@ -379,7 +379,8 @@ var queryOverrides = map[string][]OverrideQuery{
('sharelock'),
('sharerowexclusivelock'),
('exclusivelock'),
('accessexclusivelock')
('accessexclusivelock'),
('sireadlock')
) AS tmp(mode) CROSS JOIN pg_database
LEFT JOIN
(SELECT database, lower(mode) AS mode,count(*) AS count
Expand Down

0 comments on commit 301976c

Please sign in to comment.