Skip to content

Commit 6883aed

Browse files
authored
Merge pull request #126 from nikolaev-rd/patch-3
Fix PostgreSQL Ping time format
2 parents 1767fd4 + af31c99 commit 6883aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/plugins/pgsql/health.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def run(self, zbx):
1313

1414
start_time = time.time()
1515
Pooler.query('select 1 as health')
16-
zbx.send('pgsql.ping[]', (time.time() - start_time) * 100)
16+
zbx.send('pgsql.ping[]', (time.time() - start_time) * 1000)
1717

1818
result = Pooler.query("select \
1919
date_part('epoch', now() - pg_postmaster_start_time())")

0 commit comments

Comments
 (0)