@@ -99,16 +99,18 @@ def graphs(self, template, dashboard=False):
99
99
def keys_and_queries (self , template_zabbix ):
100
100
result = []
101
101
if LooseVersion (self .VersionPG ) >= LooseVersion ("10" ):
102
- result .append ("{0},$2 $1 -Aqtc \" {1}\" " .format (self .key_count .format ("[*]" ),
103
- Pooler .SQL ["count_autovacuum" ][0 ].format (
104
- "backend_type = 'autovacuum worker'" )))
102
+ # TODO: define another metric key because it duplicates native zabbix agents keys
103
+ # result.append("{0},$2 $1 -Aqtc \"{1}\"".format(self.key_count.format("[*]"),
104
+ # Pooler.SQL["count_autovacuum"][0].format(
105
+ # "backend_type = 'autovacuum worker'")))
105
106
result .append ("{0},$2 $1 -Aqtc \" {1}\" " .format (self .key_utilization .format ("[*]" ),
106
107
Pooler .SQL ["autovacuum_utilization" ][0 ].format (
107
108
"backend_type = 'autovacuum worker'" )))
108
109
else :
109
- result .append ("{0},$2 $1 -Aqtc \" {1}\" " .format (self .key_count .format ("[*]" ),
110
- Pooler .SQL ["count_autovacuum" ][0 ].format (
111
- "query LIKE '%%autovacuum%%' AND state <> 'idle' AND pid <> pg_catalog.pg_backend_pid()" )))
110
+ # TODO: define another metric key because it duplicates native zabbix agents keys
111
+ # result.append("{0},$2 $1 -Aqtc \"{1}\"".format(self.key_count.format("[*]"),
112
+ # Pooler.SQL["count_autovacuum"][0].format(
113
+ # "query LIKE '%%autovacuum%%' AND state <> 'idle' AND pid <> pg_catalog.pg_backend_pid()")))
112
114
result .append ("{0},$2 $1 -Aqtc \" {1}\" " .format (self .key_utilization .format ("[*]" ),
113
115
Pooler .SQL ["autovacuum_utilization" ][0 ].format (
114
116
"query LIKE '%%autovacuum%%' AND state <> 'idle' AND pid <> pg_catalog.pg_backend_pid()" )))
0 commit comments