Skip to content

Commit a3a4c66

Browse files
authored
Detect SIReadLock locks in the pg_locks metric
1 parent e2df41f commit a3a4c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ var queryOverrides = map[string][]OverrideQuery{
366366
('sharelock'),
367367
('sharerowexclusivelock'),
368368
('exclusivelock'),
369-
('accessexclusivelock')
369+
('accessexclusivelock'),
370+
('sireadlock')
370371
) AS tmp(mode) CROSS JOIN pg_database
371372
LEFT JOIN
372373
(SELECT database, lower(mode) AS mode,count(*) AS count

0 commit comments

Comments
 (0)