Skip to content

Commit d5c8e98

Browse files
committed
Merge branch 'dev'
2 parents 3a7daec + 38d73f2 commit d5c8e98

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

mamonsu/plugins/pgsql/bgwriter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class BgWriter(Plugin):
4848
]
4949

5050
graph_name_buffers = "PostgreSQL bgwriter: Buffers"
51-
graph_name_ws = "PostgreSQL bgwriter: Events"
51+
graph_name_ws = "PostgreSQL bgwriter: Write/Sync"
5252

5353
def run(self, zbx):
5454
columns = [x[0] for x in self.Items]

mamonsu/plugins/pgsql/statements.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,34 @@ class Statements(Plugin):
3434
# zbx_key, sql, desc, unit, delta, (Graph, color, side)
3535
Items = [
3636
("stat[read_bytes]",
37-
"sum(shared_blks_read+local_blks_read+temp_blks_read)*8*1024",
37+
"(sum(shared_blks_read+local_blks_read+temp_blks_read)*8*1024)::bigint",
3838
"Read bytes/s", Plugin.UNITS.bytes_per_second, Plugin.DELTA.speed_per_second,
3939
("PostgreSQL Statements: Bytes", "87C2B9", 0)),
4040
("stat[write_bytes]",
41-
"sum(shared_blks_written+local_blks_written"
42-
"+temp_blks_written)*8*1024",
41+
"(sum(shared_blks_written+local_blks_written+temp_blks_written)*8*1024)::bigint",
4342
"Write bytes/s", Plugin.UNITS.bytes_per_second, Plugin.DELTA.speed_per_second,
4443
("PostgreSQL Statements: Bytes", "793F5D", 0)),
4544
("stat[dirty_bytes]",
46-
"sum(shared_blks_dirtied+local_blks_dirtied)*8*1024",
45+
"(sum(shared_blks_dirtied+local_blks_dirtied)*8*1024)::bigint",
4746
"Dirty bytes/s", Plugin.UNITS.bytes_per_second, Plugin.DELTA.speed_per_second,
4847
("PostgreSQL Statements: Bytes", "9C8A4E", 0)),
4948

5049
("stat[read_time]",
51-
"sum(blk_read_time)/float4(100)",
50+
"(sum(blk_read_time)/float4(100))::bigint",
5251
"Read IO Time", Plugin.UNITS.s, Plugin.DELTA.speed_per_second,
5352
("PostgreSQL Statements: Spent Time", "87C2B9", 0)),
5453
("stat[write_time]",
55-
"sum(blk_write_time)/float4(100)",
54+
"(sum(blk_write_time)/float4(100))::bigint",
5655
"Write IO Time", Plugin.UNITS.s, Plugin.DELTA.speed_per_second,
5756
("PostgreSQL Statements: Spent Time", "793F5D", 0)),
5857
["stat[other_time]",
59-
"sum({0}-blk_read_time-blk_write_time)/float4(100)",
58+
"(sum({0}-blk_read_time-blk_write_time)/float4(100))::bigint",
6059
"Other (mostly CPU) Time", Plugin.UNITS.s, Plugin.DELTA.speed_per_second,
6160
("PostgreSQL Statements: Spent Time", "9C8A4E", 0)]]
6261

6362
Items_pg_13 = [
6463
("stat[wal_bytes]",
65-
"sum(wal_bytes)",
64+
"sum(wal_bytes)::bigint",
6665
"Amount of WAL Files", Plugin.UNITS.bytes_per_second, Plugin.DELTA.speed_per_second,
6766
("PostgreSQL Statements: WAL Statistics", "00B0B8", 0)),
6867
("stat[wal_records]",

0 commit comments

Comments
 (0)