8000 fix: fixed Wait Sampling metrics names · postgrespro/mamonsu@419b4f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 419b4f0

Browse files
committed
fix: fixed Wait Sampling metrics names
1 parent 34c44c2 commit 419b4f0

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

mamonsu/plugins/pgsql/wait_sampling.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ class WaitSampling(Plugin):
1010
AllLockItems = [
1111
# (sql_key, zbx_key, name, color)
1212
("lwlock", "all_lock[lwlock]",
13-
"Lightweight locks", "0000CC"),
13+
"Lightweight Locks", "0000CC"),
1414
("hwlock", "all_lock[hwlock]",
15-
"Heavyweight locks", "00CC00"),
15+
"Heavyweight Locks", "00CC00"),
1616
("buffer", "all_lock[buffer]",
17-
"Buffer locks", "CC0000"),
17+
"Buffer Locks", "CC0000"),
1818
("extension", "all_lock[extension]",
19-
"Extension locks", "8D00D9"),
19+
"Extension Locks", "8D00D9"),
2020
("client", "all_lock[client]",
21-
"Client locks", "5CA8FF"),
21+
"Client Locks", "5CA8FF"),
2222
("other", "all_lock[other]",
23-
"Other locks (e.g. IPC, Timeout, IO)", "B8813E")
23+
"Other Locks (e.g. IPC, Timeout, IO)", "B8813E")
2424
]
2525

2626
AllLockQuery = {
@@ -82,25 +82,25 @@ class WaitSampling(Plugin):
8282
HWLockItems = [
8383
# (sql_key, zbx_key, name, color)
8484
("relation", "hwlock[relation]",
85-
"lock on a relation", "CC0000"),
85+
"Locks on a Relation", "CC0000"),
8686
("extend", "hwlock[extend]",
87-
"extend a relation", "00CC00"),
87+
"Extend a Relation Locks", "00CC00"),
8888
("page", "hwlock[page]",
89-
"lock on page", "0000CC"),
89+
"Locks on a Page", "0000CC"),
9090
("tuple", "hwlock[tuple]",
91-
"lock on a tuple", "CC00CC"),
91+
"Locks on a Tuple", "CC00CC"),
9292
("transactionid", "hwlock[transactionid]",
93-
"transaction to finish", "000000"),
93+
"Transaction to Finish Locks", "000000"),
9494
("virtualxid", "hwlock[virtualxid]",
95-
"virtual xid lock", "CCCC00"),
95+
"Virtual XID Locks", "CCCC00"),
9696
("speculative token", "hwlock[speculative_token]",
97-
"speculative insertion lock", "777777"),
97+
"Speculative Insertion Locks", "777777"),
9898
("object", "hwlock[object]",
99-
"lock on database object", "770000"),
99+
"Locks on Database Object", "770000"),
100100
("userlock", "hwlock[userlock]",
101-
"userlock", "000077"),
101+
"Userlocks", "000077"),
102102
("advisory", "hwlock[advisory]",
103-
"advisory user lock", "007700")
103+
"Advisory User Locks", "007700")
104104
]
105105

106106
HWLockQuery = {
@@ -143,14 +143,14 @@ class WaitSampling(Plugin):
143143

144144
LWLockItems = [
145145
# (sql_key, zbx_key, name, color)
146-
("xid", "lwlock[xid]", "XID access", "BBBB00"),
146+
("xid", "lwlock[xid]", "XID Access Locks", "BBBB00"),
147147
("autovacuum", "lwlock[autovacuum]", "Autovacuum Locks", "5CA8FF"),
148-
("wal", "lwlock[wal]", "WAL access", "CC0000"),
149-
("clog", "lwlock[clog]", "CLOG access", "00CC00"),
148+
("wal", "lwlock[wal]", "WAL Access Locks", "CC0000"),
149+
("clog", "lwlock[clog]", "CLOG Access Locks", "00CC00"),
150150
("replication", "lwlock[replication]", "Replication Locks", "B8813E"),
151151
("logical_replication", "lwlock[logical_replication]", "Logical Replication Locks", "8B00C7"),
152-
("buffer", "lwlock[buffer]", "Buffer operations", "0000CC"),
153-
("other", "lwlock[other]", "Other operations", "007700")]
152+
("buffer", "lwlock[buffer]", "Buffer Bperations Locks", "0000CC"),
153+
("other", "lwlock[other]", "Other Operations Lightweight Locks", "007700")]
154154

155155
LWLockQuery = {
156156
"pg_wait_sampling":

0 commit comments

Comments
 (0)
0