8000 fix: fixed WAL plugin class name · postgrespro/mamonsu@485d568 · GitHub
[go: up one dir, main page]

Skip to content

Commit 485d568

Browse files
committed
fix: fixed WAL plugin class name
1 parent ae604dc commit 485d568

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

mamonsu/plugins/pgsql/wal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
NUMBER_NON_ACTIVE_SLOTS = 0
99

1010

11-
class Xlog(Plugin):
11+
class Wal(Plugin):
1212
AgentPluginType = "pg"
1313
DEFAULT_CONFIG = {
1414
"lag_more_than_in_sec": str(60 * 5)

mamonsu/tools/zabbix_cli/dashboard.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from mamonsu.plugins.pgsql.oldest import Oldest
1111
from mamonsu.plugins.pgsql.pg_buffercache import PgBufferCache
1212
from mamonsu.plugins.pgsql.pg_locks import PgLocks
13-
from mamonsu.plugins.pgsql.wal import Xlog
13+
from mamonsu.plugins.pgsql.wal import Wal
1414
from mamonsu.plugins.system.linux.memory import Memory
1515
from mamonsu.plugins.system.linux.proc_stat import ProcStat
1616

@@ -1071,11 +1071,11 @@ def generate_dashboard(template, uuid):
10711071
Instance.graphs_name["events"],
10721072
ArchiveCommand.key.format("[" + ArchiveCommand.Items[3][0] + "]"),
10731073
ArchiveCommand.key.format("[" + ArchiveCommand.Items[0][0] + "]"),
1074-
Xlog.key_non_active_slots.format("[]"),
1074+
Wal.key_non_active_slots.format("[]"),
10751075
Oldest.key.format("[transaction_time]"),
10761076
PgHealth.key_ping.format("[]"),
10771077
PgHealth.key_version.format("[]"),
1078-
Xlog.key_replication.format("[sec]"),
1078+
Wal.key_replication.format("[sec]"),
10791079
ArchiveCommand.key.format("[" + ArchiveCommand.Items[1][0] + "]"),
10801080
Instance.key + Instance.Items[6][1],
10811081
Instance.key + Instance.Items[7][1],
@@ -1085,7 +1085,7 @@ def generate_dashboard(template, uuid):
10851085
Instance.key + Instance.Items[10][1],
10861086
Instance.key + Instance.Items[11][1],
10871087
PgHealth.key_uptime.format("[]"),
1088-
Xlog.key_wal_records.format("[]"),
1089-
Xlog.key_wal_sync_duty,
1090-
Xlog.key_wall.format("[]"),
1088+
Wal.key_wal_records.format("[]"),
1089+
Wal.key_wal_sync_duty,
1090+
Wal.key_wall.format("[]"),
10911091
uuid).replace("\\r\\n", " ").split())

0 commit comments

Comments
 (0)
0