mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-22 23:15: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'),
|
('sharelock'),
|
||||||
('sharerowexclusivelock'),
|
('sharerowexclusivelock'),
|
||||||
('exclusivelock'),
|
('exclusivelock'),
|
||||||
('accessexclusivelock')
|
('accessexclusivelock'),
|
||||||
|
('sireadlock')
|
||||||
) AS tmp(mode) CROSS JOIN pg_database
|
) AS tmp(mode) CROSS JOIN pg_database
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(SELECT database, lower(mode) AS mode,count(*) AS count
|
(SELECT database, lower(mode) AS mode,count(*) AS count
|
||||||
|
Loading…
Reference in New Issue
Block a user