Skip to content

Commit 78f2229

Browse files
committed
refactoring: deleted redundant 'WAL' in metric names
1 parent 295d452 commit 78f2229

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mamonsu/plugins/pgsql/wal.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def items(self, template, dashboard=False):
8989
else:
9090
delta = Plugin.DELTA_SPEED
9191
result += template.item({
92-
"name": "PostgreSQL WAL: WAL Write Speed",
92+
"name": "PostgreSQL WAL: Write Speed",
9393
"key": self.right_type(self.key_wall),
9494
"units": Plugin.UNITS.bytes_per_second,
9595
"delay": self.plugin_config("interval"),
@@ -99,32 +99,32 @@ def items(self, template, dashboard=False):
9999
"key": self.right_type(self.key_count_wall),
100100
"delay": self.plugin_config("interval")
101101
}) + template.item({
102-
"name": "PostgreSQL WAL: WAL Records Generated",
102+
"name": "PostgreSQL WAL: Records Generated",
103103
"key": self.right_type(self.key_wal_records),
104104
"value_type": self.VALUE_TYPE.numeric_unsigned,
105105
"delta": delta,
106106
}) + template.item({
107-
"name": "PostgreSQL WAL: WAL Full Page Images Generated",
107+
"name": "PostgreSQL WAL: Full Page Images Generated",
108108
"key": self.right_type(self.key_wal_fpi),
109109
"value_type": self.VALUE_TYPE.numeric_unsigned,
110110
"delta": delta,
111111
}) + template.item({
112-
"name": "PostgreSQL WAL: WAL Buffers Full",
112+
"name": "PostgreSQL WAL: Buffers Full",
113113
"key": self.key_wal_buffers_full,
114114
"value_type": self.VALUE_TYPE.numeric_unsigned,
115115
"delta": delta,
116116
}) + template.item({
117-
"name": "PostgreSQL WAL: WAL Write Time (ms)",
117+
"name": "PostgreSQL WAL: Write Time (ms)",
118118
"key": self.key_wal_write_time,
119119
"value_type": self.VALUE_TYPE.numeric_unsigned,
120120
"delta": delta,
121121
}) + template.item({
122-
"name": "PostgreSQL WAL: WAL Sync Time (ms)",
122+
"name": "PostgreSQL WAL: Sync Time (ms)",
123123
"key": self.key_wal_sync_time,
124124
"value_type": self.VALUE_TYPE.numeric_unsigned,
125125
"delta": delta,
126126
}) + template.item({
127-
"name": "PostgreSQL WAL: WAL Sync Duty (%)",
127+
"name": "PostgreSQL WAL: Sync Duty (%)",
128128
"key": self.key_wal_sync_duty,
129129
"value_type": Plugin.VALUE_TYPE.numeric_float,
130130
"units": Plugin.UNITS.percent,

0 commit comments

Comments
 (0)