mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-07 01:31:26 +00:00
Detect SIReadLock locks in the pg_locks metric (#421)
Co-authored-by: Will Rouesnel <wrouesnel@wrouesnel.com>
This commit is contained in:
parent
1ba1100a72
commit
301976c218
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user