Skip to content

Commit 9df0a69

Browse files
committed
fix: generation of keys for native zabbix-agent
1 parent da2bba0 commit 9df0a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/plugins/pgsql/xlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ def keys_and_queries(self, template_zabbix):
9999
result.append('{0},$2 $1 -c "{1}"'.format(self.key_wall.format('[*]'), self.query_wal_lsn_diff))
100100
# FIXME for lag
101101
result.append(
102-
'{0},$2 $1 -c "{1}"'.format("pgsql.replication_lag.sec[*]", Pooler.SQL['replication_lag_slave_query']))
102+
'{0},$2 $1 -c "{1}"'.format("pgsql.replication_lag.sec[*]", Pooler.SQL['replication_lag_slave_query'][0]))
103103
return template_zabbix.key_and_query(result)

0 commit comments

Comments
 (0)