diff --git a/documentation/metrics.md b/documentation/metrics.md index acbcda8..a157eab 100644 --- a/documentation/metrics.md +++ b/documentation/metrics.md @@ -3250,7 +3250,7 @@ Default config:
Name | -PostgreSQL Locks: ALTER TABLE, DROP TABLE, TRUNCATE, REINDEX, CLUSTER, VACUUM FULL, LOCK TABLE | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like DROP TABLE, TRUNCATE, REINDEX, CLUSTER, VACUUM FULL, REFRESH MATERIALIZED VIEW, LOCK TABLE and some forms of ALTER INDEX and ALTER TABLE | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Key | @@ -3283,7 +3283,7 @@ Default config:
Name | -PostgreSQL Locks: Read Only Queries | +PostgreSQL Locks: total number of locks acquired (or waiting) by queries that only reads tables and do not modify | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Key | @@ -3316,7 +3316,7 @@ Default config:
Name | -PostgreSQL Locks: Locks From Application or Some Operations on System Catalogs | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like REFRESH MATERIALIZED VIEW CONCURRENTLY | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Key | @@ -3349,7 +3349,7 @@ Default config:
Name | -PostgreSQL Locks: Write Queries | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like UPDATE, DELETE, INSERT and MERGE | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Key | @@ -3382,7 +3382,7 @@ Default config:
Name | -PostgreSQL Locks: SELECT FOR SHARE and SELECT FOR UPDATE | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like SELECT FOR SHARE and SELECT FOR UPDATE | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Key | @@ -3415,7 +3415,7 @@ Default config:
Name | -PostgreSQL Locks: Locks From Application | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like CREATE TRIGGER and some forms of ALTER TABLE | ||||||
---|---|---|---|---|---|---|---|---|
Key | @@ -3448,7 +3448,7 @@ Default config:
Name | -PostgreSQL Locks: VACUUM, ANALYZE, CREATE INDEX CONCURRENTLY | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like VACUUM, ANALYZE, CREATE INDEX CONCURRENTLY, CREATE STATISTICS, COMMENT ON, REINDEX CONCURRENTLY, and some forms of ALTER INDEX and ALTER TABLE | ||
---|---|---|---|---|
Key | @@ -3481,7 +3481,7 @@ Default config:
Name | -PostgreSQL Locks: CREATE INDEX | +PostgreSQL Locks: total number of locks acquired (or waiting) by all queries like CREATE INDEX |
---|---|---|
Key | diff --git a/mamonsu/plugins/pgsql/pg_locks.py b/mamonsu/plugins/pgsql/pg_locks.py index 5799b51..63a3be4 100644 --- a/mamonsu/plugins/pgsql/pg_locks.py +++ b/mamonsu/plugins/pgsql/pg_locks.py @@ -22,28 +22,28 @@ class PgLocks(Plugin): Items = [ # key, desc, color ("accessshare", - "Read Only Queries", + "total number of locks acquired (or waiting) by queries that only reads tables and do not modify", "00CC00"), ("rowshare", - "SELECT FOR SHARE and SELECT FOR UPDATE", + "total number of locks acquired (or waiting) by all queries like SELECT FOR SHARE and SELECT FOR UPDATE", "3B415A"), ("rowexclusive", - "Write Queries", + "total number of locks acquired (or waiting) by all queries like UPDATE, DELETE, INSERT and MERGE", "FF5656"), ("shareupdateexclusive", - "VACUUM, ANALYZE, CREATE INDEX CONCURRENTLY", + "total number of locks acquired (or waiting) by all queries like VACUUM, ANALYZE, CREATE INDEX CONCURRENTLY, CREATE STATISTICS, COMMENT ON, REINDEX CONCURRENTLY, and some forms of ALTER INDEX and ALTER TABLE", "F6CB93"), ("share", - "CREATE INDEX", + "total number of locks acquired (or waiting) by all queries like CREATE INDEX", "006AAE"), ("sharerowexclusive", - "Locks from Application", + "total number of locks acquired (or waiting) by all queries like CREATE TRIGGER and some forms of ALTER TABLE", "00B0B8"), ("exclusive", - "Locks from Application or Some Operations on System Catalogs", + "total number of locks acquired (or waiting) by all queries like REFRESH MATERIALIZED VIEW CONCURRENTLY", "9C8A4E"), ("accessexclusive", - "ALTER TABLE, DROP TABLE, TRUNCATE, REINDEX, CLUSTER, VACUUM FULL, LOCK TABLE", + "total number of locks acquired (or waiting) by all queries like DROP TABLE, TRUNCATE, REINDEX, CLUSTER, VACUUM FULL, REFRESH MATERIALIZED VIEW, LOCK TABLE and some forms of ALTER INDEX and ALTER TABLE", "793F5D") ]