Skip to content

Commit 2a4e44b

Browse files
committed
fix: fixed Instance plugin graph names
1 parent 3fcb12d commit 2a4e44b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

mamonsu/plugins/pgsql/instance.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,54 @@ class Instance(Plugin):
1818
# ('graph name', color, side), units, delta
1919

2020
("xact_commit", "transactions[committed]", "Transactions Committed",
21-
("PostgreSQL instance: transactions rate", "578159", 0),
21+
("PoPostgreSQL Instance: Transactions Rate", "578159", 0),
2222
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
2323
("blks_hit", "blocks[hit]", "Blocks Hit",
24-
("PostgreSQL instance: blocks rate", "7EB29B", 0),
24+
("PostgreSQL Instance: Blocks Rate", "7EB29B", 0),
2525
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
2626
("blks_read", "blocks[read]", "Blocks Read",
27-
("PostgreSQL instance: blocks rate", "793F5D", 0),
27+
("PostgreSQL Instance: Blocks Rate", "793F5D", 0),
2828
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
2929

3030
("conflicts", "events[conflicts]", "Conflict Events",
31-
("PostgreSQL instance: events", "9C8A4E", 0),
31+
("PostgreSQL Instance: Events", "9C8A4E", 0),
3232
Plugin.UNITS.none, Plugin.DELTA.simple_change),
3333
("deadlocks", "events[deadlocks]", "Deadlock Events",
34-
("PostgreSQL instance: events", "3B415A", 0),
34+
("PostgreSQL Instance: Events", "3B415A", 0),
3535
Plugin.UNITS.none, Plugin.DELTA.simple_change),
3636
("xact_rollback", "events[xact_rollback]", "Rollback Events",
37-
("PostgreSQL instance: transactions rate", "E57862", 0),
37+
("PoPostgreSQL Instance: Transactions Rate", "E57862", 0),
3838
Plugin.UNITS.none, Plugin.DELTA.simple_change),
3939

4040
("temp_bytes", "temp[bytes]", "Temp Bytes Written",
41-
("PostgreSQL instance: temp files", "00B0B8", 0),
41+
("PostgreSQL Instance: Temp Files", "00B0B8", 0),
4242
Plugin.UNITS.bytes, Plugin.DELTA.simple_change),
4343
("temp_files", "temp[files]", "Temp Files Created",
44-
("PostgreSQL instance: temp files", "0082A5", 1),
44+
("PostgreSQL Instance: Temp Files", "0082A5", 1),
4545
Plugin.UNITS.none, Plugin.DELTA.simple_change),
4646

4747
# stacked
4848
("tup_deleted", "tuples[deleted]", "Tuples Deleted",
49-
("PostgreSQL instance: tuples", "3B415A", 0),
49+
("PostgreSQL Instance: Tuples", "3B415A", 0),
5050
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
5151
("tup_fetched", "tuples[fetched]", "Tuples Fetched",
52-
("PostgreSQL instance: tuples", "7EB29B", 0),
52+
("PostgreSQL Instance: Tuples", "7EB29B", 0),
5353
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
5454
("tup_inserted", "tuples[inserted]", "Tuples Inserted",
55-
("PostgreSQL instance: tuples", "00B0B8", 0),
55+
("PostgreSQL Instance: Tuples", "00B0B8", 0),
5656
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
5757
("tup_returned", "tuples[returned]", "Tuples Returned",
58-
("PostgreSQL instance: tuples", "9C8A4E", 1),
58+
("PostgreSQL Instance: Tuples", "9C8A4E", 1),
5959
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
6060
("tup_updated", "tuples[updated]", "Tuples Updated",
61-
("PostgreSQL instance: tuples", "6A4F5F", 0),
61+
("PostgreSQL Instance: Tuples", "6A4F5F", 0),
6262
Plugin.UNITS.none, Plugin.DELTA.speed_per_second),
6363
]
6464
Items_pg_12 = [
6565
# key, zbx_key, description,
6666
# ('graph name', color, side), units, delta
6767
("checksum_failures", "events[checksum_failures]", "checksum_failures Events",
68-
("PostgreSQL instance: events", "793F5D", 0),
68+
("PostgreSQL Instance: Events", "793F5D", 0),
6969
Plugin.UNITS.none, Plugin.DELTA.simple_change)
7070
]
7171

@@ -78,7 +78,7 @@ class Instance(Plugin):
7878

7979
graphs_name = {
8080
"transactions": "PostgreSQL Instance: Blocks Rate",
81-
"blocks": "PostgreSQL Instance: Transactions Rate",
81+
"blocks": "PoPostgreSQL Instance: Transactions Rate",
8282
"events": "PostgreSQL Instance: Events",
8383
"temp": "PostgreSQL Instance: Temp Files",
8484
"tuples": "PostgreSQL Instance: Tuples"}

0 commit comments

Comments
 (0)