Skip to content

Commit 301976c

Browse files
ocharleswrouesnel
andauthored
Detect SIReadLock locks in the pg_locks metric (prometheus-community#421)
Co-authored-by: Will Rouesnel <[email protected]>
1 parent 1ba1100 commit 301976c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ var queryOverrides = map[string][]OverrideQuery{
379379
('sharelock'),
380380
('sharerowexclusivelock'),
381381
('exclusivelock'),
382-
('accessexclusivelock')
382+
('accessexclusivelock'),
383+
('sireadlock')
383384
) AS tmp(mode) CROSS JOIN pg_database
384385
LEFT JOIN
385386
(SELECT database, lower(mode) AS mode,count(*) AS count

0 commit comments

Comments
 (0)