@@ -64,23 +64,23 @@ def run(self, zbx):
64
64
result = Pooler .query ("""
65
65
SELECT wal_records FROM pg_stat_wal;
66
66
""" )
67
- zbx .send (self .key_wal_records .format ("[]" ), int (result [0 ][0 ]))
67
+ zbx .send (self .key_wal_records .format ("[]" ), int (result [0 ][0 ]), self . DELTA_SPEED )
68
68
result = Pooler .query ("""
69
69
SELECT wal_fpi FROM pg_stat_wal;
70
70
""" )
71
- zbx .send (self .key_wal_fpi .format ("[]" ), int (result [0 ][0 ]))
71
+ zbx .send (self .key_wal_fpi .format ("[]" ), int (result [0 ][0 ]), self . DELTA_SPEED )
72
72
result = Pooler .query ("""
73
73
SELECT wal_buffers_full FROM pg_stat_wal;
74
74
""" )
75
- zbx .send (self .key_wal_buffers_full .format ("[]" ), int (result [0 ][0 ]))
75
+ zbx .send (self .key_wal_buffers_full .format ("[]" ), int (result [0 ][0 ]), self . DELTA_SPEED )
76
76
result = Pooler .query ("""
77
77
SELECT wal_write_time FROM pg_stat_wal;
78
78
""" )
79
- zbx .send (self .key_wal_write_time .format ("[]" ), int (result [0 ][0 ]))
79
+ zbx .send (self .key_wal_write_time .format ("[]" ), int (result [0 ][0 ]), self . DELTA_SPEED )
80
80
result = Pooler .query ("""
81
81
SELECT wal_sync_time FROM pg_stat_wal;
82
82
""" )
83
- zbx .send (self .key_wal_sync_time .format ("[]" ), int (result [0 ][0 ]))
83
+ zbx .send (self .key_wal_sync_time .format ("[]" ), int (result [0 ][0 ]), self . DELTA_SPEED )
84
84
85
85
def items (self , template , dashboard = False ):
86
86
result = ""
@@ -101,27 +101,27 @@ def items(self, template, dashboard=False):
101
101
}) + template .item ({
102
102
"name" : "PostgreSQL WAL: Records Generated" ,
103
103
"key" : self .right_type (self .key_wal_records ),
104
- "value_type" : self .VALUE_TYPE .numeric_unsigned ,
104
+ "value_type" : self .VALUE_TYPE .numeric_float ,
105
105
"delta" : delta ,
106
106
}) + template .item ({
107
107
"name" : "PostgreSQL WAL: Full Page Images Generated" ,
108
108
"key" : self .right_type (self .key_wal_fpi ),
109
- "value_type" : self .VALUE_TYPE .numeric_unsigned ,
109
+ "value_type" : self .VALUE_TYPE .numeric_float ,
110
110
"delta" : delta ,
111
111
}) + template .item ({
112
112
"name" : "PostgreSQL WAL: Buffers Full" ,
113
113
"key" : self .key_wal_buffers_full ,
114
- "value_type" : self .VALUE_TYPE .numeric_unsigned ,
114
+ "value_type" : self .VALUE_TYPE .numeric_float ,
115
115
"delta" : delta ,
116
116
}) + template .item ({
117
117
"name" : "PostgreSQL WAL: Write Time (ms)" ,
118
118
"key" : self .key_wal_write_time ,
119
- "value_type" : self .VALUE_TYPE .numeric_unsigned ,
119
+ "value_type" : self .VALUE_TYPE .numeric_float ,
120
120
"delta" : delta ,
121
121
}) + template .item ({
122
122
"name" : "PostgreSQL WAL: Sync Time (ms)" ,
123
123
"key" : self .key_wal_sync_time ,
124
- "value_type" : self .VALUE_TYPE .numeric_unsigned ,
124
+ "value_type" : self .VALUE_TYPE .numeric_float ,
125
125
"delta" : delta ,
126
126
}) + template .item ({
127
127
"name" : "PostgreSQL WAL: Sync Duty (%)" ,
0 commit comments